diff --git a/src/main/java/techreborn/api/ScrapboxList.java b/src/main/java/techreborn/api/ScrapboxList.java index cff6284ef..07fdceb22 100644 --- a/src/main/java/techreborn/api/ScrapboxList.java +++ b/src/main/java/techreborn/api/ScrapboxList.java @@ -12,6 +12,17 @@ public class ScrapboxList public static void addItemStackToList(ItemStack stack) { - stacks.add(stack); + if (!hasItems(stack)) + stacks.add(stack); + } + + private static boolean hasItems(ItemStack stack) + { + for (ItemStack s : stacks) + { + if (stack.getItem().getItemStackDisplayName(stack).equals(s.getItem().getItemStackDisplayName(stack))) + return true; + } + return false; } } diff --git a/src/main/java/techreborn/init/ModRecipes.java b/src/main/java/techreborn/init/ModRecipes.java index 23422b136..595b8a71e 100644 --- a/src/main/java/techreborn/init/ModRecipes.java +++ b/src/main/java/techreborn/init/ModRecipes.java @@ -4,13 +4,10 @@ import java.security.InvalidParameterException; import org.apache.commons.lang3.ArrayUtils; -import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.nbt.NBTTagString; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fml.common.registry.GameRegistry; @@ -54,9 +51,9 @@ import techreborn.items.ItemParts; import techreborn.items.ItemPlates; 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); @@ -65,7 +62,8 @@ 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(); @@ -94,183 +92,43 @@ public class ModRecipes { addScrapBoxloot(); } - static void addScrapBoxloot() { - ScrapboxList.addItemStackToList(new ItemStack(Items.diamond)); - ScrapboxList.addItemStackToList(new ItemStack(Items.stick)); - ScrapboxList.addItemStackToList(new ItemStack(Items.coal)); - ScrapboxList.addItemStackToList(new ItemStack(Items.apple)); - ScrapboxList.addItemStackToList(new ItemStack(Items.baked_potato)); - ScrapboxList.addItemStackToList(new ItemStack(Items.blaze_powder)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wheat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.carrot)); - ScrapboxList.addItemStackToList(new ItemStack(Items.boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.acacia_boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.birch_boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.dark_oak_boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.jungle_boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.spruce_boat)); - ScrapboxList.addItemStackToList(new ItemStack(Items.blaze_rod)); - ScrapboxList.addItemStackToList(new ItemStack(Items.compass)); - ScrapboxList.addItemStackToList(new ItemStack(Items.map)); - ScrapboxList.addItemStackToList(new ItemStack(Items.leather_leggings)); - ScrapboxList.addItemStackToList(new ItemStack(Items.bow)); - ScrapboxList.addItemStackToList(new ItemStack(Items.cooked_chicken)); - ScrapboxList.addItemStackToList(new ItemStack(Items.cake)); - ScrapboxList.addItemStackToList(new ItemStack(Items.acacia_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.dark_oak_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.birch_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.jungle_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.oak_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.spruce_door)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wooden_axe)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wooden_hoe)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wooden_pickaxe)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wooden_shovel)); - ScrapboxList.addItemStackToList(new ItemStack(Items.wooden_sword)); - ScrapboxList.addItemStackToList(new ItemStack(Items.bed)); - ScrapboxList.addItemStackToList(new ItemStack(Items.skull, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Items.skull, 1, 2)); - ScrapboxList.addItemStackToList(new ItemStack(Items.skull, 1, 4)); - for (int i = 0; i < StackWIPHandler.devHeads.size(); i++) - ScrapboxList.addItemStackToList(StackWIPHandler.devHeads.get(i)); - ScrapboxList.addItemStackToList(new ItemStack(Items.dye, 1, 3)); - ScrapboxList.addItemStackToList(new ItemStack(Items.glowstone_dust)); - ScrapboxList.addItemStackToList(new ItemStack(Items.string)); - ScrapboxList.addItemStackToList(new ItemStack(Items.minecart)); - ScrapboxList.addItemStackToList(new ItemStack(Items.chest_minecart)); - ScrapboxList.addItemStackToList(new ItemStack(Items.hopper_minecart)); - ScrapboxList.addItemStackToList(new ItemStack(Items.prismarine_shard)); - ScrapboxList.addItemStackToList(new ItemStack(Items.shears)); - ScrapboxList.addItemStackToList(new ItemStack(Items.experience_bottle)); - ScrapboxList.addItemStackToList(new ItemStack(Items.bone)); - ScrapboxList.addItemStackToList(new ItemStack(Items.bowl)); - ScrapboxList.addItemStackToList(new ItemStack(Items.brick)); - ScrapboxList.addItemStackToList(new ItemStack(Items.fishing_rod)); - ScrapboxList.addItemStackToList(new ItemStack(Items.book)); - ScrapboxList.addItemStackToList(new ItemStack(Items.paper)); - ScrapboxList.addItemStackToList(new ItemStack(Items.sugar)); - ScrapboxList.addItemStackToList(new ItemStack(Items.reeds)); - ScrapboxList.addItemStackToList(new ItemStack(Items.spider_eye)); - ScrapboxList.addItemStackToList(new ItemStack(Items.slime_ball)); - ScrapboxList.addItemStackToList(new ItemStack(Items.rotten_flesh)); - ScrapboxList.addItemStackToList(new ItemStack(Items.sign)); - ScrapboxList.addItemStackToList(new ItemStack(Items.writable_book)); - ScrapboxList.addItemStackToList(new ItemStack(Items.cooked_beef)); - ScrapboxList.addItemStackToList(new ItemStack(Items.name_tag)); - ScrapboxList.addItemStackToList(new ItemStack(Items.saddle)); - ScrapboxList.addItemStackToList(new ItemStack(Items.redstone)); - ScrapboxList.addItemStackToList(new ItemStack(Items.gunpowder)); - ScrapboxList.addItemStackToList(new ItemStack(Items.rabbit_hide)); - ScrapboxList.addItemStackToList(new ItemStack(Items.rabbit_foot)); - ScrapboxList.addItemStackToList(new ItemStack(Items.apple)); - ScrapboxList.addItemStackToList(new ItemStack(Items.golden_apple)); - ScrapboxList.addItemStackToList(new ItemStack(Items.gold_nugget)); + static void addScrapBoxloot() + { - ScrapboxList.addItemStackToList(ItemCells.getCellByName("empty")); - ScrapboxList.addItemStackToList(ItemCells.getCellByName("water")); - ScrapboxList.addItemStackToList(ItemParts.getPartByName("scrap")); - ScrapboxList.addItemStackToList(ItemParts.getPartByName("rubber")); + for (Item i : Item.itemRegistry) + { + if (i.isDamageable()) + { + registerMetadataItem(new ItemStack(i)); + continue; + } - ScrapboxList.addItemStackToList(new ItemStack(Blocks.trapdoor)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.stone_button)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.wooden_button)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.acacia_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.acacia_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.birch_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.birch_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.dark_oak_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.dark_oak_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.jungle_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.jungle_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.nether_brick_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.oak_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.oak_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.spruce_fence)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.spruce_fence_gate)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.brick_block)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.crafting_table)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.pumpkin)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.netherrack)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.grass)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.dirt, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.dirt, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sand, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sand, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.glowstone)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.gravel)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.hardened_clay)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.glass)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.glass_pane)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.cactus)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.tallgrass, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.tallgrass, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.deadbush)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.chest)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.tnt)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.rail)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.detector_rail)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.golden_rail)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.activator_rail)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.yellow_flower)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 2)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 3)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 4)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 5)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 6)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 7)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_flower, 1, 8)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.brown_mushroom)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_mushroom)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.brown_mushroom_block)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.red_mushroom_block)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 2)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 3)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 4)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.sapling, 1, 5)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves, 1, 1)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves, 1, 2)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves, 1, 3)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves2, 1, 0)); - ScrapboxList.addItemStackToList(new ItemStack(Blocks.leaves2, 1, 1)); + ScrapboxList.addItemStackToList(new ItemStack(i)); + } - ScrapboxList.addItemStackToList(new ItemStack(ModBlocks.rubberSapling)); - - for (String i : ItemDusts.types) - ScrapboxList.addItemStackToList(ItemDusts.getDustByName(i)); - - for (String i : ItemNuggets.types) - ScrapboxList.addItemStackToList(ItemNuggets.getNuggetByName(i)); - - for (String i : ItemGems.types) - ScrapboxList.addItemStackToList(ItemGems.getGemByName(i)); - - registerDyable(Blocks.carpet); - registerDyable(Blocks.stained_glass); - registerDyable(Blocks.stained_glass_pane); - registerDyable(Blocks.stained_hardened_clay); - - for (int i = 0; i < ScrapboxList.stacks.size(); i++) { + for (int i = 0; i < ScrapboxList.stacks.size(); i++) + { RecipeHandler.addRecipe(new ScrapboxRecipe(ScrapboxList.stacks.get(i))); } // just for jei // TODO find a way to get all ItemStacks in mc - for (int i = 0; i < ScrapboxList.stacks.size(); i++) { + for (int i = 0; i < ScrapboxList.stacks.size(); i++) + { RecipeHandler.addRecipe(new RecyclerRecipe(ScrapboxList.stacks.get(i))); } } - static void registerDyable(Block block) { - for (int i = 0; i < 16; i++) - ScrapboxList.addItemStackToList(new ItemStack(block, 1, i)); + static void registerMetadataItem(ItemStack item) + { + for (int i = 0; i < item.getItem().getMaxDamage(); i++) + { + ScrapboxList.addItemStackToList(new ItemStack(item.getItem(), 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', @@ -279,10 +137,12 @@ public class ModRecipes { "ingotGold"); CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("hv", 8), "XXX", "CCC", "XXX", 'C', ItemIngots.getIngotByName("refinediron")); - CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", - 'G', "blockGlass", 'S', "ingotSilver", 'D', Items.diamond); - CraftingHelper.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "RDR", "GGG", - 'G', "blockGlass", 'R', Items.redstone, 'D', Items.diamond); + CraftingHelper + .addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G', + "blockGlass", 'S', "ingotSilver", 'D', Items.diamond); + CraftingHelper + .addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "RDR", "GGG", 'G', + "blockGlass", 'R', Items.redstone, 'D', Items.diamond); CraftingHelper.addShapelessOreRecipe(ItemStandaloneCables.getCableByName("insulatedcopper"), ItemParts.getPartByName("rubber"), ItemStandaloneCables.getCableByName("copper")); @@ -292,29 +152,35 @@ 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(ItemParts.getPartByName("carbonfiber"), ItemPlates.getPlateByName("carbon"), 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)); @@ -341,7 +207,8 @@ public class ModRecipes { .addRecipe(new GrinderRecipe(ItemGems.getGemByName("ruby"), ItemDusts.getDustByName("ruby"), 100, 20)); } - static void addHammerRecipes() { + static void addHammerRecipes() + { CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.hammer), "III", "ISI", " S ", 'S', Items.stick, 'I', "ingotIron"); @@ -355,39 +222,49 @@ public class ModRecipes { 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.addShapelessOreRecipe(ItemParts.getPartByName("carbonmesh"), ItemDusts.getDustByName("coal"), ItemDusts.getDustByName("coal"), ItemDusts.getDustByName("coal"), ItemDusts.getDustByName("coal")); - CraftingHelper.addShapelessOreRecipe(ItemParts.getPartByName("carbonfiber"), - ItemParts.getPartByName("carbonmesh"), ItemParts.getPartByName("carbonmesh")); + 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")); @@ -448,8 +325,9 @@ 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', @@ -460,9 +338,10 @@ 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', @@ -473,11 +352,13 @@ 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); @@ -485,31 +366,35 @@ 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(BlockStorage.getStorageBlockByName("sapphire"), "AAA", "AAA", "AAA", 'A', "gemSapphire"); - CraftingHelper.addShapedOreRecipe(BlockStorage.getStorageBlockByName("ruby"), "AAA", "AAA", "AAA", 'A', - "gemRuby"); + CraftingHelper + .addShapedOreRecipe(BlockStorage.getStorageBlockByName("ruby"), "AAA", "AAA", "AAA", 'A', "gemRuby"); 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"); @@ -518,8 +403,9 @@ 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"); @@ -531,8 +417,10 @@ 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", ""))); @@ -551,14 +439,17 @@ 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)); @@ -586,8 +477,9 @@ 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")); @@ -595,37 +487,47 @@ 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), @@ -635,26 +537,31 @@ public class ModRecipes { Core.logHelper.info("Shapless 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)); @@ -662,7 +569,8 @@ 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); @@ -673,100 +581,135 @@ 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), @@ -774,19 +717,22 @@ 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), @@ -795,13 +741,15 @@ 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); @@ -813,64 +761,80 @@ 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)); @@ -878,11 +842,13 @@ 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, @@ -927,123 +893,133 @@ 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', @@ -1054,52 +1030,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', @@ -1134,24 +1110,29 @@ 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 @@ -1159,44 +1140,52 @@ 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, @@ -1206,9 +1195,10 @@ 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, @@ -1217,9 +1207,12 @@ 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), @@ -1237,8 +1230,10 @@ 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), @@ -1252,26 +1247,30 @@ 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), @@ -1285,18 +1284,21 @@ 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), @@ -1310,26 +1312,31 @@ 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), @@ -1343,18 +1350,21 @@ 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), @@ -1368,17 +1378,21 @@ 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), @@ -1392,34 +1406,42 @@ 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, @@ -1428,107 +1450,138 @@ 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"); } } @@ -1683,10 +1736,11 @@ 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), @@ -1698,35 +1752,49 @@ 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)); @@ -1739,12 +1807,14 @@ 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', @@ -1754,11 +1824,9 @@ 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"), @@ -1774,32 +1842,38 @@ 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), @@ -1823,9 +1897,10 @@ 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', @@ -1840,9 +1915,10 @@ 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', @@ -1852,13 +1928,15 @@ 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), @@ -1889,8 +1967,9 @@ 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")); @@ -1908,16 +1987,19 @@ 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); @@ -1942,8 +2024,9 @@ public class ModRecipes { // 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, @@ -2024,9 +2107,10 @@ public class ModRecipes { RecipeHandler.addRecipe( new CentrifugeRecipe(new ItemStack(Items.cake, 8), TechRebornAPI.recipeCompact.getItem("cell"), 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.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"), ItemCells.getCellByName("methane", 1), null, null, null, 5000, 5)); @@ -2069,8 +2153,9 @@ public class ModRecipes { 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), + TechRebornAPI.recipeCompact.getItem("cell"), null, null, 40, 5)); // Dust Byproducts @@ -2136,10 +2221,11 @@ public class ModRecipes { 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)); + 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)); 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), @@ -2158,118 +2244,154 @@ public class ModRecipes { TechRebornAPI.recipeCompact.getItem("cell"), 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), + 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), - 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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), TechRebornAPI.recipeCompact.getItem("cell"), 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), + 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) + { 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), + 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) + { 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), + 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) + { 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), + 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) + { 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), + 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) + { 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; @@ -2278,19 +2400,24 @@ 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, 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) + { 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; @@ -2299,154 +2426,195 @@ 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, 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) + { 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) { + } 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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) { + } 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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) { + } 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) { + } 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) { + } 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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; @@ -2455,41 +2623,52 @@ public class ModRecipes { dustStack, ItemDustsSmall.getSmallDustByName("Sodalite", 1), ItemDustsSmall.getSmallDustByName("Glowstone", 1), TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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), + TechRebornAPI.recipeCompact.getItem("cell"), 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; @@ -2497,28 +2676,34 @@ public class ModRecipes { new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, gemStack, ItemDustsSmall.getSmallDustByName("Phosphorous", 4), TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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) { + } 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); @@ -2526,14 +2711,17 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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); @@ -2541,14 +2729,17 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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; @@ -2557,14 +2748,17 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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; @@ -2573,14 +2767,17 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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; @@ -2589,14 +2786,17 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } 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; @@ -2605,7 +2805,8 @@ public class ModRecipes { RecipeHandler.addRecipe( new IndustrialGrinderRecipe(oreStack, TechRebornAPI.recipeCompact.getItem("waterCell"), null, gemStack, dustStack, null, TechRebornAPI.recipeCompact.getItem("cell"), 100, 120)); - } catch (Exception e) { + } catch (Exception e) + { Core.logHelper.info("Failed to Load Grinder Recipe for Malachite Ore"); } } @@ -2663,23 +2864,26 @@ public class ModRecipes { TechRebornAPI.recipeCompact.getItem("iridiumOre"), ItemDustsSmall.getSmallDustByName("Iridium", 6), ItemDustsSmall.getSmallDustByName("Platinum", 2), TechRebornAPI.recipeCompact.getItem("cell"), 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), + 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, 2), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemGems.getGemByName("ruby", 1), @@ -2728,10 +2932,11 @@ public class ModRecipes { 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)); + 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)); RecipeHandler.addRecipe(new IndustrialGrinderRecipe(new ItemStack(ModBlocks.ore, 1, 10), TechRebornAPI.recipeCompact.getItem("waterCell"), null, ItemGems.getGemByName("peridot", 1), @@ -2898,7 +3103,8 @@ public class ModRecipes { new ItemStack(TechRebornAPI.recipeCompact.getItem("cell").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, @@ -2906,51 +3112,59 @@ public class ModRecipes { 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)); } }