ItemSignalBlockSurveyor.registerItem();
ItemSignalTuner.registerItem();
// Define Block Signal
EnumSignal structure = EnumSignal.BLOCK_SIGNAL;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"LCI",
" BI",
" ",
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.SIGNAL),
'I', Items.iron_ingot,
'L', RailcraftItem.signalLamp.getRecipeObject(),
'B', "dyeBlack");
}
// Define Dual Head Block Signal
structure = EnumSignal.DUAL_HEAD_BLOCK_SIGNAL;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"LCI",
" BI",
"LRI",
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.SIGNAL),
'R', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER),
'I', Items.iron_ingot,
'L', RailcraftItem.signalLamp.getRecipeObject(),
'B', "dyeBlack");
}
// Define Distant Signal
structure = EnumSignal.DISTANT_SIGNAL;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"LCI",
" BI",
" ",
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER),
'I', Items.iron_ingot,
'L', RailcraftItem.signalLamp.getRecipeObject(),
'B', "dyeBlack");
}
// Define Dual Head Block Signal
structure = EnumSignal.DUAL_HEAD_DISTANT_SIGNAL;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"LRI",
" BI",
"LRI",
'R', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER),
'I', Items.iron_ingot,
'L', RailcraftItem.signalLamp.getRecipeObject(),
'B', "dyeBlack");
}
// Define Switch Lever
structure = EnumSignal.SWITCH_LEVER;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"RBW",
"PLI",
'W', "dyeWhite",
'I', Items.iron_ingot,
'L', Blocks.lever,
'P', Blocks.piston,
'B', "dyeBlack",
'R', "dyeRed");
CraftingPlugin.addShapedRecipe(stack,
"RBW",
"ILP",
'W', "dyeWhite",
'I', Items.iron_ingot,
'L', Blocks.lever,
'P', Blocks.piston,
'B', "dyeBlack",
'R', "dyeRed");
}
// Define Switch Motor
structure = EnumSignal.SWITCH_MOTOR;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"RBW",
"PCI",
'W', "dyeWhite",
'I', Items.iron_ingot,
'P', Blocks.piston,
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER),
'B', "dyeBlack",
'R', "dyeRed");
CraftingPlugin.addShapedRecipe(stack,
"RBW",
"ICP",
'W', "dyeWhite",
'I', Items.iron_ingot,
'P', Blocks.piston,
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER),
'B', "dyeBlack",
'R', "dyeRed");
}
// Define Receiver Box
structure = EnumSignal.BOX_RECEIVER;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"ICI",
"IRI",
'I', Items.iron_ingot,
'R', Items.redstone,
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.RECEIVER));
}
// Define Controller Box
structure = EnumSignal.BOX_CONTROLLER;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"ICI",
"IRI",
'I', Items.iron_ingot,
'R', Items.redstone,
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.CONTROLLER));
}
// Define Capacitor Box
structure = EnumSignal.BOX_CAPACITOR;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"ICI",
"IRI",
'I', Items.iron_ingot,
'R', Items.redstone,
'C', Items.repeater);
}
// Define Signal Block Box
structure = EnumSignal.BOX_BLOCK_RELAY;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"ICI",
"IRI",
'I', Items.iron_ingot,
'R', Items.redstone,
'C', RailcraftItem.circuit.getRecipeObject(ItemCircuit.EnumCircuit.SIGNAL));
}
// Define Signal Sequencer Box
structure = EnumSignal.BOX_SEQUENCER;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
"ICI",
"IRI",
'I', Items.iron_ingot,
'R', Items.redstone,
'C', Items.comparator);
}
// Define Signal Interlock Box
structure = EnumSignal.BOX_INTERLOCK;
if (RailcraftConfig.isSubBlockEnabled(structure.getTag())) {
ItemStack stack = structure.getItem();
CraftingPlugin.addShapedRecipe(stack,
" L ",
"ICI",
"IRI",
'I', Items.iron_ingot,