diff --git a/src/main/java/techreborn/blocks/BlockStorage2.java b/src/main/java/techreborn/blocks/BlockStorage2.java index ec8a53450..399c92273 100644 --- a/src/main/java/techreborn/blocks/BlockStorage2.java +++ b/src/main/java/techreborn/blocks/BlockStorage2.java @@ -24,7 +24,7 @@ public class BlockStorage2 extends BaseBlock implements ITexturedBlock public static final String[] types = new String[] { "tungstensteel", "lodestone", "tellurium", "iridium_reinforced_tungstensteel", "iridium_reinforced_stone", "ruby", "sapphire", "peridot", - "yellowGarnet", "redGarnet", "copper", "tin" }; + "yellowGarnet", "redGarnet", "copper", "tin", "refinedIron" }; public PropertyInteger METADATA; public BlockStorage2(Material material) diff --git a/src/main/java/techreborn/client/GuiHandler.java b/src/main/java/techreborn/client/GuiHandler.java index 597a3d606..3f9335943 100644 --- a/src/main/java/techreborn/client/GuiHandler.java +++ b/src/main/java/techreborn/client/GuiHandler.java @@ -123,7 +123,7 @@ public class GuiHandler implements IGuiHandler (TileIndustrialElectrolyzer) world.getTileEntity(new BlockPos(x, y, z)), player); } else if (ID == aesuID) { - return new ContainerAesu((TileAesu) world.getTileEntity(new BlockPos(x, y, z)), player); + return new ContainerAESU((TileAesu) world.getTileEntity(new BlockPos(x, y, z)), player); } else if (ID == alloyFurnaceID) { return new ContainerAlloyFurnace((TileAlloyFurnace) world.getTileEntity(new BlockPos(x, y, z)), player); @@ -143,7 +143,7 @@ public class GuiHandler implements IGuiHandler return new ContainerDestructoPack(player); } else if (ID == lesuID) { - return new ContainerLesu((TileLesu) world.getTileEntity(new BlockPos(x, y, z)), player); + return new ContainerLESU((TileLesu) world.getTileEntity(new BlockPos(x, y, z)), player); } else if (ID == idsuID) { return new ContainerIDSU((TileIDSU) world.getTileEntity(new BlockPos(x, y, z)), player); @@ -252,7 +252,7 @@ public class GuiHandler implements IGuiHandler (TileIndustrialElectrolyzer) world.getTileEntity(new BlockPos(x, y, z))); } else if (ID == aesuID) { - return new GuiAesu(player, (TileAesu) world.getTileEntity(new BlockPos(x, y, z))); + return new GuiAESU(player, (TileAesu) world.getTileEntity(new BlockPos(x, y, z))); } else if (ID == alloyFurnaceID) { return new GuiAlloyFurnace(player, (TileAlloyFurnace) world.getTileEntity(new BlockPos(x, y, z))); @@ -270,7 +270,7 @@ public class GuiHandler implements IGuiHandler return new GuiDestructoPack(new ContainerDestructoPack(player)); } else if (ID == lesuID) { - return new GuiLesu(player, (TileLesu) world.getTileEntity(new BlockPos(x, y, z))); + return new GuiLESU(player, (TileLesu) world.getTileEntity(new BlockPos(x, y, z))); } else if (ID == idsuID) { return new GuiIDSU(player, (TileIDSU) world.getTileEntity(new BlockPos(x, y, z))); diff --git a/src/main/java/techreborn/client/container/ContainerAesu.java b/src/main/java/techreborn/client/container/ContainerAESU.java similarity index 70% rename from src/main/java/techreborn/client/container/ContainerAesu.java rename to src/main/java/techreborn/client/container/ContainerAESU.java index b34881767..13ea2fec2 100644 --- a/src/main/java/techreborn/client/container/ContainerAesu.java +++ b/src/main/java/techreborn/client/container/ContainerAESU.java @@ -8,66 +8,55 @@ import net.minecraftforge.fml.relauncher.SideOnly; import reborncore.common.container.RebornContainer; import techreborn.tiles.TileAesu; -public class ContainerAesu extends RebornContainer -{ +public class ContainerAESU extends RebornContainer { public int euOut; public int storedEu; public int euChange; EntityPlayer player; TileAesu tile; - public ContainerAesu(TileAesu tileaesu, EntityPlayer player) - { + + public ContainerAESU(TileAesu tileaesu, EntityPlayer player) { tile = tileaesu; this.player = player; int i; - for (i = 0; i < 3; ++i) - { - for (int j = 0; j < 9; ++j) - { + for (i = 0; i < 3; ++i) { + for (int j = 0; j < 9; ++j) { this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 115 + i * 18)); } } - for (i = 0; i < 9; ++i) - { + for (i = 0; i < 9; ++i) { this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 173)); } } @Override - public boolean canInteractWith(EntityPlayer player) - { + public boolean canInteractWith(EntityPlayer player) { return true; } @Override - public void detectAndSendChanges() - { + public void detectAndSendChanges() { super.detectAndSendChanges(); - for (int i = 0; i < this.crafters.size(); i++) - { + for (int i = 0; i < this.crafters.size(); i++) { ICrafting icrafting = (ICrafting) this.crafters.get(i); - if (this.euOut != tile.getMaxOutput()) - { + if (this.euOut != tile.getMaxOutput()) { icrafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput()); } - if (this.storedEu != tile.getEnergy()) - { + if (this.storedEu != tile.getEnergy()) { icrafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); } - if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) - { + if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) { icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEuChange()); } } } @Override - public void onCraftGuiOpened(ICrafting crafting) - { + public void onCraftGuiOpened(ICrafting crafting) { super.onCraftGuiOpened(crafting); crafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput()); crafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); @@ -76,16 +65,12 @@ public class ContainerAesu extends RebornContainer @SideOnly(Side.CLIENT) @Override - public void updateProgressBar(int id, int value) - { - if (id == 0) - { + public void updateProgressBar(int id, int value) { + if (id == 0) { this.euOut = value; - } else if (id == 1) - { + } else if (id == 1) { this.storedEu = value; - } else if (id == 2) - { + } else if (id == 2) { this.euChange = value; } } diff --git a/src/main/java/techreborn/client/container/ContainerIDSU.java b/src/main/java/techreborn/client/container/ContainerIDSU.java index 46e0ff376..23cbdff80 100644 --- a/src/main/java/techreborn/client/container/ContainerIDSU.java +++ b/src/main/java/techreborn/client/container/ContainerIDSU.java @@ -8,8 +8,7 @@ import net.minecraftforge.fml.relauncher.SideOnly; import reborncore.common.container.RebornContainer; import techreborn.tiles.idsu.TileIDSU; -public class ContainerIDSU extends RebornContainer -{ +public class ContainerIDSU extends RebornContainer { public int euOut; public int storedEu; @@ -17,58 +16,48 @@ public class ContainerIDSU extends RebornContainer public int channel; EntityPlayer player; TileIDSU tile; - public ContainerIDSU(TileIDSU tileIDSU, EntityPlayer player) - { + + public ContainerIDSU(TileIDSU tileIDSU, EntityPlayer player) { tile = tileIDSU; this.player = player; int i; - for (i = 0; i < 3; ++i) - { - for (int j = 0; j < 9; ++j) - { - this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); + for (i = 0; i < 3; ++i) { + for (int j = 0; j < 9; ++j) { + this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 115 + i * 18)); } } - for (i = 0; i < 9; ++i) - { - this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 142)); + for (i = 0; i < 9; ++i) { + this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 173)); } } @Override - public boolean canInteractWith(EntityPlayer player) - { + public boolean canInteractWith(EntityPlayer player) { return true; } @Override - public void detectAndSendChanges() - { + public void detectAndSendChanges() { super.detectAndSendChanges(); - for (int i = 0; i < this.crafters.size(); i++) - { + for (int i = 0; i < this.crafters.size(); i++) { ICrafting icrafting = (ICrafting) this.crafters.get(i); - if (this.euOut != tile.output) - { + if (this.euOut != tile.output) { icrafting.sendProgressBarUpdate(this, 0, tile.output); } - if (this.storedEu != (int) tile.getEnergy()) - { + if (this.storedEu != (int) tile.getEnergy()) { icrafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); } - if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) - { + if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) { icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEuChange()); } } } @Override - public void onCraftGuiOpened(ICrafting crafting) - { + public void onCraftGuiOpened(ICrafting crafting) { super.onCraftGuiOpened(crafting); crafting.sendProgressBarUpdate(this, 0, tile.output); crafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); @@ -77,19 +66,14 @@ public class ContainerIDSU extends RebornContainer @SideOnly(Side.CLIENT) @Override - public void updateProgressBar(int id, int value) - { - if (id == 0) - { + public void updateProgressBar(int id, int value) { + if (id == 0) { this.euOut = value; - } else if (id == 1) - { + } else if (id == 1) { this.storedEu = value; - } else if (id == 2) - { + } else if (id == 2) { this.euChange = value; - } else if (id == 3) - { + } else if (id == 3) { this.channel = value; } } diff --git a/src/main/java/techreborn/client/container/ContainerLesu.java b/src/main/java/techreborn/client/container/ContainerLESU.java similarity index 71% rename from src/main/java/techreborn/client/container/ContainerLesu.java rename to src/main/java/techreborn/client/container/ContainerLESU.java index 64b48da81..1ef413928 100644 --- a/src/main/java/techreborn/client/container/ContainerLesu.java +++ b/src/main/java/techreborn/client/container/ContainerLESU.java @@ -9,8 +9,7 @@ import reborncore.common.container.RebornContainer; import techreborn.config.ConfigTechReborn; import techreborn.tiles.lesu.TileLesu; -public class ContainerLesu extends RebornContainer -{ +public class ContainerLESU extends RebornContainer { public int euOut; public int storedEu; @@ -19,8 +18,8 @@ public class ContainerLesu extends RebornContainer public double euStorage; EntityPlayer player; TileLesu tile; - public ContainerLesu(TileLesu tileaesu, EntityPlayer player) - { + + public ContainerLESU(TileLesu tileaesu, EntityPlayer player) { tile = tileaesu; this.player = player; @@ -30,55 +29,44 @@ public class ContainerLesu extends RebornContainer int i; - for (i = 0; i < 3; ++i) - { - for (int j = 0; j < 9; ++j) - { - this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); + for (i = 0; i < 3; ++i) { + for (int j = 0; j < 9; ++j) { + this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 115 + i * 18)); } } - for (i = 0; i < 9; ++i) - { - this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 142)); + for (i = 0; i < 9; ++i) { + this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 173)); } } @Override - public boolean canInteractWith(EntityPlayer player) - { + public boolean canInteractWith(EntityPlayer player) { return true; } @Override - public void detectAndSendChanges() - { + public void detectAndSendChanges() { super.detectAndSendChanges(); - for (int i = 0; i < this.crafters.size(); i++) - { + for (int i = 0; i < this.crafters.size(); i++) { ICrafting icrafting = (ICrafting) this.crafters.get(i); - if (this.euOut != tile.getMaxOutput()) - { + if (this.euOut != tile.getMaxOutput()) { icrafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput()); } - if (this.storedEu != tile.getEnergy()) - { + if (this.storedEu != tile.getEnergy()) { icrafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); } - if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) - { + if (this.euChange != tile.getEuChange() && tile.getEuChange() != -1) { icrafting.sendProgressBarUpdate(this, 2, (int) tile.getEuChange()); } - if (this.connectedBlocks != tile.connectedBlocks) - { + if (this.connectedBlocks != tile.connectedBlocks) { icrafting.sendProgressBarUpdate(this, 3, tile.connectedBlocks); } } } @Override - public void onCraftGuiOpened(ICrafting crafting) - { + public void onCraftGuiOpened(ICrafting crafting) { super.onCraftGuiOpened(crafting); crafting.sendProgressBarUpdate(this, 0, (int) tile.getMaxOutput()); crafting.sendProgressBarUpdate(this, 1, (int) tile.getEnergy()); @@ -88,22 +76,16 @@ public class ContainerLesu extends RebornContainer @SideOnly(Side.CLIENT) @Override - public void updateProgressBar(int id, int value) - { - if (id == 0) - { + public void updateProgressBar(int id, int value) { + if (id == 0) { this.euOut = value; - } else if (id == 1) - { + } else if (id == 1) { this.storedEu = value; - } else if (id == 2) - { + } else if (id == 2) { this.euChange = value; - } else if (id == 3) - { + } else if (id == 3) { this.connectedBlocks = value; - } else if (id == 4) - { + } else if (id == 4) { this.euStorage = value; } this.euStorage = ((connectedBlocks + 1) * ConfigTechReborn.LesuStoragePerBlock); diff --git a/src/main/java/techreborn/client/gui/GuiAesu.java b/src/main/java/techreborn/client/gui/GuiAESU.java similarity index 89% rename from src/main/java/techreborn/client/gui/GuiAesu.java rename to src/main/java/techreborn/client/gui/GuiAESU.java index 46927d2b7..b464e53de 100644 --- a/src/main/java/techreborn/client/gui/GuiAesu.java +++ b/src/main/java/techreborn/client/gui/GuiAESU.java @@ -8,29 +8,29 @@ import net.minecraft.util.ResourceLocation; import net.minecraft.util.text.translation.I18n; import reborncore.common.packets.PacketHandler; import reborncore.common.powerSystem.PowerSystem; -import techreborn.client.container.ContainerAesu; +import techreborn.client.container.ContainerAESU; import techreborn.packets.PacketAesu; import techreborn.tiles.TileAesu; import java.awt.*; import java.io.IOException; -public class GuiAesu extends GuiContainer +public class GuiAESU extends GuiContainer { private static final ResourceLocation texture = new ResourceLocation("techreborn", "textures/gui/aesu.png"); TileAesu aesu; - ContainerAesu containerAesu; + ContainerAESU containerAesu; - public GuiAesu(EntityPlayer player, TileAesu tileaesu) + public GuiAESU(EntityPlayer player, TileAesu tileaesu) { - super(new ContainerAesu(tileaesu, player)); + super(new ContainerAESU(tileaesu, player)); this.xSize = 176; this.ySize = 197; aesu = tileaesu; - this.containerAesu = (ContainerAesu) this.inventorySlots; + this.containerAesu = (ContainerAESU) this.inventorySlots; } @Override diff --git a/src/main/java/techreborn/client/gui/GuiIDSU.java b/src/main/java/techreborn/client/gui/GuiIDSU.java index 93f88e848..8597fa946 100644 --- a/src/main/java/techreborn/client/gui/GuiIDSU.java +++ b/src/main/java/techreborn/client/gui/GuiIDSU.java @@ -28,7 +28,7 @@ public class GuiIDSU extends GuiContainer { super(new ContainerIDSU(tileIDSU, player)); this.xSize = 176; - this.ySize = 165; + this.ySize = 197; idsu = tileIDSU; this.containerIDSU = (ContainerIDSU) this.inventorySlots; } diff --git a/src/main/java/techreborn/client/gui/GuiLesu.java b/src/main/java/techreborn/client/gui/GuiLESU.java similarity index 85% rename from src/main/java/techreborn/client/gui/GuiLesu.java rename to src/main/java/techreborn/client/gui/GuiLESU.java index acf8a5f7e..079aa34f8 100644 --- a/src/main/java/techreborn/client/gui/GuiLesu.java +++ b/src/main/java/techreborn/client/gui/GuiLESU.java @@ -8,25 +8,25 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; import net.minecraft.util.text.translation.I18n; import reborncore.common.powerSystem.PowerSystem; -import techreborn.client.container.ContainerLesu; +import techreborn.client.container.ContainerLESU; import techreborn.tiles.lesu.TileLesu; -public class GuiLesu extends GuiContainer +public class GuiLESU extends GuiContainer { private static final ResourceLocation texture = new ResourceLocation("techreborn", "textures/gui/aesu.png"); TileLesu aesu; - ContainerLesu containerLesu; + ContainerLESU containerLesu; - public GuiLesu(EntityPlayer player, TileLesu tileaesu) + public GuiLESU(EntityPlayer player, TileLesu tileaesu) { - super(new ContainerLesu(tileaesu, player)); + super(new ContainerLESU(tileaesu, player)); this.xSize = 176; - this.ySize = 165; + this.ySize = 197; aesu = tileaesu; - this.containerLesu = (ContainerLesu) this.inventorySlots; + this.containerLesu = (ContainerLESU) this.inventorySlots; } @Override diff --git a/src/main/java/techreborn/init/ModRecipes.java b/src/main/java/techreborn/init/ModRecipes.java index 3adba844a..fe14891a4 100644 --- a/src/main/java/techreborn/init/ModRecipes.java +++ b/src/main/java/techreborn/init/ModRecipes.java @@ -31,8 +31,7 @@ import techreborn.parts.ItemStandaloneCables; import techreborn.utils.RecipeUtils; import techreborn.utils.StackWIPHandler; -public class ModRecipes -{ +public class ModRecipes { public static ConfigTechReborn config; public static ItemStack hammerStack = new ItemStack(ModItems.hammer, 1, OreDictionary.WILDCARD_VALUE); public static ItemStack batteryStack = new ItemStack(ModItems.reBattery, 1, OreDictionary.WILDCARD_VALUE); @@ -41,8 +40,7 @@ public class ModRecipes public static ItemStack dyes = new ItemStack(Items.dye, 1, OreDictionary.WILDCARD_VALUE); public static Item hammer = ModItems.hammer; - public static void init() - { + public static void init() { addShapelessRecipes(); addGeneralShapedRecipes(); addMachineRecipes(); @@ -63,7 +61,7 @@ public class ModRecipes addReactorRecipes(); addIc2Recipes(); addGrinderRecipes(); -// addHammerRecipes(); + // addHammerRecipes(); addIc2ReplacementReicpes(); addExtractorRecipes(); addCompressorRecipes(); @@ -71,8 +69,7 @@ public class ModRecipes addScrapBoxloot(); } - static void addScrapBoxloot() - { + static void addScrapBoxloot() { ScrapboxList.addItemStackToList(new ItemStack(Items.diamond)); ScrapboxList.addItemStackToList(new ItemStack(Items.stick)); ScrapboxList.addItemStackToList(new ItemStack(Items.coal)); @@ -243,10 +240,8 @@ public class ModRecipes } } - static void registerMetadataItem(ItemStack item) - { - for (int i = 0; i < item.getItem().getMaxDamage(); i++) - { + static void registerMetadataItem(ItemStack item) { + for (int i = 0; i < item.getItem().getMaxDamage(); i++) { ScrapboxList.addItemStackToList(new ItemStack(item.getItem(), 1, i)); } } @@ -256,8 +251,7 @@ public class ModRecipes ScrapboxList.stacks.add(new ItemStack(block, 1, i)); } - static void addWireRecipes() - { + static void addWireRecipes() { CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("copper", 6), "XXX", "CCC", "XXX", 'C', "ingotCopper"); CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("tin", 9), "XXX", "CCC", "XXX", 'C', @@ -266,15 +260,14 @@ public class ModRecipes "ingotGold"); CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("hv", 8), "XXX", "CCC", "XXX", 'C', ItemIngots.getIngotByName("refinediron")); - - CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "SDS", "GGG", 'G', - "blockGlass", 'S', "dustRedstone", 'D', "diamondTR"); - CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G', - "blockGlass", 'S', "ingotSilver", 'D', "diamondTR"); - CraftingHelper - .addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 8), "GGG", "SDS", "GGG", 'G', - "blockGlass", 'S', "ingotElectrum", 'D', "diamondTR"); + CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "SDS", "GGG", + 'G', "blockGlass", 'S', "dustRedstone", 'D', "diamondTR"); + + CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", + 'G', "blockGlass", 'S', "ingotSilver", 'D', "diamondTR"); + CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 8), "GGG", "SDS", "GGG", + 'G', "blockGlass", 'S', "ingotElectrum", 'D', "diamondTR"); CraftingHelper.addShapelessOreRecipe(ItemStandaloneCables.getCableByName("insulatedcopper"), ItemParts.getPartByName("rubber"), ItemStandaloneCables.getCableByName("copper")); @@ -284,50 +277,45 @@ public class ModRecipes ItemParts.getPartByName("rubber"), ItemStandaloneCables.getCableByName("hv")); } - private static void addCompressorRecipes() - { + private static void addCompressorRecipes() { RecipeHandler.addRecipe(new CompressorRecipe(ItemParts.getPartByName("mixedmetalingot"), ItemParts.getPartByName("advancedAlloy"), 400, 20)); RecipeHandler.addRecipe(new CompressorRecipe(ItemParts.getPartByName("carbonfiber"), ItemPlates.getPlateByName("carbon"), 400, 20)); - RecipeHandler.addRecipe(new CompressorRecipe(new ItemStack(Items.iron_ingot), - ItemPlates.getPlateByName("iron"), 400, 20)); + RecipeHandler.addRecipe( + new CompressorRecipe(new ItemStack(Items.iron_ingot), ItemPlates.getPlateByName("iron"), 400, 20)); RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("copper"), ItemPlates.getPlateByName("copper"), 400, 20)); - RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("tin"), - ItemPlates.getPlateByName("tin"), 400, 20)); + RecipeHandler.addRecipe( + new CompressorRecipe(ItemIngots.getIngotByName("tin"), ItemPlates.getPlateByName("tin"), 400, 20)); RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("aluminum"), ItemPlates.getPlateByName("aluminum"), 400, 20)); - RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("brass"), - ItemPlates.getPlateByName("brass"), 400, 20)); + RecipeHandler.addRecipe( + new CompressorRecipe(ItemIngots.getIngotByName("brass"), ItemPlates.getPlateByName("brass"), 400, 20)); RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("bronze"), ItemPlates.getPlateByName("bronze"), 400, 20)); - RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("lead"), - ItemPlates.getPlateByName("lead"), 400, 20)); + RecipeHandler.addRecipe( + new CompressorRecipe(ItemIngots.getIngotByName("lead"), ItemPlates.getPlateByName("lead"), 400, 20)); RecipeHandler.addRecipe(new CompressorRecipe(ItemIngots.getIngotByName("silver"), ItemPlates.getPlateByName("silver"), 400, 20)); } - static void addExtractorRecipes() - { - RecipeHandler.addRecipe( - new ExtractorRecipe(ItemParts.getPartByName("rubberSap"), ItemParts.getPartByName("rubber", 3), 400, - 20)); + static void addExtractorRecipes() { + RecipeHandler.addRecipe(new ExtractorRecipe(ItemParts.getPartByName("rubberSap"), + ItemParts.getPartByName("rubber", 3), 400, 20)); RecipeHandler.addRecipe( new ExtractorRecipe(new ItemStack(ModBlocks.rubberLog), ItemParts.getPartByName("rubber"), 400, 20)); } - static void addIc2ReplacementReicpes() - { + static void addIc2ReplacementReicpes() { CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("pump"), "CEC", "CMC", "PTP", 'C', ItemCells.getCellByName("empty"), 'T', new ItemStack(ModItems.treeTap), 'M', new ItemStack(ModBlocks.MachineCasing), 'P', new ItemStack(Blocks.iron_bars), 'E', ItemParts.getPartByName("electronicCircuit")); } - static void addGrinderRecipes() - { + static void addGrinderRecipes() { // Vanilla RecipeHandler.addRecipe( new GrinderRecipe(new ItemStack(Blocks.iron_ore), ItemDusts.getDustByName("iron", 2), 100, 20)); @@ -354,70 +342,79 @@ public class ModRecipes .addRecipe(new GrinderRecipe(ItemGems.getGemByName("ruby"), ItemDusts.getDustByName("ruby"), 100, 20)); } -// static void addHammerRecipes() -// { -// CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.hammer), "III", "ISI", " S ", 'S', Items.stick, 'I', -// "ingotIron"); -// -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("iron", 1), hammerStack, "ingotIron"); -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("copper", 1), hammerStack, "ingotCopper"); -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("tin", 1), hammerStack, "ingotTin"); -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("bronze", 1), hammerStack, "ingotBronze"); -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("brass", 1), hammerStack, "ingotBrass"); -// CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("steel", 1), hammerStack, "ingotSteel"); -// -// hammer.setContainerItem(hammer); -// } + // static void addHammerRecipes() + // { + // CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.hammer), "III", + // "ISI", " S ", 'S', Items.stick, 'I', + // "ingotIron"); + // + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("iron", + // 1), hammerStack, "ingotIron"); + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("copper", + // 1), hammerStack, "ingotCopper"); + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("tin", 1), + // hammerStack, "ingotTin"); + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("bronze", + // 1), hammerStack, "ingotBronze"); + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("brass", + // 1), hammerStack, "ingotBrass"); + // CraftingHelper.addShapelessOreRecipe(ItemPlates.getPlateByName("steel", + // 1), hammerStack, "ingotSteel"); + // + // hammer.setContainerItem(hammer); + // } - static void addReactorRecipes() - { - FusionReactorRecipeHelper.registerRecipe( - new FusionReactorRecipe(ItemCells.getCellByName("tritium"), ItemCells.getCellByName("deuterium"), - ItemCells.getCellByName("helium"), 40000000, 32768, 1024)); - FusionReactorRecipeHelper.registerRecipe( - new FusionReactorRecipe(ItemCells.getCellByName("tritium"), ItemCells.getCellByName("deuterium"), - ItemCells.getCellByName("helium3"), 60000000, 32768, 2048)); - FusionReactorRecipeHelper.registerRecipe( - new FusionReactorRecipe(ItemCells.getCellByName("wolframium"), ItemCells.getCellByName("Berylium"), - ItemDusts.getDustByName("platinum"), 80000000, -2048, 1024)); + static void addReactorRecipes() { + FusionReactorRecipeHelper.registerRecipe(new FusionReactorRecipe(ItemCells.getCellByName("tritium"), + ItemCells.getCellByName("deuterium"), ItemCells.getCellByName("helium"), 40000000, 32768, 1024)); + FusionReactorRecipeHelper.registerRecipe(new FusionReactorRecipe(ItemCells.getCellByName("tritium"), + ItemCells.getCellByName("deuterium"), ItemCells.getCellByName("helium3"), 60000000, 32768, 2048)); + FusionReactorRecipeHelper.registerRecipe(new FusionReactorRecipe(ItemCells.getCellByName("wolframium"), + ItemCells.getCellByName("Berylium"), ItemDusts.getDustByName("platinum"), 80000000, -2048, 1024)); } - static void addGeneralShapedRecipes() - { + static void addGeneralShapedRecipes() { // Storage Blocks - for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) - { + for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) { CraftingHelper.addShapedOreRecipe(BlockStorage.getStorageBlockByName(name), "AAA", "AAA", "AAA", 'A', "ingot" + name.substring(0, 1).toUpperCase() + name.substring(1)); } - CraftingHelper.addShapedOreRecipe(ItemCells.getCellByName("empty", 16, false), " T ", "T T", " T ", - 'T', "ingotTin"); + CraftingHelper.addShapedOreRecipe(ItemCells.getCellByName("empty", 16, false), " T ", "T T", " T ", 'T', + "ingotTin"); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ironFence, 6), " ", "RRR", "RRR", 'R', + ItemIngots.getIngotByName("refinedIron")); - CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ironFence, 6), " ", "RRR", "RRR", - 'R', ItemIngots.getIngotByName("refinedIron")); + addGemToolRecipes(new ItemStack(ModItems.rubySword), new ItemStack(ModItems.rubyPickaxe), + new ItemStack(ModItems.rubyAxe), new ItemStack(ModItems.rubyHoe), new ItemStack(ModItems.rubySpade), + new ItemStack(ModItems.rubyHelmet), new ItemStack(ModItems.rubyChestplate), + new ItemStack(ModItems.rubyLeggings), new ItemStack(ModItems.rubyBoots), ItemGems.getGemByName("ruby")); - - addGemToolRecipes(new ItemStack(ModItems.rubySword), new ItemStack(ModItems.rubyPickaxe), new ItemStack(ModItems.rubyAxe), new ItemStack(ModItems.rubyHoe), - new ItemStack(ModItems.rubySpade), new ItemStack(ModItems.rubyHelmet), new ItemStack(ModItems.rubyChestplate), new ItemStack(ModItems.rubyLeggings), new ItemStack(ModItems.rubyBoots), ItemGems.getGemByName("ruby")); - - addGemToolRecipes(new ItemStack(ModItems.sapphireSword), new ItemStack(ModItems.sapphirePickaxe), new ItemStack(ModItems.sapphireAxe), new ItemStack(ModItems.sapphireHoe), - new ItemStack(ModItems.sapphireSpade), new ItemStack(ModItems.sapphireHelmet), new ItemStack(ModItems.sapphireChestplate), new ItemStack(ModItems.sapphireLeggings), new ItemStack(ModItems.sapphireBoots), ItemGems.getGemByName("sapphire")); - - addGemToolRecipes(new ItemStack(ModItems.peridotSword), new ItemStack(ModItems.peridotPickaxe), new ItemStack(ModItems.peridotAxe), new ItemStack(ModItems.peridotHoe), - new ItemStack(ModItems.peridotSpade), new ItemStack(ModItems.peridotHelmet), new ItemStack(ModItems.peridotChestplate), new ItemStack(ModItems.peridotLeggings), new ItemStack(ModItems.peridotBoots), ItemGems.getGemByName("peridot")); + addGemToolRecipes(new ItemStack(ModItems.sapphireSword), new ItemStack(ModItems.sapphirePickaxe), + new ItemStack(ModItems.sapphireAxe), new ItemStack(ModItems.sapphireHoe), + new ItemStack(ModItems.sapphireSpade), new ItemStack(ModItems.sapphireHelmet), + new ItemStack(ModItems.sapphireChestplate), new ItemStack(ModItems.sapphireLeggings), + new ItemStack(ModItems.sapphireBoots), ItemGems.getGemByName("sapphire")); - addGemToolRecipes(new ItemStack(ModItems.bronzeSword), new ItemStack(ModItems.bronzePickaxe), new ItemStack(ModItems.bronzeAxe), new ItemStack(ModItems.bronzeHoe), - new ItemStack(ModItems.bronzeSpade), new ItemStack(ModItems.bronzeHelmet), new ItemStack(ModItems.bronzeChestplate), new ItemStack(ModItems.bronzeLeggings), new ItemStack(ModItems.bronzeBoots), ItemIngots.getIngotByName("bronze")); + addGemToolRecipes(new ItemStack(ModItems.peridotSword), new ItemStack(ModItems.peridotPickaxe), + new ItemStack(ModItems.peridotAxe), new ItemStack(ModItems.peridotHoe), + new ItemStack(ModItems.peridotSpade), new ItemStack(ModItems.peridotHelmet), + new ItemStack(ModItems.peridotChestplate), new ItemStack(ModItems.peridotLeggings), + new ItemStack(ModItems.peridotBoots), ItemGems.getGemByName("peridot")); + addGemToolRecipes(new ItemStack(ModItems.bronzeSword), new ItemStack(ModItems.bronzePickaxe), + new ItemStack(ModItems.bronzeAxe), new ItemStack(ModItems.bronzeHoe), + new ItemStack(ModItems.bronzeSpade), new ItemStack(ModItems.bronzeHelmet), + new ItemStack(ModItems.bronzeChestplate), new ItemStack(ModItems.bronzeLeggings), + new ItemStack(ModItems.bronzeBoots), ItemIngots.getIngotByName("bronze")); - CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.ironChainsaw), " SS", "SCS", "BS ", - 'S', "ingotSteel", 'B', TechRebornAPI.recipeCompact.getItem("reBattery"), 'C', + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.ironChainsaw), " SS", "SCS", "BS ", 'S', "ingotSteel", + 'B', TechRebornAPI.recipeCompact.getItem("reBattery"), 'C', TechRebornAPI.recipeCompact.getItem("electronicCircuit")); - - CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.diamondChainsaw), " SS", "SBS", "CS ", - 'S', "ingotSteel", 'B', ModItems.ironChainsaw, 'C', + + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.diamondChainsaw), " SS", "SBS", "CS ", 'S', + "ingotSteel", 'B', ModItems.ironChainsaw, 'C', TechRebornAPI.recipeCompact.getItem("electronicCircuit")); CraftingHelper.addShapelessOreRecipe(ItemParts.getPartByName("carbonmesh"), ItemDusts.getDustByName("coal"), @@ -426,20 +423,17 @@ public class ModRecipes CraftingHelper.addShapelessOreRecipe(ItemParts.getPartByName("carbonfiber"), ItemParts.getPartByName("carbonmesh"), ItemParts.getPartByName("carbonmesh")); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("computerMonitor"), "ADA", "DGD", "ADA", 'D', dyes, 'A', - "ingotAluminum", 'G', Blocks.glass_pane); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("computerMonitor"), "ADA", "DGD", "ADA", 'D', dyes, + 'A', "ingotAluminum", 'G', Blocks.glass_pane); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.reinforcedglass, 7), "GAG", "GGG", "GAG", 'A', ItemParts.getPartByName("advancedAlloy"), 'G', Blocks.glass); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.windMill, 2), "IXI", "XGX", "IXI", 'I', "ingotIron", 'G', - ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.windMill, 2), "IXI", "XGX", "IXI", 'I', "ingotIron", + 'G', ModBlocks.Generator); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.waterMill), "SWS", "WGW", "SWS", 'S', Items.stick, 'W', - "plankWood", 'G', ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.waterMill), "SWS", "WGW", "SWS", 'S', Items.stick, + 'W', "plankWood", 'G', ModBlocks.Generator); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.hvt), "XHX", "XMX", "XHX", 'M', ModBlocks.mvt, 'H', ItemStandaloneCables.getCableByName("insulatedhv")); @@ -500,9 +494,8 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ironFurnace), "III", "IXI", "III", 'I', "ingotIron"); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.ironFurnace), "XIX", "IXI", "IFI", 'I', "ingotIron", 'F', - Blocks.furnace); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ironFurnace), "XIX", "IXI", "IFI", 'I', "ingotIron", + 'F', Blocks.furnace); CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("electronicCircuit"), "WWW", "SRS", "WWW", 'R', ItemIngots.getIngotByName("refinediron"), 'S', Items.redstone, 'W', @@ -513,10 +506,9 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.wrench), "BAB", "BBB", "ABA", 'B', "ingotBronze"); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.Extractor), "TMT", "TCT", "XXX", 'T', ModItems.treeTap, 'M', - BlockMachineFrame.getFrameByName("machine", 1), 'C', - ItemParts.getPartByName("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Extractor), "TMT", "TCT", "XXX", 'T', + ModItems.treeTap, 'M', BlockMachineFrame.getFrameByName("machine", 1), 'C', + ItemParts.getPartByName("electronicCircuit")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.centrifuge), "RCR", "AEA", "RCR", 'R', ItemIngots.getIngotByName("refinediron"), 'E', new ItemStack(ModBlocks.Extractor), 'A', @@ -527,13 +519,11 @@ public class ModRecipes Items.redstone, 'G', Items.glowstone_dust, 'L', "dyeBlue", 'C', ItemParts.getPartByName("electronicCircuit")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.energyCrystal), "RRR", "RDR", "RRR", 'R', Items.redstone, - 'D', Items.diamond); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.energyCrystal), "RRR", "RDR", "RRR", 'R', + Items.redstone, 'D', Items.diamond); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.lapotronCrystal), "LCL", "LEL", "LCL", 'L', "dyeBlue", 'E', - new ItemStack(ModItems.energyCrystal), 'C', ItemParts.getPartByName("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronCrystal), "LCL", "LEL", "LCL", 'L', "dyeBlue", + 'E', new ItemStack(ModItems.energyCrystal), 'C', ItemParts.getPartByName("electronicCircuit")); CraftingHelper.addShapelessOreRecipe(new ItemStack(ModBlocks.Generator), batteryStack, BlockMachineFrame.getFrameByName("machine", 1), Blocks.furnace); @@ -541,30 +531,25 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(BlockMachineFrame.getFrameByName("machine", 1), "AAA", "AXA", "AAA", 'A', ItemIngots.getIngotByName("refinediron")); - CraftingHelper - .addShapedOreRecipe(BlockMachineFrame.getFrameByName("advancedMachine", 1), "XCX", "AMA", "XCX", 'A', - ItemParts.getPartByName("advancedAlloy"), 'C', ItemPlates.getPlateByName("carbon"), 'M', - BlockMachineFrame.getFrameByName("machine", 1)); - + CraftingHelper.addShapedOreRecipe(BlockMachineFrame.getFrameByName("advancedMachine", 1), "XCX", "AMA", "XCX", + 'A', ItemParts.getPartByName("advancedAlloy"), 'C', ItemPlates.getPlateByName("carbon"), 'M', + BlockMachineFrame.getFrameByName("machine", 1)); CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("dataStorageCircuit"), "EEE", "ECE", "EEE", 'E', new ItemStack(Items.emerald), 'C', ItemParts.getPartByName("electronicCircuit")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.parts, 4, 8), "DSD", "S S", "DSD", 'D', "dustDiamond", 'S', - "ingotSteel"); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.parts, 4, 8), "DSD", "S S", "DSD", 'D', "dustDiamond", + 'S', "ingotSteel"); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.parts, 1, 15), "AAA", "AMA", "AAA", 'A', "ingotAluminium", - 'M', new ItemStack(ModItems.parts, 1, 13)); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.parts, 1, 15), "AAA", "AMA", "AAA", 'A', + "ingotAluminium", 'M', new ItemStack(ModItems.parts, 1, 13)); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Supercondensator), "EOE", "SAS", "EOE", 'E', ItemParts.getPartByName("energyFlowCircuit"), 'O', ModItems.lapotronicOrb, 'S', ItemParts.getPartByName("superconductor"), 'A', ModBlocks.HighAdvancedMachineBlock); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("diamondSawBlade"), "DSD", "S S", "DSD", 'S', "plateSteel", - 'D', "dustDiamond"); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("diamondSawBlade"), "DSD", "S S", "DSD", 'S', + "plateSteel", 'D', "dustDiamond"); CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("tungstenGrindingHead", 2), "TST", "SBS", "TST", 'T', "plateTungsten", 'S', "plateSteel", 'B', "blockSteel"); @@ -573,9 +558,8 @@ public class ModRecipes ItemParts.getPartByName("basicCircuitBoard"), 'I', "ingotAluminum", 'B', new ItemStack(Items.lava_bucket)); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.cloakingDevice), "CIC", "IOI", "CIC", 'C', "ingotChrome", - 'I', "plateIridium", 'O', new ItemStack(ModItems.lapotronicOrb)); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.cloakingDevice), "CIC", "IOI", "CIC", 'C', + "ingotChrome", 'I', "plateIridium", 'O', new ItemStack(ModItems.lapotronicOrb)); CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.treeTap), " S ", "PPP", "P ", 'S', "stickWood", 'P', "plankWood"); @@ -587,10 +571,8 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("rockCutterBlade"), "SDS", "SDS", "SDS", 'D', new ItemStack(Items.diamond), 'S', "ingotSteel"); - for (String part : ItemParts.types) - { - if (part.endsWith("Gear")) - { + for (String part : ItemParts.types) { + if (part.endsWith("Gear")) { CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName(part), " O ", "OIO", " O ", 'I', new ItemStack(Items.iron_ingot), 'O', "ingot" + capitalizeFirstLetter(part.replace("Gear", ""))); @@ -609,17 +591,14 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantTriple"), "TTT", "CCC", "TTT", 'T', "ingotTin", 'C', ItemParts.getPartByName("heliumCoolantSimple")); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantSix"), "THT", "TCT", "THT", 'T', "ingotTin", - 'C', "ingotCopper", 'H', ItemParts.getPartByName("HeliumCoolantTriple")); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("HeliumCoolantSix"), "THT", "TCT", "THT", 'T', + "ingotTin", 'C', "ingotCopper", 'H', ItemParts.getPartByName("HeliumCoolantTriple")); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantTriple"), "TTT", "CCC", "TTT", 'T', "ingotTin", - 'C', ItemParts.getPartByName("NaKCoolantSimple")); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantTriple"), "TTT", "CCC", "TTT", 'T', + "ingotTin", 'C', ItemParts.getPartByName("NaKCoolantSimple")); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSix"), "THT", "TCT", "THT", 'T', "ingotTin", 'C', - "ingotCopper", 'H', ItemParts.getPartByName("NaKCoolantTriple")); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSix"), "THT", "TCT", "THT", 'T', + "ingotTin", 'C', "ingotCopper", 'H', ItemParts.getPartByName("NaKCoolantTriple")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Aesu), "LLL", "LCL", "LLL", 'L', new ItemStack(ModItems.lapotronicOrb), 'C', new ItemStack(ModBlocks.ComputerCube)); @@ -647,9 +626,8 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("thickNeutronReflector"), " P ", "PCP", " P ", 'P', ItemParts.getPartByName("neutronReflector"), 'C', ItemCells.getCellByName("Berylium")); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("neutronReflector"), "TCT", "CPC", "TCT", 'T', "dustTin", - 'C', "dustCoal", 'P', "plateCopper"); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("neutronReflector"), "TCT", "CPC", "TCT", 'T', + "dustTin", 'C', "dustCoal", 'P', "plateCopper"); CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.scrapBox), "SSS", "SSS", "SSS", 'S', ItemParts.getPartByName("scrap")); @@ -657,81 +635,66 @@ public class ModRecipes Core.logHelper.info("Shapped Recipes Added"); } - public static String capitalizeFirstLetter(String original) - { + public static String capitalizeFirstLetter(String original) { if (original.length() == 0) return original; return original.substring(0, 1).toUpperCase() + original.substring(1); } - static void addShapelessRecipes() - { - for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) - { + static void addShapelessRecipes() { + for (String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)) { ItemStack item = null; - try - { + try { item = ItemIngots.getIngotByName(name, 9); - } catch (InvalidParameterException e) - { - try - { + } catch (InvalidParameterException e) { + try { item = ItemGems.getGemByName(name, 9); - } catch (InvalidParameterException e2) - { + } catch (InvalidParameterException e2) { continue; } } - if (item == null) - { + if (item == null) { continue; } - GameRegistry - .addShapelessRecipe(BlockStorage.getStorageBlockByName(name), item, item, item, item, item, item, - item, item, item); + GameRegistry.addShapelessRecipe(BlockStorage.getStorageBlockByName(name), item, item, item, item, item, + item, item, item, item); GameRegistry.addShapelessRecipe(item, BlockStorage.getStorageBlockByName(name, 9)); } GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.rubberPlanks, 4), ModBlocks.rubberLog); - for (String name : ItemDustsSmall.types) - { + for (String name : ItemDustsSmall.types) { GameRegistry.addShapelessRecipe(ItemDustsSmall.getSmallDustByName(name, 4), ItemDusts.getDustByName(name)); GameRegistry.addShapelessRecipe(ItemDusts.getDustByName(name, 1), ItemDustsSmall.getSmallDustByName(name), ItemDustsSmall.getSmallDustByName(name), ItemDustsSmall.getSmallDustByName(name), ItemDustsSmall.getSmallDustByName(name)); } - Core.logHelper.info("Shapless Recipes Added"); + Core.logHelper.info("Shapeless Recipes Added"); } - static void addMachineRecipes() - { - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.quantumTank), "EPE", "PCP", "EPE", 'P', "ingotPlatinum", - 'E', ItemParts.getPartByName("advancedCircuit"), 'C', ModBlocks.quantumChest); + static void addMachineRecipes() { + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.quantumTank), "EPE", "PCP", "EPE", 'P', + "ingotPlatinum", 'E', ItemParts.getPartByName("advancedCircuit"), 'C', ModBlocks.quantumChest); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.digitalChest), "PPP", "PDP", "PCP", 'P', "plateAluminum", - 'D', ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.digitalChest), "PPP", "PDP", "PCP", 'P', + "plateAluminum", 'D', ItemParts.getPartByName("dataOrb"), 'C', + ItemParts.getPartByName("computerMonitor")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.digitalChest), "PPP", "PDP", "PCP", 'P', "plateSteel", 'D', - ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.digitalChest), "PPP", "PDP", "PCP", 'P', "plateSteel", + 'D', ItemParts.getPartByName("dataOrb"), 'C', ItemParts.getPartByName("computerMonitor")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.AlloySmelter), "XCX", "FMF", "XXX", 'C', ItemParts.getPartByName("electronicCircuit"), 'F', new ItemStack(ModBlocks.ElectricFurnace), 'M', BlockMachineFrame.getFrameByName("machine", 1)); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.LesuStorage), "LLL", "LCL", "LLL", 'L', "blockLapis", 'C', - ItemParts.getPartByName("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.LesuStorage), "LLL", "LCL", "LLL", 'L', "blockLapis", + 'C', ItemParts.getPartByName("electronicCircuit")); - TechRebornAPI - .addRollingOreMachinceRecipe(ItemParts.getPartByName("cupronickelHeatingCoil"), "NCN", "C C", "NCN", - 'N', "ingotCupronickel", 'C', "ingotCopper"); + TechRebornAPI.addRollingOreMachinceRecipe(ItemParts.getPartByName("cupronickelHeatingCoil"), "NCN", "C C", + "NCN", 'N', "ingotCupronickel", 'C', "ingotCopper"); RecipeHandler.addRecipe(new VacuumFreezerRecipe(ItemIngots.getIngotByName("hotTungstensteel"), ItemIngots.getIngotByName("tungstensteel"), 440, 128)); @@ -739,8 +702,7 @@ public class ModRecipes new VacuumFreezerRecipe(ItemCells.getCellByName("water"), ItemCells.getCellByName("cell"), 60, 128)); } - static void addSmeltingRecipes() - { + static void addSmeltingRecipes() { GameRegistry.addSmelting(ItemDusts.getDustByName("iron", 1), new ItemStack(Items.iron_ingot), 1F); GameRegistry.addSmelting(ItemDusts.getDustByName("gold", 1), new ItemStack(Items.gold_ingot), 1F); GameRegistry.addSmelting(ItemParts.getPartByName("rubberSap"), ItemParts.getPartByName("rubber"), 1F); @@ -751,135 +713,100 @@ public class ModRecipes Core.logHelper.info("Smelting Recipes Added"); } - static void addAlloySmelterRecipes() - { + static void addAlloySmelterRecipes() { // Bronze - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("tin", 1), - ItemIngots.getIngotByName("bronze", 4), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("tin", 1), - ItemIngots.getIngotByName("bronze", 4), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("tin", 1), - ItemIngots.getIngotByName("bronze", 4), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("tin", 1), - ItemIngots.getIngotByName("bronze", 4), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), + ItemIngots.getIngotByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), + ItemDusts.getDustByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), + ItemIngots.getIngotByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), + ItemDusts.getDustByName("tin", 1), ItemIngots.getIngotByName("bronze", 4), 200, 16)); // Electrum - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), ItemIngots.getIngotByName("silver", 1), - ItemIngots.getIngotByName("electrum", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), ItemDusts.getDustByName("silver", 1), - ItemIngots.getIngotByName("electrum", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemIngots.getIngotByName("silver", 1), - ItemIngots.getIngotByName("electrum", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), ItemDusts.getDustByName("silver", 1), - ItemIngots.getIngotByName("electrum", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), + ItemIngots.getIngotByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), + ItemDusts.getDustByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), + ItemIngots.getIngotByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("gold", 1), + ItemDusts.getDustByName("silver", 1), ItemIngots.getIngotByName("electrum", 2), 200, 16)); // Invar - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 2), ItemIngots.getIngotByName("nickel", 1), - ItemIngots.getIngotByName("invar", 3), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 2), ItemDusts.getDustByName("nickel", 1), - ItemIngots.getIngotByName("invar", 3), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemIngots.getIngotByName("nickel", 1), - ItemIngots.getIngotByName("invar", 3), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), ItemDusts.getDustByName("nickel", 1), - ItemIngots.getIngotByName("invar", 3), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 2), + ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 2), + ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), + ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("iron", 2), + ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("invar", 3), 200, 16)); // Cupronickel - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 1), ItemIngots.getIngotByName("nickel", 1), - ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 1), ItemDusts.getDustByName("nickel", 1), - ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 1), ItemIngots.getIngotByName("nickel", 1), - ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 1), ItemDusts.getDustByName("nickel", 1), - ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 1), + ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 1), + ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 1), + ItemIngots.getIngotByName("nickel", 1), ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 1), + ItemDusts.getDustByName("nickel", 1), ItemIngots.getIngotByName("cupronickel", 2), 200, 16)); // Nichrome - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("chrome", 1), ItemIngots.getIngotByName("nickel", 4), - ItemIngots.getIngotByName("nichrome", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("chrome", 1), ItemDusts.getDustByName("nickel", 4), - ItemIngots.getIngotByName("nichrome", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("chrome", 1), ItemIngots.getIngotByName("nickel", 4), - ItemIngots.getIngotByName("nichrome", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("chrome", 1), ItemDusts.getDustByName("nickel", 4), - ItemIngots.getIngotByName("nichrome", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("chrome", 1), + ItemIngots.getIngotByName("nickel", 4), ItemIngots.getIngotByName("nichrome", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("chrome", 1), + ItemDusts.getDustByName("nickel", 4), ItemIngots.getIngotByName("nichrome", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("chrome", 1), + ItemIngots.getIngotByName("nickel", 4), ItemIngots.getIngotByName("nichrome", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("chrome", 1), + ItemDusts.getDustByName("nickel", 4), ItemIngots.getIngotByName("nichrome", 5), 200, 16)); // Magnalium RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("magnesium", 1), ItemIngots.getIngotByName("aluminum", 4), ItemIngots.getIngotByName("magnalium", 3), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("magnesium", 1), ItemDusts.getDustByName("aluminum", 4), - ItemIngots.getIngotByName("magnalium", 3), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("magnesium", 1), + ItemDusts.getDustByName("aluminum", 4), ItemIngots.getIngotByName("magnalium", 3), 200, 16)); // Battery Alloy - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("lead", 4), ItemIngots.getIngotByName("antimony", 1), - ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("lead", 4), ItemDusts.getDustByName("antimony", 1), - ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("lead", 4), ItemIngots.getIngotByName("antimony", 1), - ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("lead", 4), ItemDusts.getDustByName("antimony", 1), - ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("lead", 4), + ItemIngots.getIngotByName("antimony", 1), ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("lead", 4), + ItemDusts.getDustByName("antimony", 1), ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("lead", 4), + ItemIngots.getIngotByName("antimony", 1), ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("lead", 4), + ItemDusts.getDustByName("antimony", 1), ItemIngots.getIngotByName("batteryAlloy", 5), 200, 16)); // Brass - if (OreUtil.doesOreExistAndValid("ingotBrass")) - { + if (OreUtil.doesOreExistAndValid("ingotBrass")) { ItemStack brassStack = OreDictionary.getOres("ingotBrass").get(0); brassStack.stackSize = 4; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemIngots.getIngotByName("zinc", 1), - brassStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), ItemDusts.getDustByName("zinc", 1), - brassStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("zinc", 1), - brassStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("zinc", 1), - brassStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), + ItemIngots.getIngotByName("zinc", 1), brassStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), + ItemDusts.getDustByName("zinc", 1), brassStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), + ItemIngots.getIngotByName("zinc", 1), brassStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), + ItemDusts.getDustByName("zinc", 1), brassStack, 200, 16)); } // Red Alloy - if (OreUtil.doesOreExistAndValid("ingotRedAlloy")) - { + if (OreUtil.doesOreExistAndValid("ingotRedAlloy")) { ItemStack redAlloyStack = OreDictionary.getOres("ingotRedAlloy").get(0); redAlloyStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.redstone, 4), ItemIngots.getIngotByName("copper", 1), - redAlloyStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.redstone, 4), new ItemStack(Items.iron_ingot, 1), - redAlloyStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.redstone, 4), + ItemIngots.getIngotByName("copper", 1), redAlloyStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.redstone, 4), + new ItemStack(Items.iron_ingot, 1), redAlloyStack, 200, 16)); } // Blue Alloy - if (OreUtil.doesOreExistAndValid("ingotBlueAlloy")) - { + if (OreUtil.doesOreExistAndValid("ingotBlueAlloy")) { ItemStack blueAlloyStack = OreDictionary.getOres("ingotBlueAlloy").get(0); blueAlloyStack.stackSize = 1; RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("teslatite", 4), @@ -887,22 +814,19 @@ public class ModRecipes } // Blue Alloy - if (OreUtil.doesOreExistAndValid("ingotPurpleAlloy") && OreUtil.doesOreExistAndValid("dustInfusedTeslatite")) - { + if (OreUtil.doesOreExistAndValid("ingotPurpleAlloy") && OreUtil.doesOreExistAndValid("dustInfusedTeslatite")) { ItemStack purpleAlloyStack = OreDictionary.getOres("ingotPurpleAlloy").get(0); purpleAlloyStack.stackSize = 1; ItemStack infusedTeslatiteStack = OreDictionary.getOres("ingotPurpleAlloy").get(0); infusedTeslatiteStack.stackSize = 8; RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("redAlloy", 1), ItemIngots.getIngotByName("blueAlloy", 1), purpleAlloyStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), infusedTeslatiteStack, purpleAlloyStack, - 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.gold_ingot, 1), infusedTeslatiteStack, + purpleAlloyStack, 200, 16)); } // Aluminum Brass - if (OreUtil.doesOreExistAndValid("ingotAluminumBrass")) - { + if (OreUtil.doesOreExistAndValid("ingotAluminumBrass")) { ItemStack aluminumBrassStack = OreDictionary.getOres("ingotAluminumBrass").get(0); aluminumBrassStack.stackSize = 4; RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemIngots.getIngotByName("copper", 3), @@ -911,15 +835,13 @@ public class ModRecipes ItemDusts.getDustByName("aluminum", 1), aluminumBrassStack, 200, 16)); RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemIngots.getIngotByName("aluminum", 1), aluminumBrassStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), ItemDusts.getDustByName("aluminum", 1), - aluminumBrassStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("copper", 3), + ItemDusts.getDustByName("aluminum", 1), aluminumBrassStack, 200, 16)); } // Manyullyn - if (OreUtil.doesOreExistAndValid("ingotManyullyn") && OreUtil.doesOreExistAndValid("ingotCobalt") && OreUtil - .doesOreExistAndValid("ingotArdite")) - { + if (OreUtil.doesOreExistAndValid("ingotManyullyn") && OreUtil.doesOreExistAndValid("ingotCobalt") + && OreUtil.doesOreExistAndValid("ingotArdite")) { ItemStack manyullynStack = OreDictionary.getOres("ingotManyullyn").get(0); manyullynStack.stackSize = 1; ItemStack cobaltStack = OreDictionary.getOres("ingotCobalt").get(0); @@ -931,80 +853,64 @@ public class ModRecipes new AlloySmelterRecipe(cobaltStack, ItemDusts.getDustByName("ardite", 1), manyullynStack, 200, 16)); RecipeHandler.addRecipe( new AlloySmelterRecipe(ItemDusts.getDustByName("cobalt", 1), arditeStack, manyullynStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(ItemDusts.getDustByName("cobalt", 1), ItemDusts.getDustByName("ardite", 1), - manyullynStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(ItemDusts.getDustByName("cobalt", 1), + ItemDusts.getDustByName("ardite", 1), manyullynStack, 200, 16)); } // Conductive Iron - if (OreUtil.doesOreExistAndValid("ingotConductiveIron")) - { + if (OreUtil.doesOreExistAndValid("ingotConductiveIron")) { ItemStack conductiveIronStack = OreDictionary.getOres("ingotConductiveIron").get(0); conductiveIronStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.redstone, 1), new ItemStack(Items.iron_ingot, 1), - conductiveIronStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.redstone, 1), + new ItemStack(Items.iron_ingot, 1), conductiveIronStack, 200, 16)); } // Redstone Alloy - if (OreUtil.doesOreExistAndValid("ingotRedstoneAlloy") && OreUtil.doesOreExistAndValid("itemSilicon")) - { + if (OreUtil.doesOreExistAndValid("ingotRedstoneAlloy") && OreUtil.doesOreExistAndValid("itemSilicon")) { ItemStack redstoneAlloyStack = OreDictionary.getOres("ingotRedstoneAlloy").get(0); redstoneAlloyStack.stackSize = 1; ItemStack siliconStack = OreDictionary.getOres("itemSilicon").get(0); siliconStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.redstone, 1), siliconStack, redstoneAlloyStack, 200, - 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.redstone, 1), siliconStack, + redstoneAlloyStack, 200, 16)); } // Pulsating Iron - if (OreUtil.doesOreExistAndValid("ingotPhasedIron")) - { + if (OreUtil.doesOreExistAndValid("ingotPhasedIron")) { ItemStack pulsatingIronStack = OreDictionary.getOres("ingotPhasedIron").get(0); pulsatingIronStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 1), new ItemStack(Items.ender_pearl, 1), - pulsatingIronStack, 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 1), ItemDusts.getDustByName("enderPearl", 1), - pulsatingIronStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 1), + new ItemStack(Items.ender_pearl, 1), pulsatingIronStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Items.iron_ingot, 1), + ItemDusts.getDustByName("enderPearl", 1), pulsatingIronStack, 200, 16)); } // Vibrant Alloy - if (OreUtil.doesOreExistAndValid("ingotEnergeticAlloy") && OreUtil.doesOreExistAndValid("ingotPhasedGold")) - { + if (OreUtil.doesOreExistAndValid("ingotEnergeticAlloy") && OreUtil.doesOreExistAndValid("ingotPhasedGold")) { ItemStack energeticAlloyStack = OreDictionary.getOres("ingotEnergeticAlloy").get(0); energeticAlloyStack.stackSize = 1; ItemStack vibrantAlloyStack = OreDictionary.getOres("ingotPhasedGold").get(0); vibrantAlloyStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(energeticAlloyStack, new ItemStack(Items.ender_pearl, 1), vibrantAlloyStack, - 200, 16)); - RecipeHandler.addRecipe( - new AlloySmelterRecipe(energeticAlloyStack, ItemDusts.getDustByName("enderPearl", 1), - vibrantAlloyStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(energeticAlloyStack, new ItemStack(Items.ender_pearl, 1), + vibrantAlloyStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(energeticAlloyStack, + ItemDusts.getDustByName("enderPearl", 1), vibrantAlloyStack, 200, 16)); } // Soularium - if (OreUtil.doesOreExistAndValid("ingotSoularium")) - { + if (OreUtil.doesOreExistAndValid("ingotSoularium")) { ItemStack soulariumStack = OreDictionary.getOres("ingotSoularium").get(0); soulariumStack.stackSize = 1; - RecipeHandler.addRecipe( - new AlloySmelterRecipe(new ItemStack(Blocks.soul_sand, 1), new ItemStack(Items.gold_ingot, 1), - soulariumStack, 200, 16)); + RecipeHandler.addRecipe(new AlloySmelterRecipe(new ItemStack(Blocks.soul_sand, 1), + new ItemStack(Items.gold_ingot, 1), soulariumStack, 200, 16)); } } - static void addPlateCuttingMachineRecipes() - { + static void addPlateCuttingMachineRecipes() { - for (String ore : OreUtil.oreNames) - { - if (OreUtil.hasBlock(ore) && OreUtil.hasPlate(ore)) - { + for (String ore : OreUtil.oreNames) { + if (OreUtil.hasBlock(ore) && OreUtil.hasPlate(ore)) { RecipeHandler.addRecipe( new PlateCuttingMachineRecipe(OreUtil.getStackFromName("block" + capitalizeFirstLetter(ore)), OreUtil.getStackFromName("plate" + capitalizeFirstLetter(ore), 9), 200, 16)); @@ -1012,13 +918,11 @@ public class ModRecipes } // Obsidian - RecipeHandler.addRecipe( - new PlateCuttingMachineRecipe(new ItemStack(Blocks.obsidian), ItemPlates.getPlateByName("obsidian", 9), - 100, 4)); + RecipeHandler.addRecipe(new PlateCuttingMachineRecipe(new ItemStack(Blocks.obsidian), + ItemPlates.getPlateByName("obsidian", 9), 100, 4)); } - static void addIndustrialSawmillRecipes() - { + static void addIndustrialSawmillRecipes() { ItemStack pulpStack = OreDictionary.getOres("pulpWood").get(0); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log, 1, 0), null, new FluidStack(FluidRegistry.WATER, 1000), new ItemStack(Blocks.planks, 6, 0), pulpStack, null, 200, 30, @@ -1063,133 +967,123 @@ public class ModRecipes new ItemStack(Blocks.planks, 6, 5), pulpStack, new ItemStack(Items.bucket), 200, 30, false)); } - static void addBlastFurnaceRecipes() - { - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("titanium"), null, ItemIngots.getIngotByName("titanium"), - null, 3600, 120, 1500)); + static void addBlastFurnaceRecipes() { + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("titanium"), null, + ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("titanium", 4), null, ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("titanium", 9), // null, ItemIngots.getIngotByName("titanium"), null, 3600, 120, 1500)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("aluminum"), null, ItemIngots.getIngotByName("aluminum"), - null, 2200, 120, 1700)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("aluminum"), null, + ItemIngots.getIngotByName("aluminum"), null, 2200, 120, 1700)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("aluminum", 4), null, ItemIngots.getIngotByName("aluminum"), null, 2200, 120, 1700)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("aluminum", 9), // null, ItemIngots.getIngotByName("aluminum"), null, 2200, 120, 1700)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("kanthal"), null, ItemIngots.getIngotByName("kanthal"), - null, 5500, 120, 2500)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("kanthal"), null, + ItemIngots.getIngotByName("kanthal"), null, 5500, 120, 2500)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("kanthal", 4), null, ItemIngots.getIngotByName("kanthal"), null, 5500, 120, 2500)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("kanthal", 9), // null, ItemIngots.getIngotByName("kanthal"), null, 5500, 120, 2500)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("tungsten"), null, ItemIngots.getIngotByName("tungsten"), - null, 18000, 120, 2500)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("tungsten"), null, + ItemIngots.getIngotByName("tungsten"), null, 18000, 120, 2500)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("tungsten", 4), null, ItemIngots.getIngotByName("tungsten"), null, 18000, 120, 2500)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("tungsten", 9), // null, ItemIngots.getIngotByName("tungsten"), null, 18000, 120, // 2500)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("chrome"), null, ItemIngots.getIngotByName("chrome"), - null, 4420, 120, 1700)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("chrome"), null, + ItemIngots.getIngotByName("chrome"), null, 4420, 120, 1700)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("chrome", 4), null, ItemIngots.getIngotByName("chrome"), null, 4420, 120, 1700)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("chrome", 9), // null, ItemIngots.getIngotByName("chrome"), null, 4420, 120, 1700)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("steel"), null, ItemIngots.getIngotByName("steel"), null, - 2800, 120, 1000)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("steel"), null, + ItemIngots.getIngotByName("steel"), null, 2800, 120, 1000)); RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDustsSmall.getSmallDustByName("steel", 4), null, ItemIngots.getIngotByName("steel"), null, 2800, 120, 1000)); // RecipeHandler.addRecipe(new // BlastFurnaceRecipe(ItemDustsTiny.getTinyDustByName("steel", 9), null, // ItemIngots.getIngotByName("steel"), null, 2800, 120, 1000)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemDusts.getDustByName("galena", 2), null, ItemIngots.getIngotByName("silver"), - ItemIngots.getIngotByName("lead"), 80, 120, 1500)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemDusts.getDustByName("galena", 2), null, + ItemIngots.getIngotByName("silver"), ItemIngots.getIngotByName("lead"), 80, 120, 1500)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(new ItemStack(Items.iron_ingot), ItemDusts.getDustByName("coal", 2), + RecipeHandler + .addRecipe(new BlastFurnaceRecipe(new ItemStack(Items.iron_ingot), ItemDusts.getDustByName("coal", 2), ItemIngots.getIngotByName("steel"), ItemDusts.getDustByName("darkAshes", 2), 500, 120, 1000)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(ItemIngots.getIngotByName("tungsten"), ItemIngots.getIngotByName("steel"), - ItemIngots.getIngotByName("hotTungstensteel"), ItemDusts.getDustByName("darkAshes", 4), 500, - 500, 3000)); + RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemIngots.getIngotByName("tungsten"), + ItemIngots.getIngotByName("steel"), ItemIngots.getIngotByName("hotTungstensteel"), + ItemDusts.getDustByName("darkAshes", 4), 500, 500, 3000)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(new ItemStack(Blocks.iron_ore), ItemDusts.getDustByName("calcite"), + RecipeHandler + .addRecipe(new BlastFurnaceRecipe(new ItemStack(Blocks.iron_ore), ItemDusts.getDustByName("calcite"), new ItemStack(Items.iron_ingot, 3), ItemDusts.getDustByName("darkAshes"), 140, 120, 1000)); - RecipeHandler.addRecipe( - new BlastFurnaceRecipe(BlockOre.getOreByName("Pyrite"), ItemDusts.getDustByName("calcite"), + RecipeHandler + .addRecipe(new BlastFurnaceRecipe(BlockOre.getOreByName("Pyrite"), ItemDusts.getDustByName("calcite"), new ItemStack(Items.iron_ingot, 2), ItemDusts.getDustByName("darkAshes"), 140, 120, 1000)); } - static void addUUrecipes() - { + static void addUUrecipes() { if (ConfigTechReborn.UUrecipesWood) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.log, 8), " U ", " ", " ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.log, 8), " U ", " ", " ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesStone) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.stone, 16), " ", " U ", " ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.stone, 16), " ", " U ", " ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesSnowBlock) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.snow, 16), "U U", " ", " ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.snow, 16), "U U", " ", " ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesGrass) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.grass, 16), " ", "U ", "U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.grass, 16), " ", "U ", "U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesObsidian) CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.obsidian, 12), "U U", "U U", " ", 'U', ModItems.uuMatter); if (ConfigTechReborn.UUrecipesGlass) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.glass, 32), " U ", "U U", " U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.glass, 32), " U ", "U U", " U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesCocoa) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.dye, 32, 3), "UU ", " U", "UU ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.dye, 32, 3), "UU ", " U", "UU ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesGlowstoneBlock) CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.glowstone, 8), " U ", "U U", "UUU", 'U', ModItems.uuMatter); if (ConfigTechReborn.UUrecipesCactus) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.cactus, 48), " U ", "UUU", "U U", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.cactus, 48), " U ", "UUU", "U U", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesSugarCane) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.reeds, 48), "U U", "U U", "U U", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.reeds, 48), "U U", "U U", "U U", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesVine) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.vine, 24), "U ", "U ", "U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.vine, 24), "U ", "U ", "U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesSnowBall) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.snowball, 16), " ", " ", "UUU", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.snowball, 16), " ", " ", "UUU", 'U', + ModItems.uuMatter); - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.clay_ball, 48), "UU ", "U ", "UU ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.clay_ball, 48), "UU ", "U ", "UU ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipeslilypad) CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.waterlily, 64), "U U", " U ", " U ", 'U', @@ -1200,52 +1094,52 @@ public class ModRecipes ModItems.uuMatter); if (ConfigTechReborn.UUrecipesBone) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.bone, 32), "U ", "UU ", "U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.bone, 32), "U ", "UU ", "U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesFeather) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.feather, 32), " U ", " U ", "U U", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.feather, 32), " U ", " U ", "U U", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesInk) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.dye, 48), " UU", " UU", " U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.dye, 48), " UU", " UU", " U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesEnderPearl) CraftingHelper.addShapedOreRecipe(new ItemStack(Items.ender_pearl, 1), "UUU", "U U", " U ", 'U', ModItems.uuMatter); if (ConfigTechReborn.UUrecipesCoal) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.coal, 5), " U", "U ", " U", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.coal, 5), " U", "U ", " U", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesIronOre) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.iron_ore, 2), "U U", " U ", "U U", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.iron_ore, 2), "U U", " U ", "U U", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesGoldOre) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Blocks.gold_ore, 2), " U ", "UUU", " U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.gold_ore, 2), " U ", "UUU", " U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesRedStone) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.redstone, 24), " ", " U ", "UUU", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.redstone, 24), " ", " U ", "UUU", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesLapis) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.dye, 9, 4), " U ", " U ", " UU", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.dye, 9, 4), " U ", " U ", " UU", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesEmeraldOre) CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.emerald_ore, 1), "UU ", "U U", " UU", 'U', ModItems.uuMatter); if (ConfigTechReborn.UUrecipesEmerald) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.emerald, 2), "UUU", "UUU", " U ", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.emerald, 2), "UUU", "UUU", " U ", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesDiamond) - CraftingHelper - .addShapedOreRecipe(new ItemStack(Items.diamond, 1), "UUU", "UUU", "UUU", 'U', ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe(new ItemStack(Items.diamond, 1), "UUU", "UUU", "UUU", 'U', + ModItems.uuMatter); if (ConfigTechReborn.UUrecipesTinDust) CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 10, 77), " ", "U U", " U", 'U', @@ -1280,29 +1174,24 @@ public class ModRecipes } - static void hideUUrecipes() - { + static void hideUUrecipes() { // TODO } - static void addIndustrialCentrifugeRecipes() - { + static void addIndustrialCentrifugeRecipes() { // Mycelium Byproducts - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Blocks.mycelium, 8), null, new ItemStack(Blocks.brown_mushroom, 2), - new ItemStack(Blocks.red_mushroom, 2), new ItemStack(Items.clay_ball, 1), - new ItemStack(Blocks.sand, 4), 1640, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Blocks.mycelium, 8), null, + new ItemStack(Blocks.brown_mushroom, 2), new ItemStack(Blocks.red_mushroom, 2), + new ItemStack(Items.clay_ball, 1), new ItemStack(Blocks.sand, 4), 1640, 5)); // Blaze Powder Byproducts - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.blaze_powder), null, ItemDusts.getDustByName("darkAshes", 1), - ItemDusts.getDustByName("sulfur", 1), null, null, 1240, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.blaze_powder), null, + ItemDusts.getDustByName("darkAshes", 1), ItemDusts.getDustByName("sulfur", 1), null, null, 1240, 5)); // Magma Cream Products - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.magma_cream, 1), null, new ItemStack(Items.blaze_powder, 1), - new ItemStack(Items.slime_ball, 1), null, null, 2500, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.magma_cream, 1), null, + new ItemStack(Items.blaze_powder, 1), new ItemStack(Items.slime_ball, 1), null, null, 2500, 5)); // Dust Byproducts // RecipeHandler.addRecipe(new @@ -1310,52 +1199,44 @@ public class ModRecipes // ItemDustsTiny.getTinyDustByName("Iridium", 1), // ItemDustsSmall.getSmallDustByName("Nickel", 1), null, null, 3000, // 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("electrum", 2), null, ItemDusts.getDustByName("silver", 1), - ItemDusts.getDustByName("gold", 1), null, null, 2400, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("invar", 3), null, ItemDusts.getDustByName("iron", 2), - ItemDusts.getDustByName("nickel", 1), null, null, 1340, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("electrum", 2), null, + ItemDusts.getDustByName("silver", 1), ItemDusts.getDustByName("gold", 1), null, null, 2400, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("invar", 3), null, + ItemDusts.getDustByName("iron", 2), ItemDusts.getDustByName("nickel", 1), null, null, 1340, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("marble", 8), null, ItemDusts.getDustByName("magnesium", 1), ItemDusts.getDustByName("calcite", 7), null, null, 1280, 5)); RecipeHandler.addRecipe( new CentrifugeRecipe(ItemDusts.getDustByName("redrock", 4), null, ItemDusts.getDustByName("calcite", 2), ItemDusts.getDustByName("flint", 1), ItemDusts.getDustByName("clay", 1), null, 640, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("basalt", 16), null, ItemDusts.getDustByName("peridot", 1), - ItemDusts.getDustByName("calcite", 3), ItemDusts.getDustByName("magnesium", 8), - ItemDusts.getDustByName("darkAshes", 4), 2680, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("basalt", 16), null, + ItemDusts.getDustByName("peridot", 1), ItemDusts.getDustByName("calcite", 3), + ItemDusts.getDustByName("magnesium", 8), ItemDusts.getDustByName("darkAshes", 4), 2680, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("yellowGarnet", 16), null, ItemDusts.getDustByName("andradite", 5), ItemDusts.getDustByName("grossular", 8), ItemDusts.getDustByName("uvarovite", 3), null, 2940, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("redGarnet", 16), null, ItemDusts.getDustByName("pyrope", 3), ItemDusts.getDustByName("almandine", 5), ItemDusts.getDustByName("spessartine", 8), null, 2940, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("darkAshes", 2), null, ItemDusts.getDustByName("ashes", 2), - null, null, null, 240, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("darkAshes", 2), null, + ItemDusts.getDustByName("ashes", 2), null, null, null, 240, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("manyullyn", 2), null, ItemDusts.getDustByName("cobalt", 1), ItemDusts.getDustByName("ardite", 1), null, null, 1240, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("nichrome", 5), null, ItemDusts.getDustByName("nickel", 4), - ItemDusts.getDustByName("chrome", 1), null, null, 2240, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("nichrome", 5), null, + ItemDusts.getDustByName("nickel", 4), ItemDusts.getDustByName("chrome", 1), null, null, 2240, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("cupronickel", 2), null, ItemDusts.getDustByName("copper", 1), ItemDusts.getDustByName("nickel", 1), null, null, 960, 5)); RecipeHandler.addRecipe( new CentrifugeRecipe(ItemDusts.getDustByName("kanthal", 3), null, ItemDusts.getDustByName("iron", 1), ItemDusts.getDustByName("aluminum", 1), ItemDusts.getDustByName("chrome", 1), null, 1040, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("brass", 4), null, ItemDusts.getDustByName("zinc", 1), - ItemDusts.getDustByName("copper", 3), null, null, 2000, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("brass", 4), null, + ItemDusts.getDustByName("zinc", 1), ItemDusts.getDustByName("copper", 3), null, null, 2000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("aluminumBrass", 4), null, ItemDusts.getDustByName("aluminum", 1), ItemDusts.getDustByName("copper", 3), null, null, 2000, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("bronze", 4), null, ItemDusts.getDustByName("tin", 1), - ItemDusts.getDustByName("copper", 3), null, null, 2420, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("netherrack", 16), null, new ItemStack(Items.redstone, 1), - ItemDusts.getDustByName("sulfur", 4), ItemDusts.getDustByName("basalt", 1), - new ItemStack(Items.gold_nugget, 1), 2400, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("bronze", 4), null, + ItemDusts.getDustByName("tin", 1), ItemDusts.getDustByName("copper", 3), null, null, 2420, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("netherrack", 16), null, + new ItemStack(Items.redstone, 1), ItemDusts.getDustByName("sulfur", 4), + ItemDusts.getDustByName("basalt", 1), new ItemStack(Items.gold_nugget, 1), 2400, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("enderEye", 1), null, ItemDusts.getDustByName("enderPearl", 1), new ItemStack(Items.blaze_powder, 1), null, null, 1280, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("tetrahedrite", 8), null, @@ -1365,10 +1246,9 @@ public class ModRecipes ItemDusts.getDustByName("lazurite", 12), ItemDusts.getDustByName("sodalite", 2), ItemDusts.getDustByName("pyrite", 7), ItemDusts.getDustByName("calcite", 1), 3580, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.glowstone_dust, 16), RecipeUtils.getEmptyCell(1), - ItemCells.getCellByName("helium", 1, false), ItemDusts.getDustByName("gold", 8), - new ItemStack(Items.redstone), null, 25000, 20)); + RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.glowstone_dust, 16), + RecipeUtils.getEmptyCell(1), ItemCells.getCellByName("helium", 1, false), + ItemDusts.getDustByName("gold", 8), new ItemStack(Items.redstone), null, 25000, 20)); // RecipeHandler.addRecipe(new // CentrifugeRecipe(ItemDusts.getDustByName("endstone", 16), // RecipeUtils.getEmptyCell(2), ItemCells.getCellByName("helium3", 1, @@ -1377,12 +1257,9 @@ public class ModRecipes // ItemStack(Blocks.sand, 12), 4800, 5)); } - static void addIndustrialGrinderRecipes() - { - for (String ore : OreUtil.oreNames) - { - if (OreUtil.hasIngot(ore) && OreUtil.hasDustSmall(ore) && OreUtil.hasBlock(ore)) - { + static void addIndustrialGrinderRecipes() { + for (String ore : OreUtil.oreNames) { + if (OreUtil.hasIngot(ore) && OreUtil.hasDustSmall(ore) && OreUtil.hasBlock(ore)) { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(OreUtil.getStackFromName("block" + capitalizeFirstLetter(ore)), null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1400,10 +1277,8 @@ public class ModRecipes } // Copper Ore - if (OreUtil.doesOreExistAndValid("oreCopper")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCopper")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCopper").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1417,30 +1292,26 @@ public class ModRecipes new FluidStack(ModFluids.fluidSodiumpersulfate, 1000), ItemDusts.getDustByName("copper", 2), ItemDusts.getDustByName("gold", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), null, - ItemDusts.getDustByName("copper", 2), ItemDusts.getDustByName("gold", 1), + RecipeHandler + .addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), + null, ItemDusts.getDustByName("copper", 2), ItemDusts.getDustByName("gold", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), new ItemStack(Items.bucket), 100, 120)); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(ModFluids.fluidMercury, 1000), ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), ItemDusts.getDustByName("nickel", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), null, - ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), - ItemDusts.getDustByName("nickel", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), + null, ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), + ItemDusts.getDustByName("nickel", 1), new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Copper Ore"); } } // Tin Ore - if (OreUtil.doesOreExistAndValid("oreTin")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTin")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTin").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1454,21 +1325,18 @@ public class ModRecipes new FluidStack(ModFluids.fluidSodiumpersulfate, 1000), ItemDusts.getDustByName("tin", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("zinc", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), null, - ItemDusts.getDustByName("tin", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), + RecipeHandler + .addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), + null, ItemDusts.getDustByName("tin", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("zinc", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Tin Ore"); } } // Nickel Ore - if (OreUtil.doesOreExistAndValid("oreNickel")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreNickel")) { + try { ItemStack oreStack = OreDictionary.getOres("oreNickel").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1482,31 +1350,26 @@ public class ModRecipes new FluidStack(ModFluids.fluidSodiumpersulfate, 1000), ItemDusts.getDustByName("nickel", 3), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Platinum", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), null, - ItemDusts.getDustByName("nickel", 3), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDustsSmall.getSmallDustByName("Platinum", 1), new ItemStack(Items.bucket), 100, - 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + new ItemStack(ModItems.bucketSodiumpersulfate), null, ItemDusts.getDustByName("nickel", 3), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Platinum", 1), + new ItemStack(Items.bucket), 100, 120)); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(ModFluids.fluidMercury, 1000), ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("platinum", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), null, - ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDusts.getDustByName("platinum", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), + null, ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), + ItemDusts.getDustByName("platinum", 1), new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Nickel Ore"); } } // Zinc Ore - if (OreUtil.doesOreExistAndValid("oreZinc")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreZinc")) { + try { ItemStack oreStack = OreDictionary.getOres("oreZinc").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1520,21 +1383,18 @@ public class ModRecipes new FluidStack(ModFluids.fluidSodiumpersulfate, 1000), ItemDusts.getDustByName("zinc", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("iron", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), null, - ItemDusts.getDustByName("zinc", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), + RecipeHandler + .addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketSodiumpersulfate), + null, ItemDusts.getDustByName("zinc", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("iron", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Zinc Ore"); } } // Silver Ore - if (OreUtil.doesOreExistAndValid("oreSilver")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreSilver")) { + try { ItemStack oreStack = OreDictionary.getOres("oreSilver").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1548,21 +1408,17 @@ public class ModRecipes new IndustrialGrinderRecipe(oreStack, null, new FluidStack(ModFluids.fluidMercury, 1000), ItemDusts.getDustByName("silver", 3), ItemDustsSmall.getSmallDustByName("Lead", 1), ItemDustsSmall.getSmallDustByName("Sulfur", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), null, - ItemDusts.getDustByName("silver", 3), ItemDustsSmall.getSmallDustByName("Lead", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), + null, ItemDusts.getDustByName("silver", 3), ItemDustsSmall.getSmallDustByName("Lead", 1), + ItemDustsSmall.getSmallDustByName("Sulfur", 1), new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Silver Ore"); } } // Lead Ore - if (OreUtil.doesOreExistAndValid("oreLead")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreLead")) { + try { ItemStack oreStack = OreDictionary.getOres("oreLead").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), @@ -1576,42 +1432,34 @@ public class ModRecipes new IndustrialGrinderRecipe(oreStack, null, new FluidStack(ModFluids.fluidMercury, 1000), ItemDusts.getDustByName("lead", 2), ItemDusts.getDustByName("silver", 1), ItemDustsSmall.getSmallDustByName("Sulfur", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), null, - ItemDusts.getDustByName("lead", 2), ItemDusts.getDustByName("silver", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(ModItems.bucketMercury), + null, ItemDusts.getDustByName("lead", 2), ItemDusts.getDustByName("silver", 1), + ItemDustsSmall.getSmallDustByName("Sulfur", 1), new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Lead Ore"); } } // Apatite Ore - if (OreUtil.doesOreExistAndValid("oreApatite") & OreUtil.doesOreExistAndValid("gemApatite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreApatite") & OreUtil.doesOreExistAndValid("gemApatite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreApatite").get(0); ItemStack gemStack = OreDictionary.getOres("gemApatite").get(0); gemStack.stackSize = 6; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, gemStack, ItemDustsSmall.getSmallDustByName("Phosphorous", 4), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - gemStack, ItemDustsSmall.getSmallDustByName("Phosphorous", 4), - new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, gemStack, ItemDustsSmall.getSmallDustByName("Phosphorous", 4), + new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Apatite Ore"); } } // Nether Quartz Ore - if (OreUtil.doesOreExistAndValid("dustNetherQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("dustNetherQuartz")) { + try { ItemStack dustStack = OreDictionary.getOres("dustNetherQuartz").get(0); dustStack.stackSize = 4; RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.quartz_ore, 1), null, @@ -1620,138 +1468,107 @@ public class ModRecipes RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.quartz_ore, 1), new ItemStack(Items.water_bucket), null, new ItemStack(Items.quartz, 2), dustStack, ItemDustsSmall.getSmallDustByName("Netherrack", 2), new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Nether Quartz Ore"); } } // Certus Quartz Ore - if (OreUtil.doesOreExistAndValid("oreCertusQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCertusQuartz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCertusQuartz").get(0); ItemStack gemStack = OreDictionary.getOres("crystalCertusQuartz").get(0); ItemStack dustStack = OreDictionary.getOres("dustCertusQuartz").get(0); dustStack.stackSize = 2; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Certus Quartz Ore"); } } // Charged Certus Quartz Ore - if (OreUtil.doesOreExistAndValid("oreChargedCertusQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreChargedCertusQuartz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreChargedCertusQuartz").get(0); ItemStack gemStack = OreDictionary.getOres("crystalChargedCertusQuartz").get(0); ItemStack dustStack = OreDictionary.getOres("dustCertusQuartz").get(0); dustStack.stackSize = 2; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Charged Certus Quartz Ore"); } } // Amethyst Ore - if (OreUtil.doesOreExistAndValid("oreAmethyst") && OreUtil.doesOreExistAndValid("gemAmethyst")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreAmethyst") && OreUtil.doesOreExistAndValid("gemAmethyst")) { + try { ItemStack oreStack = OreDictionary.getOres("oreAmethyst").get(0); ItemStack gemStack = OreDictionary.getOres("gemAmethyst").get(0); gemStack.stackSize = 2; ItemStack dustStack = OreDictionary.getOres("gemAmethyst").get(0); dustStack.stackSize = 1; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Certus Quartz Ore"); } } // Topaz Ore - if (OreUtil.doesOreExistAndValid("oreTopaz") && OreUtil.doesOreExistAndValid("gemTopaz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTopaz") && OreUtil.doesOreExistAndValid("gemTopaz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTopaz").get(0); ItemStack gemStack = OreDictionary.getOres("gemTopaz").get(0); gemStack.stackSize = 2; ItemStack dustStack = OreDictionary.getOres("gemTopaz").get(0); dustStack.stackSize = 1; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Topaz Ore"); } } // Tanzanite Ore - if (OreUtil.doesOreExistAndValid("oreTanzanite") && OreUtil.doesOreExistAndValid("gemTanzanite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTanzanite") && OreUtil.doesOreExistAndValid("gemTanzanite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTanzanite").get(0); ItemStack gemStack = OreDictionary.getOres("gemTanzanite").get(0); gemStack.stackSize = 2; ItemStack dustStack = OreDictionary.getOres("gemTanzanite").get(0); dustStack.stackSize = 1; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Tanzanite Ore"); } } // Malachite Ore - if (OreUtil.doesOreExistAndValid("oreMalachite") && OreUtil.doesOreExistAndValid("gemMalachite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreMalachite") && OreUtil.doesOreExistAndValid("gemMalachite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreMalachite").get(0); ItemStack gemStack = OreDictionary.getOres("gemMalachite").get(0); gemStack.stackSize = 2; ItemStack dustStack = OreDictionary.getOres("gemMalachite").get(0); dustStack.stackSize = 1; - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), gemStack, - dustStack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, gemStack, - dustStack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, null, + new FluidStack(FluidRegistry.WATER, 1000), gemStack, dustStack, null, null, 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + gemStack, dustStack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Malachite Ore"); } } @@ -1906,11 +1723,10 @@ public class ModRecipes new FluidStack(FluidRegistry.WATER, 1000), ItemDusts.getDustByName("tetrahedrite", 2), ItemDustsSmall.getSmallDustByName("Antimony", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 12), new ItemStack(Items.water_bucket), - null, ItemDusts.getDustByName("tetrahedrite", 2), - ItemDustsSmall.getSmallDustByName("Antimony", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), - new ItemStack(Items.bucket), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 12), + new ItemStack(Items.water_bucket), null, ItemDusts.getDustByName("tetrahedrite", 2), + ItemDustsSmall.getSmallDustByName("Antimony", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), + new ItemStack(Items.bucket), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 12), null, new FluidStack(ModFluids.fluidSodiumpersulfate, 1000), ItemDusts.getDustByName("tetrahedrite", 3), @@ -1922,49 +1738,35 @@ public class ModRecipes new ItemStack(Items.bucket), 100, 120)); } - static void addImplosionCompressorRecipes() - { + static void addImplosionCompressorRecipes() { } - static void addChemicalReactorRecipes() - { - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(ItemCells.getCellByName("calcium", 1), ItemCells.getCellByName("carbon", 1), - ItemCells.getCellByName("calciumCarbonate", 2), 240, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Items.gold_nugget, 8), new ItemStack(Items.melon, 1), - new ItemStack(Items.speckled_melon, 1), 40, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(ItemCells.getCellByName("nitrogen", 1), ItemCells.getCellByName("carbon", 1), - ItemCells.getCellByName("nitrocarbon", 2), 1500, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(ItemCells.getCellByName("carbon", 1), ItemCells.getCellByName("hydrogen", 4), - ItemCells.getCellByName("methane", 5), 3500, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(ItemCells.getCellByName("sulfur", 1), ItemCells.getCellByName("sodium", 1), - ItemCells.getCellByName("sodiumSulfide", 2), 100, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Items.blaze_powder, 1), new ItemStack(Items.ender_pearl, 1), - new ItemStack(Items.ender_eye, 1), 40, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Items.gold_nugget, 8), new ItemStack(Items.carrot, 1), - new ItemStack(Items.golden_carrot, 1), 40, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(ItemCells.getCellByName("glyceryl", 1), ItemCells.getCellByName("diesel", 4), - ItemCells.getCellByName("nitroDiesel", 5), 1000, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Items.gold_ingot, 8), new ItemStack(Items.apple, 1), - new ItemStack(Items.golden_apple, 1), 40, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Blocks.gold_block, 8), new ItemStack(Items.apple, 1), - new ItemStack(Items.golden_apple, 1, 1), 40, 30)); - RecipeHandler.addRecipe( - new ChemicalReactorRecipe(new ItemStack(Items.blaze_powder, 1), new ItemStack(Items.slime_ball, 1), - new ItemStack(Items.magma_cream, 1), 40, 30)); + static void addChemicalReactorRecipes() { + RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("calcium", 1), + ItemCells.getCellByName("carbon", 1), ItemCells.getCellByName("calciumCarbonate", 2), 240, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Items.gold_nugget, 8), + new ItemStack(Items.melon, 1), new ItemStack(Items.speckled_melon, 1), 40, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("nitrogen", 1), + ItemCells.getCellByName("carbon", 1), ItemCells.getCellByName("nitrocarbon", 2), 1500, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("carbon", 1), + ItemCells.getCellByName("hydrogen", 4), ItemCells.getCellByName("methane", 5), 3500, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("sulfur", 1), + ItemCells.getCellByName("sodium", 1), ItemCells.getCellByName("sodiumSulfide", 2), 100, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Items.blaze_powder, 1), + new ItemStack(Items.ender_pearl, 1), new ItemStack(Items.ender_eye, 1), 40, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Items.gold_nugget, 8), + new ItemStack(Items.carrot, 1), new ItemStack(Items.golden_carrot, 1), 40, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemCells.getCellByName("glyceryl", 1), + ItemCells.getCellByName("diesel", 4), ItemCells.getCellByName("nitroDiesel", 5), 1000, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Items.gold_ingot, 8), + new ItemStack(Items.apple, 1), new ItemStack(Items.golden_apple, 1), 40, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Blocks.gold_block, 8), + new ItemStack(Items.apple, 1), new ItemStack(Items.golden_apple, 1, 1), 40, 30)); + RecipeHandler.addRecipe(new ChemicalReactorRecipe(new ItemStack(Items.blaze_powder, 1), + new ItemStack(Items.slime_ball, 1), new ItemStack(Items.magma_cream, 1), 40, 30)); } - static void addIndustrialElectrolyzerRecipes() - { + static void addIndustrialElectrolyzerRecipes() { RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("nitrocarbon", 2), null, ItemCells.getCellByName("nitrogen"), ItemCells.getCellByName("carbon"), null, null, 80, 60)); @@ -1977,14 +1779,12 @@ public class ModRecipes } - static void addIc2Recipes() - { + static void addIc2Recipes() { CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.manual), ItemIngots.getIngotByName("refinedIron"), Items.book); - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("machineParts", 16), "CSC", "SCS", "CSC", 'S', "ingotSteel", - 'C', TechRebornAPI.recipeCompact.getItem("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("machineParts", 16), "CSC", "SCS", "CSC", 'S', + "ingotSteel", 'C', TechRebornAPI.recipeCompact.getItem("electronicCircuit")); CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("energyFlowCircuit", 4), "ATA", "LIL", "ATA", 'T', "ingotTungsten", 'I', "plateIridium", 'A', TechRebornAPI.recipeCompact.getItem("advancedCircuit"), 'L', @@ -1994,9 +1794,11 @@ public class ModRecipes ItemParts.getPartByName("energyFlowCircuit"), 'C', ItemParts.getPartByName("heliumCoolantSimple"), 'T', "ingotTungsten", 'I', TechRebornAPI.recipeCompact.getItem("iridiumPlate")); - CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronicOrb), "LLL", "LPL", "LLL", 'L', - new ItemStack(TechRebornAPI.recipeCompact.getItem("lapotronCrystal").getItem(), 1, - OreDictionary.WILDCARD_VALUE), 'P', TechRebornAPI.recipeCompact.getItem("iridiumPlate")); + CraftingHelper + .addShapedOreRecipe(new ItemStack(ModItems.lapotronicOrb), "LLL", "LPL", "LLL", 'L', + new ItemStack(TechRebornAPI.recipeCompact.getItem("lapotronCrystal").getItem(), 1, + OreDictionary.WILDCARD_VALUE), + 'P', TechRebornAPI.recipeCompact.getItem("iridiumPlate")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.industrialSawmill), "PAP", "SSS", "ACA", 'P', ItemIngots.getIngotByName("refinedIron"), 'A', TechRebornAPI.recipeCompact.getItem("advancedCircuit"), @@ -2012,38 +1814,32 @@ public class ModRecipes ItemParts.getPartByName("energyFlowCircuit"), 'T', ModBlocks.Extractor, 'A', ModBlocks.HighAdvancedMachineBlock, 'O', ModItems.lapotronicOrb); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.heatGenerator), "III", "IHI", "CGC", 'I', "plateIron", 'H', - new ItemStack(Blocks.iron_bars), 'C', "circuitBasic", 'G', ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.heatGenerator), "III", "IHI", "CGC", 'I', "plateIron", + 'H', new ItemStack(Blocks.iron_bars), 'C', "circuitBasic", 'G', ModBlocks.Generator); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine), "IAI", "WGW", "IAI", 'I', "ingotInvar", 'A', - TechRebornAPI.recipeCompact.getItem("advancedCircuit"), 'W', - TechRebornAPI.recipeCompact.getItem("windMill"), 'G', - TechRebornAPI.recipeCompact.getItem("reinforcedGlass")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine), "IAI", "WGW", "IAI", 'I', "ingotInvar", + 'A', TechRebornAPI.recipeCompact.getItem("advancedCircuit"), 'W', + TechRebornAPI.recipeCompact.getItem("windMill"), 'G', + TechRebornAPI.recipeCompact.getItem("reinforcedGlass")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine), "IAI", "WGW", "IAI", 'I', "ingotAluminum", 'A', - TechRebornAPI.recipeCompact.getItem("advancedCircuit"), 'W', - TechRebornAPI.recipeCompact.getItem("windMill"), 'G', - TechRebornAPI.recipeCompact.getItem("reinforcedGlass")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine), "IAI", "WGW", "IAI", 'I', + "ingotAluminum", 'A', TechRebornAPI.recipeCompact.getItem("advancedCircuit"), 'W', + TechRebornAPI.recipeCompact.getItem("windMill"), 'G', + TechRebornAPI.recipeCompact.getItem("reinforcedGlass")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.Semifluidgenerator), "III", "IHI", "CGC", 'I', "plateIron", - 'H', ModBlocks.reinforcedglass, 'C', ItemParts.getPartByName("electronicCircuit"), 'G', - ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Semifluidgenerator), "III", "IHI", "CGC", 'I', + "plateIron", 'H', ModBlocks.reinforcedglass, 'C', ItemParts.getPartByName("electronicCircuit"), 'G', + ModBlocks.Generator); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Semifluidgenerator), "AAA", "AHA", "CGC", 'A', "plateAluminum", 'H', ModBlocks.reinforcedglass, 'C', ItemParts.getPartByName("electronicCircuit"), 'G', ModBlocks.Generator); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator), "III", "I I", "CGC", 'I', "refinedIron", - 'C', ItemParts.getPartByName("electronicCircuit"), 'G', ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator), "III", "I I", "CGC", 'I', + "refinedIron", 'C', ItemParts.getPartByName("electronicCircuit"), 'G', ModBlocks.Generator); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator), "AAA", "A A", "CGC", 'A', "ingotAluminum", - 'C', ItemParts.getPartByName("electronicCircuit"), 'G', ModBlocks.Generator); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator), "AAA", "A A", "CGC", 'A', + "ingotAluminum", 'C', ItemParts.getPartByName("electronicCircuit"), 'G', ModBlocks.Generator); // CraftingHelper.addShapedOreRecipe(new // ItemStack(ModBlocks.MagicalAbsorber), @@ -2067,10 +1863,9 @@ public class ModRecipes TechRebornAPI.recipeCompact.getItem("iridiumPlate"), 'C', ItemParts.getPartByName("electronicCircuit"), 'B', ModItems.lithiumBattery, 'S', ModBlocks.Supercondensator, 'T', ModBlocks.Extractor); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.centrifuge), "SCS", "BEB", "SCS", 'S', "plateSteel", 'C', - "circuitAdvanced", 'B', TechRebornAPI.recipeCompact.getItem("advancedMachine"), 'E', - TechRebornAPI.recipeCompact.getItem("extractor")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.centrifuge), "SCS", "BEB", "SCS", 'S', "plateSteel", + 'C', "circuitAdvanced", 'B', TechRebornAPI.recipeCompact.getItem("advancedMachine"), 'E', + TechRebornAPI.recipeCompact.getItem("extractor")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.BlastFurnace), "CHC", "HBH", "FHF", 'H', new ItemStack(ModItems.parts, 1, 17), 'C', ItemParts.getPartByName("advancedCircuit"), 'B', @@ -2085,10 +1880,9 @@ public class ModRecipes ItemParts.getPartByName("advancedAlloy"), 'C', ItemParts.getPartByName("advancedCircuit"), 'B', BlockMachineFrame.getFrameByName("advancedMachine", 1), 'P', ModBlocks.Compressor); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.VacuumFreezer), "SPS", "CGC", "SPS", 'S', "plateSteel", 'C', - ItemParts.getPartByName("advancedCircuit"), 'G', ModBlocks.reinforcedglass, 'P', - ModBlocks.Extractor); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.VacuumFreezer), "SPS", "CGC", "SPS", 'S', + "plateSteel", 'C', ItemParts.getPartByName("advancedCircuit"), 'G', ModBlocks.reinforcedglass, 'P', + ModBlocks.Extractor); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Distillationtower), "CMC", "PBP", "EME", 'E', ModBlocks.IndustrialElectrolyzer, 'M', "circuitMaster", 'B', @@ -2098,15 +1892,13 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.AlloyFurnace), "III", "F F", "III", 'I', ItemIngots.getIngotByName("refinediron"), 'F', new ItemStack(ModBlocks.ironFurnace)); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.ChemicalReactor), "IMI", "CPC", "IEI", 'I', "ingotInvar", - 'C', ItemParts.getPartByName("advancedCircuit"), 'M', ModBlocks.Extractor, 'P', - ModBlocks.Compressor, 'E', ModBlocks.Extractor); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ChemicalReactor), "IMI", "CPC", "IEI", 'I', + "ingotInvar", 'C', ItemParts.getPartByName("advancedCircuit"), 'M', ModBlocks.Extractor, 'P', + ModBlocks.Compressor, 'E', ModBlocks.Extractor); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.RollingMachine), "PCP", "MBM", "PCP", 'P', Blocks.piston, - 'C', ItemParts.getPartByName("advancedCircuit"), 'M', ModBlocks.Compressor, 'B', - BlockMachineFrame.getFrameByName("machine", 1)); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.RollingMachine), "PCP", "MBM", "PCP", 'P', + Blocks.piston, 'C', ItemParts.getPartByName("advancedCircuit"), 'M', ModBlocks.Compressor, 'B', + BlockMachineFrame.getFrameByName("machine", 1)); // CraftingHelper.addShapedOreRecipe(new // ItemStack(ModBlocks.ElectricCraftingTable), @@ -2137,9 +1929,8 @@ public class ModRecipes CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.HighAdvancedMachineBlock), "CTC", "TBT", "CTC", 'C', "ingotChrome", 'T', "ingotTitanium", 'B', TechRebornAPI.recipeCompact.getItem("advancedMachine")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 0), "III", "CBC", "III", 'I', "plateIron", - 'C', "circuitBasic", 'B', TechRebornAPI.recipeCompact.getItem("machine")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 0), "III", "CBC", "III", 'I', + "plateIron", 'C', "circuitBasic", 'B', TechRebornAPI.recipeCompact.getItem("machine")); CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 1), "SSS", "CBC", "SSS", 'S', "plateSteel", 'C', "circuitAdvanced", 'B', TechRebornAPI.recipeCompact.getItem("advancedMachine")); @@ -2157,51 +1948,47 @@ public class ModRecipes ItemParts.getPartByName("energyFlowCircuit")); // Smetling - GameRegistry - .addSmelting(ItemDusts.getDustByName("copper", 1), TechRebornAPI.recipeCompact.getItem("copperIngot"), - 1F); - GameRegistry - .addSmelting(ItemDusts.getDustByName("tin", 1), TechRebornAPI.recipeCompact.getItem("tinIngot"), 1F); - GameRegistry - .addSmelting(ItemDusts.getDustByName("bronze", 1), TechRebornAPI.recipeCompact.getItem("bronzeIngot"), - 1F); - GameRegistry - .addSmelting(ItemDusts.getDustByName("lead", 1), TechRebornAPI.recipeCompact.getItem("leadIngot"), 1F); - GameRegistry - .addSmelting(ItemDusts.getDustByName("silver", 1), TechRebornAPI.recipeCompact.getItem("silverIngot"), - 1F); + GameRegistry.addSmelting(ItemDusts.getDustByName("copper", 1), + TechRebornAPI.recipeCompact.getItem("copperIngot"), 1F); + GameRegistry.addSmelting(ItemDusts.getDustByName("tin", 1), TechRebornAPI.recipeCompact.getItem("tinIngot"), + 1F); + GameRegistry.addSmelting(ItemDusts.getDustByName("bronze", 1), + TechRebornAPI.recipeCompact.getItem("bronzeIngot"), 1F); + GameRegistry.addSmelting(ItemDusts.getDustByName("lead", 1), TechRebornAPI.recipeCompact.getItem("leadIngot"), + 1F); + GameRegistry.addSmelting(ItemDusts.getDustByName("silver", 1), + TechRebornAPI.recipeCompact.getItem("silverIngot"), 1F); // Saw mill ItemStack pulpStack = OreDictionary.getOres("pulpWood").get(0); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log, 1, 0), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 0), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log, 1, 0), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 0), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log, 1, 2), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 2), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log, 1, 3), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 3), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log2, 1, 0), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 4), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); RecipeHandler.addRecipe(new IndustrialSawmillRecipe(new ItemStack(Blocks.log2, 1, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Blocks.planks, 6, 5), pulpStack, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 30, false)); + ItemCells.getCellByName("empty"), 200, 30, false)); // UU if (ConfigTechReborn.UUrecipesIridiamOre) - CraftingHelper - .addShapedOreRecipe((TechRebornAPI.recipeCompact.getItem("iridiumOre")), "UUU", " U ", "UUU", 'U', - ModItems.uuMatter); + CraftingHelper.addShapedOreRecipe((TechRebornAPI.recipeCompact.getItem("iridiumOre")), "UUU", " U ", "UUU", + 'U', ModItems.uuMatter); // Blast Furnace RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemCells.getCellByName("silicon", 2), null, ItemPlates.getPlateByName("silicon"), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2), 1000, 120, 1500)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2), 1000, 120, 1500)); // CentrifugeRecipes @@ -2224,130 +2011,125 @@ public class ModRecipes // Methane RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.mushroom_stew, 16), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), null, null, null, + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.apple, 32), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.apple, 32), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.porkchop, 12), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.porkchop, 12), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.cooked_porkchop, 16), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), null, null, null, + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.bread, 64), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.bread, 64), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.fish, 12), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.fish, 12), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.cooked_fish, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.cooked_fish, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.beef, 12), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.beef, 12), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.cooked_beef, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.cooked_beef, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Blocks.pumpkin, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Blocks.pumpkin, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.speckled_melon, 1), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), new ItemStack(Items.gold_nugget, 6), null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.spider_eye, 32), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.spider_eye, 32), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.chicken, 12), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.chicken, 12), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.cooked_chicken, 16), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), null, null, null, + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.rotten_flesh, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.rotten_flesh, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.melon, 64), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.melon, 64), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.cookie, 64), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.cookie, 64), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.cake, 8), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.cake, 8), ItemCells.getCellByName("empty"), + ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.golden_carrot, 1), + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), + new ItemStack(Items.gold_nugget, 6), null, null, 5000, 5)); + RecipeHandler.addRecipe( + new CentrifugeRecipe(new ItemStack(Items.carrot, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.golden_carrot, 1), TechRebornAPI.recipeCompact.getItem("cell"), - ItemCells.getCellByName("methane", 1), new ItemStack(Items.gold_nugget, 6), null, null, 5000, - 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.carrot, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.baked_potato, 24), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.baked_potato, 24), TechRebornAPI.recipeCompact.getItem("cell"), - ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.potato, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.potato, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.poisonous_potato, 12), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), null, null, null, + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Items.nether_wart, 1), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Items.nether_wart, 1), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); // Fix with ic2 // RecipeHandler.addRecipe(new CentrifugeRecipe(new // ItemStack(TechRebornAPI.recipeCompact.getItem("terraWart").getItem(), - // 16), TechRebornAPI.recipeCompact.getItem("cell"), + // 16), ItemCells.getCellByName("empty"), // ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Blocks.brown_mushroom, 1), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("methane", 1), null, null, null, + ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Blocks.red_mushroom, 1), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Blocks.red_mushroom, 1), ItemCells.getCellByName("empty"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); // Rubber Wood Yields RecipeHandler.addRecipe( new CentrifugeRecipe(new ItemStack(TechRebornAPI.recipeCompact.getItem("rubberWood").getItem(), 16), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 5), - new ItemStack(ModItems.parts, 8, 41), - new ItemStack(Blocks.sapling, 6), ItemCells.getCellByName("methane", 1), - ItemCells.getCellByName("carbon", 4), 5000, 5, false)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 5), + new ItemStack(ModItems.parts, 8, 41), new ItemStack(Blocks.sapling, 6), + ItemCells.getCellByName("methane", 1), ItemCells.getCellByName("carbon", 4), 5000, 5, false)); // Soul Sand Byproducts RecipeHandler.addRecipe( - new CentrifugeRecipe(new ItemStack(Blocks.soul_sand, 16), TechRebornAPI.recipeCompact.getItem("cell"), + new CentrifugeRecipe(new ItemStack(Blocks.soul_sand, 16), ItemCells.getCellByName("empty"), ItemCells.getCellByName("oil", 1), ItemDusts.getDustByName("saltpeter", 4), ItemDusts.getDustByName("coal", 1), new ItemStack(Blocks.sand, 10), 2500, 5)); // Ice - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemCells.getCellByName("ice", 1), null, new ItemStack(Blocks.ice, 1), - TechRebornAPI.recipeCompact.getItem("cell"), null, null, 40, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("ice", 1), null, + new ItemStack(Blocks.ice, 1), ItemCells.getCellByName("empty"), null, null, 40, 5)); // Dust Byproducts RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.glowstone_dust, 16), - TechRebornAPI.recipeCompact.getItem("cell"), new ItemStack(Items.redstone, 8), + ItemCells.getCellByName("empty"), new ItemStack(Items.redstone, 8), ItemDusts.getDustByName("gold", 8), ItemCells.getCellByName("helium", 1), null, 25000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("phosphorous", 5), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 3), - ItemCells.getCellByName("calcium", 3), null, null, null, 1280, 5)); - RecipeHandler.addRecipe( - new CentrifugeRecipe(ItemDusts.getDustByName("ashes", 1), TechRebornAPI.recipeCompact.getItem("cell"), - ItemCells.getCellByName("carbon"), null, null, null, 80, 5)); - RecipeHandler.addRecipe(new CentrifugeRecipe(new ItemStack(Items.redstone, 10), - TechRebornAPI.recipeCompact.getItem("cell"), - ItemCells.getCellByName("silicon", 1), ItemDusts.getDustByName("pyrite", 3), - ItemDusts.getDustByName("ruby", 1), ItemCells.getCellByName("mercury", 3), 6800, 5)); + ItemCells.getCellByName("empty", 3), ItemCells.getCellByName("calcium", 3), null, null, null, 1280, 5)); + RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("ashes", 1), + ItemCells.getCellByName("empty"), ItemCells.getCellByName("carbon"), null, null, null, 80, 5)); + RecipeHandler + .addRecipe(new CentrifugeRecipe(new ItemStack(Items.redstone, 10), ItemCells.getCellByName("empty", 4), + ItemCells.getCellByName("silicon", 1), ItemDusts.getDustByName("pyrite", 3), + ItemDusts.getDustByName("ruby", 1), ItemCells.getCellByName("mercury", 3), 6800, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("endstone", 16), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2), ItemCells.getCellByName("helium3", 1), ItemCells.getCellByName("helium"), ItemDustsSmall.getSmallDustByName("Tungsten", 1), new ItemStack(Blocks.sand, 12), 4800, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("cinnabar", 2), - TechRebornAPI.recipeCompact.getItem("cell"), ItemCells.getCellByName("mercury", 1), + ItemCells.getCellByName("empty"), ItemCells.getCellByName("mercury", 1), ItemDusts.getDustByName("sulfur", 1), null, null, 80, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemDusts.getDustByName("flint", 1), null, TechRebornAPI.recipeCompact.getItem("silicondioxideDust"), null, null, null, 160, 5)); @@ -2355,13 +2137,13 @@ public class ModRecipes // Deuterium/Tritium RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("helium", 16), null, ItemCells.getCellByName("deuterium", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 15), null, null, 10000, 5)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 15), null, null, 10000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("deuterium", 4), null, ItemCells.getCellByName("tritium", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 3), null, null, 3000, 5)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 3), null, null, 3000, 5)); RecipeHandler.addRecipe(new CentrifugeRecipe(ItemCells.getCellByName("hydrogen", 4), null, ItemCells.getCellByName("deuterium", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 3), null, null, 3000, 5)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 3), null, null, 3000, 5)); // Lava Cell Byproducts ItemStack lavaCells = TechRebornAPI.recipeCompact.getItem("lavaCell"); @@ -2374,194 +2156,157 @@ public class ModRecipes RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.coal_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.coal, 1), ItemDustsSmall.getSmallDustByName("Coal", 6), ItemDustsSmall.getSmallDustByName("Coal", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.iron_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("iron", 2), ItemDustsSmall.getSmallDustByName("Nickel", 1), ItemDustsSmall.getSmallDustByName("Tin", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.gold_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("gold", 2), ItemDustsSmall.getSmallDustByName("Copper", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.iron_ore, 1), ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("iron", 2), ItemDusts.getDustByName("nickel", 1), ItemDustsSmall.getSmallDustByName("Tin", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.gold_ore, 1), ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("gold", 2), ItemDusts.getDustByName("copper", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(Blocks.gold_ore, 1), ItemCells.getCellByName("mercury", 1), - null, ItemDusts.getDustByName("gold", 3), ItemDustsSmall.getSmallDustByName("Copper", 1), - ItemDustsSmall.getSmallDustByName("Nickel", 1), TechRebornAPI.recipeCompact.getItem("cell"), - 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.gold_ore, 1), + ItemCells.getCellByName("mercury", 1), null, ItemDusts.getDustByName("gold", 3), + ItemDustsSmall.getSmallDustByName("Copper", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.diamond_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.diamond, 1), ItemDustsSmall.getSmallDustByName("Diamond", 6), ItemDustsSmall.getSmallDustByName("Coal", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.emerald_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.emerald, 1), ItemDustsSmall.getSmallDustByName("Emerald", 6), ItemDustsSmall.getSmallDustByName("Aluminum", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.redstone_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.redstone, 10), ItemDustsSmall.getSmallDustByName("Cinnabar", 1), ItemDustsSmall.getSmallDustByName("Glowstone", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.lapis_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.dye, 6, 4), ItemDustsSmall.getSmallDustByName("Lapis", 36), ItemDustsSmall.getSmallDustByName("Lazurite", 8), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); // Copper Ore - if (OreUtil.doesOreExistAndValid("oreCopper")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCopper")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCopper").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), - ItemDustsSmall.getSmallDustByName("Nickel", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("copper", 2), + ItemDustsSmall.getSmallDustByName("Gold", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), + ItemCells.getCellByName("empty"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("sodiumPersulfate", 1), null, - ItemDusts.getDustByName("copper", 2), ItemDusts.getDustByName("gold", 1), - ItemDustsSmall.getSmallDustByName("Nickel", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("copper", 2), + ItemDusts.getDustByName("gold", 1), ItemDustsSmall.getSmallDustByName("Nickel", 1), + ItemCells.getCellByName("empty"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), null, - ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), - ItemDusts.getDustByName("nickel", 1), TechRebornAPI.recipeCompact.getItem("cell"), 100, - 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), + null, ItemDusts.getDustByName("copper", 2), ItemDustsSmall.getSmallDustByName("Gold", 1), + ItemDusts.getDustByName("nickel", 1), ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Copper Ore"); } } // Tin Ore - if (OreUtil.doesOreExistAndValid("oreTin")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTin")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTin").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("tin", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDustsSmall.getSmallDustByName("Zinc", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("sodiumPersulfate", 1), null, - ItemDusts.getDustByName("tin", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDusts.getDustByName("zinc", 1), TechRebornAPI.recipeCompact.getItem("cell"), 100, - 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("tin", 2), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("tin", 2), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("zinc", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Tin Ore"); } } // Nickel Ore - if (OreUtil.doesOreExistAndValid("oreNickel")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreNickel")) { + try { ItemStack oreStack = OreDictionary.getOres("oreNickel").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDustsSmall.getSmallDustByName("Platinum", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("sodiumPersulfate", 1), null, - ItemDusts.getDustByName("nickel", 3), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDustsSmall.getSmallDustByName("Platinum", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), null, - ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDusts.getDustByName("platinum", 1), TechRebornAPI.recipeCompact.getItem("cell"), - 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("nickel", 2), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Platinum", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("nickel", 3), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Platinum", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), + null, ItemDusts.getDustByName("nickel", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), + ItemDusts.getDustByName("platinum", 1), ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Nickel Ore"); } } // Zinc Ore - if (OreUtil.doesOreExistAndValid("oreZinc")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreZinc")) { + try { ItemStack oreStack = OreDictionary.getOres("oreZinc").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("zinc", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDustsSmall.getSmallDustByName("Tin", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("sodiumPersulfate", 1), null, - ItemDusts.getDustByName("zinc", 2), ItemDustsSmall.getSmallDustByName("Iron", 1), - ItemDusts.getDustByName("iron", 1), TechRebornAPI.recipeCompact.getItem("cell"), 100, - 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("zinc", 2), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDustsSmall.getSmallDustByName("Tin", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("zinc", 2), + ItemDustsSmall.getSmallDustByName("Iron", 1), ItemDusts.getDustByName("iron", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Zinc Ore"); } } // Silver Ore - if (OreUtil.doesOreExistAndValid("oreSilver")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreSilver")) { + try { ItemStack oreStack = OreDictionary.getOres("oreSilver").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("silver", 2), ItemDustsSmall.getSmallDustByName("Lead", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), null, - ItemDusts.getDustByName("silver", 3), ItemDustsSmall.getSmallDustByName("Lead", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("silver", 2), + ItemDustsSmall.getSmallDustByName("Lead", 1), ItemDustsSmall.getSmallDustByName("Sulfur", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), + null, ItemDusts.getDustByName("silver", 3), ItemDustsSmall.getSmallDustByName("Lead", 1), + ItemDustsSmall.getSmallDustByName("Sulfur", 1), ItemCells.getCellByName("empty"), + 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Silver Ore"); } } // Lead Ore - if (OreUtil.doesOreExistAndValid("oreLead")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreLead")) { + try { ItemStack oreStack = OreDictionary.getOres("oreLead").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("lead", 2), ItemDustsSmall.getSmallDustByName("Silver", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), null, - ItemDusts.getDustByName("lead", 2), ItemDusts.getDustByName("silver", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("lead", 2), + ItemDustsSmall.getSmallDustByName("Silver", 1), ItemDustsSmall.getSmallDustByName("Sulfur", 1), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, ItemCells.getCellByName("mercury", 1), + null, ItemDusts.getDustByName("lead", 2), ItemDusts.getDustByName("silver", 1), + ItemDustsSmall.getSmallDustByName("Sulfur", 1), ItemCells.getCellByName("empty"), + 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Lead Ore"); } } // Uranium Ore - if (OreUtil.doesOreExistAndValid("oreUranium")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreUranium")) { + try { ItemStack oreStack = OreDictionary.getOres("oreUranium").get(0); ItemStack uranium238Stack = TechRebornAPI.recipeCompact.getItem("Uran238"); uranium238Stack.stackSize = 8; @@ -2570,24 +2315,19 @@ public class ModRecipes RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), uranium238Stack, uranium235Stack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - uranium238Stack, uranium235Stack, null, TechRebornAPI.recipeCompact.getItem("cell"), - 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, uranium238Stack, - uranium235Stack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, uranium238Stack, uranium235Stack, null, + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + uranium238Stack, uranium235Stack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Uranium Ore"); } } // Pitchblende Ore - if (OreUtil.doesOreExistAndValid("orePitchblende")) - { - try - { + if (OreUtil.doesOreExistAndValid("orePitchblende")) { + try { ItemStack oreStack = OreDictionary.getOres("orePitchblende").get(0); ItemStack uranium238Stack = TechRebornAPI.recipeCompact.getItem("Uran238"); uranium238Stack.stackSize = 8; @@ -2596,195 +2336,154 @@ public class ModRecipes RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, null, new FluidStack(FluidRegistry.WATER, 1000), uranium238Stack, uranium235Stack, null, null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - uranium238Stack, uranium235Stack, null, TechRebornAPI.recipeCompact.getItem("cell"), - 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, uranium238Stack, - uranium235Stack, null, new ItemStack(Items.bucket), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, uranium238Stack, uranium235Stack, null, + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, new ItemStack(Items.water_bucket), null, + uranium238Stack, uranium235Stack, null, new ItemStack(Items.bucket), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Uranium Ore"); } } // Aluminum Ore - if (OreUtil.doesOreExistAndValid("oreAluminum")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreAluminum")) { + try { ItemStack oreStack = OreDictionary.getOres("oreAluminum").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("aluminum", 2), ItemDustsSmall.getSmallDustByName("Bauxite", 1), ItemDustsSmall.getSmallDustByName("Bauxite", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Lead Ore"); } } // Ardite Ore - if (OreUtil.doesOreExistAndValid("oreArdite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreArdite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreArdite").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("ardite", 2), ItemDustsSmall.getSmallDustByName("Ardite", 1), - ItemDustsSmall.getSmallDustByName("Ardite", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("ardite", 2), + ItemDustsSmall.getSmallDustByName("Ardite", 1), ItemDustsSmall.getSmallDustByName("Ardite", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Ardite Ore"); } } // Cobalt Ore - if (OreUtil.doesOreExistAndValid("oreCobalt")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCobalt")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCobalt").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("cobalt", 2), ItemDustsSmall.getSmallDustByName("Cobalt", 1), - ItemDustsSmall.getSmallDustByName("Cobalt", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("cobalt", 2), + ItemDustsSmall.getSmallDustByName("Cobalt", 1), ItemDustsSmall.getSmallDustByName("Cobalt", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Cobalt Ore"); } } // Dark Iron Ore - if (OreUtil.doesOreExistAndValid("oreDarkIron")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreDarkIron")) { + try { ItemStack oreStack = OreDictionary.getOres("oreDarkIron").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("darkIron", 2), - ItemDustsSmall.getSmallDustByName("DarkIron", 1), - ItemDustsSmall.getSmallDustByName("Iron", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("darkIron", 2), + ItemDustsSmall.getSmallDustByName("DarkIron", 1), ItemDustsSmall.getSmallDustByName("Iron", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Dark Iron Ore"); } } // Cadmium Ore - if (OreUtil.doesOreExistAndValid("oreCadmium")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCadmium")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCadmium").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("cadmium", 2), ItemDustsSmall.getSmallDustByName("Cadmium", 1), ItemDustsSmall.getSmallDustByName("Cadmium", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Cadmium Ore"); } } // Indium Ore - if (OreUtil.doesOreExistAndValid("oreIndium")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreIndium")) { + try { ItemStack oreStack = OreDictionary.getOres("oreIndium").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("indium", 2), ItemDustsSmall.getSmallDustByName("Indium", 1), - ItemDustsSmall.getSmallDustByName("Indium", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("indium", 2), + ItemDustsSmall.getSmallDustByName("Indium", 1), ItemDustsSmall.getSmallDustByName("Indium", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Indium Ore"); } } // Calcite Ore - if (OreUtil.doesOreExistAndValid("oreCalcite") && OreUtil.doesOreExistAndValid("gemCalcite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCalcite") && OreUtil.doesOreExistAndValid("gemCalcite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCalcite").get(0); ItemStack gemStack = OreDictionary.getOres("gemCalcite").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, ItemDustsSmall.getSmallDustByName("Calcite", 6), null, - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Calcite Ore"); } } // Magnetite Ore - if (OreUtil.doesOreExistAndValid("oreMagnetite") && OreUtil.doesOreExistAndValid("chunkMagnetite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreMagnetite") && OreUtil.doesOreExistAndValid("chunkMagnetite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreMagnetite").get(0); ItemStack chunkStack = OreDictionary.getOres("chunkMagnetite").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, chunkStack, ItemDustsSmall.getSmallDustByName("Magnetite", 6), null, - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Magnetite Ore"); } } // Graphite Ore - if (OreUtil.doesOreExistAndValid("oreGraphite") && OreUtil.doesOreExistAndValid("chunkGraphite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreGraphite") && OreUtil.doesOreExistAndValid("chunkGraphite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreGraphite").get(0); ItemStack chunkStack = OreDictionary.getOres("chunkGraphite").get(0); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, chunkStack, ItemDustsSmall.getSmallDustByName("Graphite", 6), null, - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Graphite Ore"); } } // Osmium Ore - if (OreUtil.doesOreExistAndValid("oreOsmium")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreOsmium")) { + try { ItemStack oreStack = OreDictionary.getOres("oreOsmium").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("osmium", 2), ItemDustsSmall.getSmallDustByName("Osmium", 1), - ItemDustsSmall.getSmallDustByName("Osmium", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("osmium", 2), + ItemDustsSmall.getSmallDustByName("Osmium", 1), ItemDustsSmall.getSmallDustByName("Osmium", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Osmium Ore"); } } // Teslatite Ore - if (OreUtil.doesOreExistAndValid("oreTeslatite") && OreUtil.doesOreExistAndValid("dustTeslatite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTeslatite") && OreUtil.doesOreExistAndValid("dustTeslatite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTeslatite").get(0); ItemStack dustStack = OreDictionary.getOres("dustTeslatite").get(0); dustStack.stackSize = 10; @@ -2792,124 +2491,101 @@ public class ModRecipes new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, dustStack, ItemDustsSmall.getSmallDustByName("Sodalite", 1), ItemDustsSmall.getSmallDustByName("Glowstone", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Teslatite Ore"); } } // Sulfur Ore - if (OreUtil.doesOreExistAndValid("oreSulfur")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreSulfur")) { + try { ItemStack oreStack = OreDictionary.getOres("oreSulfur").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("sulfur", 2), ItemDustsSmall.getSmallDustByName("Sulfur", 1), - ItemDustsSmall.getSmallDustByName("Sulfur", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("sulfur", 2), + ItemDustsSmall.getSmallDustByName("Sulfur", 1), ItemDustsSmall.getSmallDustByName("Sulfur", 1), + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Sulfur Ore"); } } // Saltpeter Ore - if (OreUtil.doesOreExistAndValid("oreSaltpeter")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreSaltpeter")) { + try { ItemStack oreStack = OreDictionary.getOres("oreSaltpeter").get(0); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - ItemDusts.getDustByName("saltpeter", 2), - ItemDustsSmall.getSmallDustByName("Saltpeter", 1), - ItemDustsSmall.getSmallDustByName("Saltpeter", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(oreStack, + TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("saltpeter", 2), + ItemDustsSmall.getSmallDustByName("Saltpeter", 1), + ItemDustsSmall.getSmallDustByName("Saltpeter", 1), ItemCells.getCellByName("empty"), + 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Saltpeter Ore"); } } // Apatite Ore - if (OreUtil.doesOreExistAndValid("oreApatite") & OreUtil.doesOreExistAndValid("gemApatite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreApatite") & OreUtil.doesOreExistAndValid("gemApatite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreApatite").get(0); ItemStack gemStack = OreDictionary.getOres("gemApatite").get(0); gemStack.stackSize = 6; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, gemStack, ItemDustsSmall.getSmallDustByName("Phosphorous", 4), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Apatite Ore"); } } // Nether Quartz Ore - if (OreUtil.doesOreExistAndValid("dustNetherQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("dustNetherQuartz")) { + try { ItemStack dustStack = OreDictionary.getOres("dustNetherQuartz").get(0); dustStack.stackSize = 4; RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(Blocks.quartz_ore, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, new ItemStack(Items.quartz, 2), dustStack, ItemDustsSmall.getSmallDustByName("Netherrack", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Nether Quartz Ore"); } } // Certus Quartz Ore - if (OreUtil.doesOreExistAndValid("oreCertusQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreCertusQuartz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreCertusQuartz").get(0); ItemStack gemStack = OreDictionary.getOres("crystalCertusQuartz").get(0); ItemStack dustStack = OreDictionary.getOres("dustCertusQuartz").get(0); dustStack.stackSize = 2; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Certus Quartz Ore"); } } // Charged Certus Quartz Ore - if (OreUtil.doesOreExistAndValid("oreChargedCertusQuartz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreChargedCertusQuartz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreChargedCertusQuartz").get(0); ItemStack gemStack = OreDictionary.getOres("crystalChargedCertusQuartz").get(0); ItemStack dustStack = OreDictionary.getOres("dustCertusQuartz").get(0); dustStack.stackSize = 2; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Charged Certus Quartz Ore"); } } // Amethyst Ore - if (OreUtil.doesOreExistAndValid("oreAmethyst") && OreUtil.doesOreExistAndValid("gemAmethyst")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreAmethyst") && OreUtil.doesOreExistAndValid("gemAmethyst")) { + try { ItemStack oreStack = OreDictionary.getOres("oreAmethyst").get(0); ItemStack gemStack = OreDictionary.getOres("gemAmethyst").get(0); gemStack.stackSize = 2; @@ -2917,18 +2593,15 @@ public class ModRecipes dustStack.stackSize = 1; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Certus Quartz Ore"); } } // Topaz Ore - if (OreUtil.doesOreExistAndValid("oreTopaz") && OreUtil.doesOreExistAndValid("gemTopaz")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTopaz") && OreUtil.doesOreExistAndValid("gemTopaz")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTopaz").get(0); ItemStack gemStack = OreDictionary.getOres("gemTopaz").get(0); gemStack.stackSize = 2; @@ -2936,18 +2609,15 @@ public class ModRecipes dustStack.stackSize = 1; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Topaz Ore"); } } // Tanzanite Ore - if (OreUtil.doesOreExistAndValid("oreTanzanite") && OreUtil.doesOreExistAndValid("gemTanzanite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreTanzanite") && OreUtil.doesOreExistAndValid("gemTanzanite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreTanzanite").get(0); ItemStack gemStack = OreDictionary.getOres("gemTanzanite").get(0); gemStack.stackSize = 2; @@ -2955,18 +2625,15 @@ public class ModRecipes dustStack.stackSize = 1; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Tanzanite Ore"); } } // Malachite Ore - if (OreUtil.doesOreExistAndValid("oreMalachite") && OreUtil.doesOreExistAndValid("gemMalachite")) - { - try - { + if (OreUtil.doesOreExistAndValid("oreMalachite") && OreUtil.doesOreExistAndValid("gemMalachite")) { + try { ItemStack oreStack = OreDictionary.getOres("oreMalachite").get(0); ItemStack gemStack = OreDictionary.getOres("gemMalachite").get(0); gemStack.stackSize = 2; @@ -2974,9 +2641,8 @@ public class ModRecipes dustStack.stackSize = 1; RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, - gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) - { + gemStack, dustStack, null, ItemCells.getCellByName("empty"), 100, 120)); + } catch (Exception e) { Core.logHelper.info("Failed to Load Grinder Recipe for Malachite Ore"); } } @@ -3018,11 +2684,11 @@ public class ModRecipes RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 0), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("galena", 2), ItemDustsSmall.getSmallDustByName("Sulfur", 1), ItemDustsSmall.getSmallDustByName("Silver", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 0), ItemCells.getCellByName("mercury", 1), null, ItemDusts.getDustByName("galena", 2), ItemDustsSmall.getSmallDustByName("Sulfur", 1), - ItemDusts.getDustByName("silver", 1), TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemDusts.getDustByName("silver", 1), ItemCells.getCellByName("empty"), 100, 120)); // Iridium Ore RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), null, @@ -3032,100 +2698,96 @@ public class ModRecipes RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), TechRebornAPI.recipeCompact.getItem("waterCell"), null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), ItemDustsSmall.getSmallDustByName("Iridium", 6), - ItemDustsSmall.getSmallDustByName("Platinum", 2), TechRebornAPI.recipeCompact.getItem("cell"), 100, + ItemDustsSmall.getSmallDustByName("Platinum", 2), ItemCells.getCellByName("empty"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), new ItemStack(Items.water_bucket), null, - TechRebornAPI.recipeCompact.getItem("iridiumOre"), - ItemDustsSmall.getSmallDustByName("Iridium", 6), - ItemDustsSmall.getSmallDustByName("Platinum", 2), new ItemStack(Items.bucket), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), + new ItemStack(Items.water_bucket), null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), + ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDustsSmall.getSmallDustByName("Platinum", 2), + new ItemStack(Items.bucket), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), null, new FluidStack(ModFluids.fluidMercury, 1000), TechRebornAPI.recipeCompact.getItem("iridiumOre"), ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDusts.getDustByName("platinum", 2), null, 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), ItemCells.getCellByName("mercury", 1), - null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), - ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDusts.getDustByName("platinum", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), new ItemStack(ModItems.bucketMercury), - null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), - ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDusts.getDustByName("platinum", 2), - new ItemStack(Items.bucket), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), + ItemCells.getCellByName("mercury", 1), null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), + ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDusts.getDustByName("platinum", 2), + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 1), + new ItemStack(ModItems.bucketMercury), null, TechRebornAPI.recipeCompact.getItem("iridiumOre"), + ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDusts.getDustByName("platinum", 2), + new ItemStack(Items.bucket), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 2), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemGems.getGemByName("ruby", 1), ItemDustsSmall.getSmallDustByName("Ruby", 6), ItemDustsSmall.getSmallDustByName("Chrome", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 3), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemGems.getGemByName("sapphire", 1), ItemDustsSmall.getSmallDustByName("Sapphire", 6), ItemDustsSmall.getSmallDustByName("Aluminum", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 4), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("bauxite", 2), ItemDustsSmall.getSmallDustByName("Grossular", 4), ItemDustsSmall.getSmallDustByName("Titanium", 4), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 5), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("pyrite", 2), ItemDustsSmall.getSmallDustByName("Sulfur", 1), ItemDustsSmall.getSmallDustByName("Phosphorous", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 6), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("cinnabar", 2), ItemDustsSmall.getSmallDustByName("Redstone", 1), ItemDustsSmall.getSmallDustByName("Glowstone", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 7), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("sphalerite", 2), ItemDustsSmall.getSmallDustByName("Zinc", 1), ItemDustsSmall.getSmallDustByName("YellowGarnet", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 7), ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("sphalerite", 2), ItemDusts.getDustByName("zinc", 1), ItemDustsSmall.getSmallDustByName("YellowGarnet", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 8), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("tungsten", 2), ItemDustsSmall.getSmallDustByName("Manganese", 1), ItemDustsSmall.getSmallDustByName("Silver", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe( new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 8), ItemCells.getCellByName("mercury", 1), null, ItemDusts.getDustByName("tungsten", 2), ItemDustsSmall.getSmallDustByName("Manganese", 1), - ItemDusts.getDustByName("silver", 2), TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemDusts.getDustByName("silver", 2), ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 9), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("platinum", 2), ItemDustsSmall.getSmallDustByName("Iridium", 1), ItemDustsSmall.getSmallDustByName("Iridium", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - RecipeHandler.addRecipe( - new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 9), ItemCells.getCellByName("mercury", 1), - null, ItemDusts.getDustByName("platinum", 3), ItemDustsSmall.getSmallDustByName("Iridium", 1), - ItemDustsSmall.getSmallDustByName("Iridium", 1), TechRebornAPI.recipeCompact.getItem("cell"), - 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); + RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 9), + ItemCells.getCellByName("mercury", 1), null, ItemDusts.getDustByName("platinum", 3), + ItemDustsSmall.getSmallDustByName("Iridium", 1), ItemDustsSmall.getSmallDustByName("Iridium", 1), + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 10), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemGems.getGemByName("peridot", 1), ItemDustsSmall.getSmallDustByName("Peridot", 6), ItemDustsSmall.getSmallDustByName("Pyrope", 2), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 11), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("sodalite", 12), ItemDustsSmall.getSmallDustByName("Lazurite", 4), ItemDustsSmall.getSmallDustByName("Lapis", 4), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 12), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemDusts.getDustByName("tetrahedrite", 2), ItemDustsSmall.getSmallDustByName("Antimony", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 12), ItemCells.getCellByName("sodiumPersulfate", 1), null, ItemDusts.getDustByName("tetrahedrite", 3), ItemDustsSmall.getSmallDustByName("Antimony", 1), ItemDustsSmall.getSmallDustByName("Zinc", 1), - TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); + ItemCells.getCellByName("empty"), 100, 120)); // Chemical Reactor RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemDusts.getDustByName("calcite", 1), null, @@ -3157,245 +2819,196 @@ public class ModRecipes RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sulfuricAcid", 7), null, ItemCells.getCellByName("hydrogen", 2), ItemDusts.getDustByName("sulfur"), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 5), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 3, 0), 400, 90)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 5), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 3, 0), 400, 90)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("ruby", 6), - TechRebornAPI.recipeCompact.getItem("cell"), ItemDusts.getDustByName("aluminum", 2), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), + ItemCells.getCellByName("empty"), ItemDusts.getDustByName("aluminum", 2), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), ItemDusts.getDustByName("chrome", 1), null, 140, 90)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("sapphire", 5), - TechRebornAPI.recipeCompact.getItem("cell"), ItemDusts.getDustByName("aluminum", 2), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), null, null, 100, 60)); + ItemCells.getCellByName("empty"), ItemDusts.getDustByName("aluminum", 2), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), null, null, 100, 60)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("nitrogenDioxide", 3), null, ItemCells.getCellByName("nitrogen", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), null, - TechRebornAPI.recipeCompact.getItem("cell"), 160, 60)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), null, + ItemCells.getCellByName("empty"), 160, 60)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sodiumSulfide", 2), null, ItemCells.getCellByName("sodium", 1), ItemDusts.getDustByName("sulfur", 1), null, - TechRebornAPI.recipeCompact.getItem("cell"), 200, 60)); + ItemCells.getCellByName("empty"), 200, 60)); - RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("greenSapphire", 5), - TechRebornAPI.recipeCompact.getItem("cell"), ItemDusts.getDustByName("aluminum", 2), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), null, null, 100, 60)); + RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("peridot", 5), + ItemCells.getCellByName("empty"), ItemDusts.getDustByName("aluminum", 2), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), null, null, 100, 60)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("emerald", 29), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 18, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 18, 0), ItemCells.getCellByName("berylium", 3), ItemDusts.getDustByName("aluminum", 2), ItemCells.getCellByName("silicon", 6), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 9, 5), 520, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 9, 5), 520, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe( new ItemStack(TechRebornAPI.recipeCompact.getItem("silicondioxideDust").getItem(), 3, 0), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 0), ItemCells.getCellByName("silicon", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), null, null, 60, 60)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), null, null, 60, 60)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(new ItemStack(Items.dye, 3, 15), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 0), null, + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 0), null, ItemCells.getCellByName("calcium", 1), null, null, 20, 106)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("glyceryl", 20), null, ItemCells.getCellByName("carbon", 3), ItemCells.getCellByName("hydrogen", 5), ItemCells.getCellByName("nitrogen", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 9, 0), 800, 90)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 9, 0), 800, 90)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("peridot", 9), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 4, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 4, 0), ItemDusts.getDustByName("magnesium", 2), ItemDusts.getDustByName("iron"), ItemCells.getCellByName("silicon", 2), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 5), 200, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 5), 200, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("calciumCarbonate", 5), null, ItemCells.getCellByName("carbon"), ItemCells.getCellByName("calcium"), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 0), 400, 90)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 0), 400, 90)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemCells.getCellByName("sodiumPersulfate", 6), null, ItemCells.getCellByName("sodium"), ItemDusts.getDustByName("sulfur"), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 5), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 3, 0), 420, 90)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 5), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 3, 0), 420, 90)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("pyrope", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 9, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 9, 0), ItemDusts.getDustByName("aluminum", 2), ItemDusts.getDustByName("magnesium", 3), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 400, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 400, 120)); ItemStack sand = new ItemStack(Blocks.sand); sand.stackSize = 16; RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(sand, - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 0), ItemCells.getCellByName("silicon", 1), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), null, null, 1000, 25)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), null, null, 1000, 25)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("almandine", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 9, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 9, 0), ItemDusts.getDustByName("aluminum", 2), ItemDusts.getDustByName("iron", 3), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 480, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 480, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("spessartine", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 9, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 9, 0), ItemDusts.getDustByName("aluminum", 2), ItemDusts.getDustByName("manganese", 3), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 480, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 480, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("andradite", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 12, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 12, 0), ItemCells.getCellByName("calcium", 3), ItemDusts.getDustByName("iron", 2), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 480, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 480, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("grossular", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 12, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 12, 0), ItemCells.getCellByName("calcium", 3), ItemDusts.getDustByName("aluminum", 2), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 440, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 440, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("Uvarovite", 20), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 12, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 12, 0), ItemCells.getCellByName("calcium", 3), ItemDusts.getDustByName("chrome", 2), ItemCells.getCellByName("silicon", 3), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 5), 480, 120)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 5), 480, 120)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe( - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 6, 10), null, + new ItemStack(ItemCells.getCellByName("empty").getItem(), 6, 10), null, ItemCells.getCellByName("hydrogen", 4), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 5), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 1, 0), null, 100, 30)); + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 5), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 1, 0), null, 100, 30)); RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(ItemDusts.getDustByName("darkAshes"), - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 0), ItemCells.getCellByName("carbon", 2), null, null, null, 20, 30)); - if (OreUtil.doesOreExistAndValid("dustSalt")) - { + if (OreUtil.doesOreExistAndValid("dustSalt")) { ItemStack salt = OreDictionary.getOres("dustSalt").get(0); salt.stackSize = 2; RecipeHandler.addRecipe(new IndustrialElectrolyzerRecipe(salt, - new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").getItem(), 2, 0), + new ItemStack(ItemCells.getCellByName("empty").getItem(), 2, 0), ItemCells.getCellByName("sodium"), ItemCells.getCellByName("chlorine"), null, null, 40, 60)); } - CraftingHelper - .addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSimple"), "TST", "PCP", "TST", 'T', "ingotTin", - 'S', ItemCells.getCellByName("sodium"), 'P', ItemCells.getCellByName("potassium"), 'C', - TechRebornAPI.recipeCompact.getItem("reactorCoolantSimple")); + CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("NaKCoolantSimple"), "TST", "PCP", "TST", 'T', + "ingotTin", 'S', ItemCells.getCellByName("sodium"), 'P', ItemCells.getCellByName("potassium"), 'C', + TechRebornAPI.recipeCompact.getItem("reactorCoolantSimple")); Item drill = TechRebornAPI.recipeCompact.getItem("miningDrill").getItem(); ItemStack drillStack = new ItemStack(drill, 1, OreDictionary.WILDCARD_VALUE); if (ConfigTechReborn.ExpensiveMacerator) - CraftingHelper - .addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("macerator"), "FDF", "DMD", "FCF", 'F', - Items.flint, 'D', Items.diamond, 'M', TechRebornAPI.recipeCompact.getItem("machine"), 'C', - TechRebornAPI.recipeCompact.getItem("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("macerator"), "FDF", "DMD", "FCF", + 'F', Items.flint, 'D', Items.diamond, 'M', TechRebornAPI.recipeCompact.getItem("machine"), 'C', + TechRebornAPI.recipeCompact.getItem("electronicCircuit")); if (ConfigTechReborn.ExpensiveDrill) - CraftingHelper - .addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("miningDrill"), " S ", "SCS", "SBS", 'S', - "ingotSteel", 'B', TechRebornAPI.recipeCompact.getItem("reBattery"), 'C', - TechRebornAPI.recipeCompact.getItem("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("miningDrill"), " S ", "SCS", "SBS", + 'S', "ingotSteel", 'B', TechRebornAPI.recipeCompact.getItem("reBattery"), 'C', + TechRebornAPI.recipeCompact.getItem("electronicCircuit")); if (ConfigTechReborn.ExpensiveDiamondDrill) - CraftingHelper - .addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("diamondDrill"), " D ", "DBD", "TCT", 'D', - "gemDiamond", 'T', "ingotTitanium", 'B', drillStack, 'C', - TechRebornAPI.recipeCompact.getItem("advancedCircuit")); + CraftingHelper.addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("diamondDrill"), " D ", "DBD", "TCT", + 'D', "gemDiamond", 'T', "ingotTitanium", 'B', drillStack, 'C', + TechRebornAPI.recipeCompact.getItem("advancedCircuit")); if (ConfigTechReborn.ExpensiveSolar) - CraftingHelper - .addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("solarPanel"), "PPP", "SZS", "CGC", 'P', - "paneGlass", 'S', ItemPlates.getPlateByName("silicon"), 'Z', - TechRebornAPI.recipeCompact.getItem("carbonPlate"), 'G', - TechRebornAPI.recipeCompact.getItem("generator"), 'C', - TechRebornAPI.recipeCompact.getItem("electronicCircuit")); + CraftingHelper.addShapedOreRecipe(TechRebornAPI.recipeCompact.getItem("solarPanel"), "PPP", "SZS", "CGC", + 'P', "paneGlass", 'S', ItemPlates.getPlateByName("silicon"), 'Z', + TechRebornAPI.recipeCompact.getItem("carbonPlate"), 'G', + TechRebornAPI.recipeCompact.getItem("generator"), 'C', + TechRebornAPI.recipeCompact.getItem("electronicCircuit")); CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("iridiumAlloyIngot"), "IAI", "ADA", "IAI", 'I', ItemIngots.getIngotByName("iridium"), 'D', ItemDusts.getDustByName("diamond"), 'A', TechRebornAPI.recipeCompact.getItem("advancedAlloy")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.lithiumBatpack, 1, OreDictionary.WILDCARD_VALUE), "BCB", - "BPB", "B B", 'B', new ItemStack(ModItems.lithiumBattery), 'P', "plateAluminum", 'C', - TechRebornAPI.recipeCompact.getItem("advancedCircuit")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBatpack, 1, OreDictionary.WILDCARD_VALUE), + "BCB", "BPB", "B B", 'B', new ItemStack(ModItems.lithiumBattery), 'P', "plateAluminum", 'C', + TechRebornAPI.recipeCompact.getItem("advancedCircuit")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.lithiumBattery, 1, OreDictionary.WILDCARD_VALUE), " C ", - "PFP", "PFP", 'F', ItemCells.getCellByName("lithium"), 'P', "plateAluminum", 'C', - TechRebornAPI.recipeCompact.getItem("insulatedGoldCableItem")); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBattery, 1, OreDictionary.WILDCARD_VALUE), + " C ", "PFP", "PFP", 'F', ItemCells.getCellByName("lithium"), 'P', "plateAluminum", 'C', + TechRebornAPI.recipeCompact.getItem("insulatedGoldCableItem")); - CraftingHelper - .addShapedOreRecipe(new ItemStack(ModItems.lapotronpack, 1, OreDictionary.WILDCARD_VALUE), "FOF", "SPS", - "FIF", 'F', ItemParts.getPartByName("energyFlowCircuit"), 'O', - new ItemStack(ModItems.lapotronicOrb), 'S', ItemParts.getPartByName("superConductor"), 'I', - "ingotIridium", 'P', new ItemStack(ModItems.lapotronpack)); + CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronpack, 1, OreDictionary.WILDCARD_VALUE), "FOF", + "SPS", "FIF", 'F', ItemParts.getPartByName("energyFlowCircuit"), 'O', + new ItemStack(ModItems.lapotronicOrb), 'S', ItemParts.getPartByName("superConductor"), 'I', + "ingotIridium", 'P', new ItemStack(ModItems.lapotronpack)); } - - static void addGemToolRecipes(ItemStack gemsword, ItemStack gempick, ItemStack gemaxe, ItemStack gemHoe, ItemStack gemspade, ItemStack gemhelmet, ItemStack gemchestplate, ItemStack gemleggings, ItemStack gemboots, ItemStack gem) - { - CraftingHelper.addShapedOreRecipe(gemsword, - " G ", - " G ", - " S ", - 'S', Items.stick, - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gempick, - "GGG", - " S ", - " S ", - 'S', Items.stick, - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemaxe, - " GG", - " SG", - " S ", - 'S', Items.stick, - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemHoe, - " GG", - " S ", - " S ", - 'S', Items.stick, - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemspade, - " G ", - " S ", - " S ", - 'S', Items.stick, - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemhelmet, - "GGG", - "G G", - " ", - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemchestplate, - "G G", - "GGG", - "GGG", - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemleggings, - "GGG", - "G G", - "G G", - 'G', gem); - - CraftingHelper.addShapedOreRecipe(gemboots, - " ", - "G G", - "G G", - 'G', gem); + + static void addGemToolRecipes(ItemStack gemsword, ItemStack gempick, ItemStack gemaxe, ItemStack gemHoe, + ItemStack gemspade, ItemStack gemhelmet, ItemStack gemchestplate, ItemStack gemleggings, ItemStack gemboots, + ItemStack gem) { + CraftingHelper.addShapedOreRecipe(gemsword, " G ", " G ", " S ", 'S', Items.stick, 'G', gem); + + CraftingHelper.addShapedOreRecipe(gempick, "GGG", " S ", " S ", 'S', Items.stick, 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemaxe, " GG", " SG", " S ", 'S', Items.stick, 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemHoe, " GG", " S ", " S ", 'S', Items.stick, 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemspade, " G ", " S ", " S ", 'S', Items.stick, 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemhelmet, "GGG", "G G", " ", 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemchestplate, "G G", "GGG", "GGG", 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemleggings, "GGG", "G G", "G G", 'G', gem); + + CraftingHelper.addShapedOreRecipe(gemboots, " ", "G G", "G G", 'G', gem); } } diff --git a/src/main/java/techreborn/items/ItemDusts.java b/src/main/java/techreborn/items/ItemDusts.java index fc4ced399..25006a5a5 100644 --- a/src/main/java/techreborn/items/ItemDusts.java +++ b/src/main/java/techreborn/items/ItemDusts.java @@ -11,8 +11,7 @@ import techreborn.client.TechRebornCreativeTabMisc; import techreborn.init.ModItems; import techreborn.lib.ModInfo; -public class ItemDusts extends ItemTextureBase -{ +public class ItemDusts extends ItemTextureBase { public static final String[] types = new String[] { "almandine", "aluminumBrass", "aluminum", "alumite", "andradite", "antimony", "ardite", "ashes", "basalt", "bauxite", "biotite", "brass", "bronze", "cadmium", "calcite", "charcoal", "chrome", "cinnabar", "clay", "coal", "cobalt", "copper", "cupronickel", "darkAshes", @@ -23,52 +22,42 @@ public class ItemDusts extends ItemTextureBase "potassiumFeldspar", "pyrite", "pyrope", "redGarnet", "redrock", "ruby", "saltpeter", "sapphire", "sawDust", "silicon", "silver", "sodalite", "spessartine", "sphalerite", "steel", "sulfur", "tellurium", "teslatite", "tetrahedrite", "tin", "titanium", "tungsten", "uvarovite", "vinteum", "voidstone", "yellowGarnet", "zinc", - "greenSapphire", "olivine" }; + "olivine" }; - public ItemDusts() - { + public ItemDusts() { setUnlocalizedName("techreborn.dust"); setHasSubtypes(true); setCreativeTab(TechRebornCreativeTabMisc.instance); } - public static ItemStack getDustByName(String name, int count) - { - for (int i = 0; i < types.length; i++) - { - if (types[i].equalsIgnoreCase(name)) - { + public static ItemStack getDustByName(String name, int count) { + for (int i = 0; i < types.length; i++) { + if (types[i].equalsIgnoreCase(name)) { return new ItemStack(ModItems.dusts, count, i); } } - if (name.equalsIgnoreCase("glowstone")) - { + if (name.equalsIgnoreCase("glowstone")) { return new ItemStack(Items.glowstone_dust, count); } - if (name.equalsIgnoreCase("redstone")) - { + if (name.equalsIgnoreCase("redstone")) { return new ItemStack(Items.redstone, count); } - if (name.equalsIgnoreCase("gunpowder")) - { + if (name.equalsIgnoreCase("gunpowder")) { return new ItemStack(Items.gunpowder, count); } throw new InvalidParameterException("The dust " + name + " could not be found."); } - public static ItemStack getDustByName(String name) - { + public static ItemStack getDustByName(String name) { return getDustByName(name, 1); } @Override // gets Unlocalized Name depending on meta data - public String getUnlocalizedName(ItemStack itemStack) - { + public String getUnlocalizedName(ItemStack itemStack) { int meta = itemStack.getItemDamage(); - if (meta < 0 || meta >= types.length) - { + if (meta < 0 || meta >= types.length) { meta = 0; } @@ -76,23 +65,19 @@ public class ItemDusts extends ItemTextureBase } // Adds Dusts SubItems To Creative Tab - public void getSubItems(Item item, CreativeTabs creativeTabs, List list) - { - for (int meta = 0; meta < types.length; ++meta) - { + public void getSubItems(Item item, CreativeTabs creativeTabs, List list) { + for (int meta = 0; meta < types.length; ++meta) { list.add(new ItemStack(item, 1, meta)); } } @Override - public String getTextureName(int damage) - { + public String getTextureName(int damage) { return ModInfo.MOD_ID + ":items/dust/" + types[damage] + "Dust"; } @Override - public int getMaxMeta() - { + public int getMaxMeta() { return types.length; } diff --git a/src/main/java/techreborn/items/ItemUpgrade.java b/src/main/java/techreborn/items/ItemUpgrades.java similarity index 91% rename from src/main/java/techreborn/items/ItemUpgrade.java rename to src/main/java/techreborn/items/ItemUpgrades.java index 7ad40bf87..19477d5ed 100644 --- a/src/main/java/techreborn/items/ItemUpgrade.java +++ b/src/main/java/techreborn/items/ItemUpgrades.java @@ -11,12 +11,12 @@ import techreborn.api.upgrade.IMachineUpgrade; import techreborn.client.TechRebornCreativeTabMisc; import techreborn.init.ModItems; -public class ItemUpgrade extends ItemTR implements IMachineUpgrade +public class ItemUpgrades extends ItemTR implements IMachineUpgrade { - public static final String[] types = new String[] { "0.2Speed", "0.2Power", "0.5Speed" }; + public static final String[] types = new String[] { "Overclock", "Transformer", "EnergyStorage" }; - public ItemUpgrade() + public ItemUpgrades() { setUnlocalizedName("techreborn.upgrade"); setHasSubtypes(true); diff --git a/src/main/resources/assets/techreborn/lang/en_US.lang b/src/main/resources/assets/techreborn/lang/en_US.lang index 684071c5a..3277b6d3a 100644 --- a/src/main/resources/assets/techreborn/lang/en_US.lang +++ b/src/main/resources/assets/techreborn/lang/en_US.lang @@ -281,7 +281,6 @@ item.techreborn.dust.voidstone.name=Voidstone Dust item.techreborn.dust.yellowGarnet.name=Yellow Garnet Dust item.techreborn.dust.zinc.name=Zinc Dust item.techreborn.dust.galena.name=Galena Dust -item.techreborn.dust.greenSapphire.name=Green Sapphire Dust item.techreborn.dust.sawDust.name=Saw Dust item.techreborn.dust.olivine.name=Olivine Dust item.techreborn.ingot.refinedIron.name=Refined Iron Ingot @@ -439,7 +438,7 @@ item.techreborn.nanosaber.name=Nanosaber #Gems item.techreborn.gem.ruby.name=Ruby item.techreborn.gem.sapphire.name=Sapphire -item.techreborn.gem.peridot.name=Green Sapphire +item.techreborn.gem.peridot.name=Peridot item.techreborn.gem.redGarnet.name=Red Garnet item.techreborn.gem.yellowGarnet.name=Yellow Garnet diff --git a/src/main/resources/assets/techreborn/textures/blocks/storage/refinedIron_block.png b/src/main/resources/assets/techreborn/textures/blocks/storage/refinedIron_block.png new file mode 100644 index 000000000..bde07e8e6 Binary files /dev/null and b/src/main/resources/assets/techreborn/textures/blocks/storage/refinedIron_block.png differ diff --git a/src/main/resources/assets/techreborn/textures/items/dust/greenSapphireDust.png b/src/main/resources/assets/techreborn/textures/items/dust/greenSapphireDust.png deleted file mode 100644 index 521ac0775..000000000 Binary files a/src/main/resources/assets/techreborn/textures/items/dust/greenSapphireDust.png and /dev/null differ diff --git a/src/main/resources/assets/techreborn/textures/items/smallDust/smallGreenSapphireDust.png b/src/main/resources/assets/techreborn/textures/items/smallDust/smallGreenSapphireDust.png deleted file mode 100644 index 45a70946a..000000000 Binary files a/src/main/resources/assets/techreborn/textures/items/smallDust/smallGreenSapphireDust.png and /dev/null differ diff --git a/src/main/resources/assets/techreborn/textures/items/upgrade/upgradeTransformer.png b/src/main/resources/assets/techreborn/textures/items/upgrade/upgradeTransformer.png new file mode 100644 index 000000000..92510ac1e Binary files /dev/null and b/src/main/resources/assets/techreborn/textures/items/upgrade/upgradeTransformer.png differ