diff options
28 files changed, 3989 insertions, 3172 deletions
diff --git a/assets/ihl/textures/gui/GUICastingNEI.png b/assets/ihl/textures/gui/GUICastingNEI.png Binary files differindex b94caca..64fa656 100644 --- a/assets/ihl/textures/gui/GUICastingNEI.png +++ b/assets/ihl/textures/gui/GUICastingNEI.png diff --git a/assets/ihl/textures/gui/GUICryogenicDistiller.png b/assets/ihl/textures/gui/GUICryogenicDistiller.png Binary files differindex 7f7c293..6e26c1f 100644 --- a/assets/ihl/textures/gui/GUICryogenicDistiller.png +++ b/assets/ihl/textures/gui/GUICryogenicDistiller.png diff --git a/assets/ihl/textures/gui/GUIExtruder.png b/assets/ihl/textures/gui/GUIExtruder.png Binary files differindex 22c76cd..6b4ee9c 100644 --- a/assets/ihl/textures/gui/GUIExtruder.png +++ b/assets/ihl/textures/gui/GUIExtruder.png diff --git a/ihl/IHLMod.java b/ihl/IHLMod.java index ed66a5f..9635d41 100644 --- a/ihl/IHLMod.java +++ b/ihl/IHLMod.java @@ -159,22 +159,21 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; -@Mod(modid=IHLModInfo.MODID,name=IHLModInfo.MODNAME, version=IHLModInfo.MODVERSION,dependencies = "required-after:IC2@[2.2.767-experimental,)") +@Mod(modid = IHLModInfo.MODID, name = IHLModInfo.MODNAME, version = IHLModInfo.MODVERSION, dependencies = "required-after:IC2@[2.2.767-experimental,)") -public class IHLMod implements IFuelHandler{ - - @SidedProxy( - clientSide = "ihl.ClientProxy", - serverSide = "ihl.ServerProxy" - ) +public class IHLMod implements IFuelHandler { + + @SidedProxy(clientSide = "ihl.ClientProxy", serverSide = "ihl.ServerProxy") public static ServerProxy proxy; public static IHLModConfig config; public static IHLENet enet; - //This used to determine if GregTech mod presented on server and load GregTech recipes. - public static boolean isGregTechModLoaded=false; - public static boolean isGT_API_Version_5=false; - //This used to determine if CCC presented on server and do not use alternative water blocks if true. - public static boolean cccFiniteWater=false; + // This used to determine if GregTech mod presented on server and load + // GregTech recipes. + public static boolean isGregTechModLoaded = false; + public static boolean isGT_API_Version_5 = false; + // This used to determine if CCC presented on server and do not use + // alternative water blocks if true. + public static boolean cccFiniteWater = false; public static Block driverBlock; public static Block blowerBlock; public static Block cableAnchorBlock; @@ -183,23 +182,34 @@ public class IHLMod implements IFuelHandler{ public static Block spruceTreeBlock; public static Block evaporatorBlock; public static Block electricEvaporatorBlock; - public static Block multiBlockSpacerBlock = (new MultiBlockSpacerBlock()).setBlockName("IHLMultiBlockSpacerBlock").setBlockTextureName(IHLModInfo.MODID+":shieldAU").setHardness(5.0F).setResistance(5.0F); - public static Block boneBlock = (new BoneBlock(Material.coral)).setBlockName("boneBlock").setHardness(2.0F).setResistance(2.0F); + public static Block multiBlockSpacerBlock = (new MultiBlockSpacerBlock()).setBlockName("IHLMultiBlockSpacerBlock") + .setBlockTextureName(IHLModInfo.MODID + ":shieldAU").setHardness(5.0F).setResistance(5.0F); + public static Block boneBlock = (new BoneBlock(Material.coral)).setBlockName("boneBlock").setHardness(2.0F) + .setResistance(2.0F); public static Item ic2_handpump; public static Item ic2_advanced_handpump; public static Item collectorItem = new CollectorItem().setUnlocalizedName("collector"); public static Item collectorHeavyItem = new CollectorHeavyItem().setUnlocalizedName("collectorHeavy"); - public static Block horizontalMiningPipeX = (new HorizontalMiningPipe(1)).setBlockName("horizontalMiningPipeX").setBlockTextureName("ic2:machine/blockMiningPipe").setHardness(5.0F).setResistance(5.0F); - public static Block horizontalMiningPipeZ = (new HorizontalMiningPipe(0)).setBlockName("horizontalMiningPipeZ").setBlockTextureName("ic2:machine/blockMiningPipe").setHardness(5.0F).setResistance(5.0F); - public static Block flowing_water = (new BlockDynamicLiquidPlus(Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("water").setBlockTextureName(IHLModInfo.MODID+":metalShards"); - public static Block flowing_lava = (new BlockDynamicLiquidPlus(Material.lava)).setHardness(100.0F).setLightLevel(1.0F).setBlockName("lava").setBlockTextureName(IHLModInfo.MODID+":metalShards"); - public static Block chargerEjectorBlock = (new ChargerEjectorBlock(Material.glass)).setBlockName("chargerEjectorBlock").setBlockTextureName(IHLModInfo.MODID+":ace").setHardness(2.0F).setResistance(2.0F); - public static Item ihlSkull = (new Item()).setUnlocalizedName("skull").setFull3D().setCreativeTab(CreativeTabs.tabMisc).setTextureName(IHLModInfo.MODID+":skull"); + public static Block horizontalMiningPipeX = (new HorizontalMiningPipe(1)).setBlockName("horizontalMiningPipeX") + .setBlockTextureName("ic2:machine/blockMiningPipe").setHardness(5.0F).setResistance(5.0F); + public static Block horizontalMiningPipeZ = (new HorizontalMiningPipe(0)).setBlockName("horizontalMiningPipeZ") + .setBlockTextureName("ic2:machine/blockMiningPipe").setHardness(5.0F).setResistance(5.0F); + public static Block flowing_water = (new BlockDynamicLiquidPlus(Material.water)).setHardness(100.0F) + .setLightOpacity(3).setBlockName("water").setBlockTextureName(IHLModInfo.MODID + ":metalShards"); + public static Block flowing_lava = (new BlockDynamicLiquidPlus(Material.lava)).setHardness(100.0F) + .setLightLevel(1.0F).setBlockName("lava").setBlockTextureName(IHLModInfo.MODID + ":metalShards"); + public static Block chargerEjectorBlock = (new ChargerEjectorBlock(Material.glass)) + .setBlockName("chargerEjectorBlock").setBlockTextureName(IHLModInfo.MODID + ":ace").setHardness(2.0F) + .setResistance(2.0F); + public static Item ihlSkull = (new Item()).setUnlocalizedName("skull").setFull3D() + .setCreativeTab(CreativeTabs.tabMisc).setTextureName(IHLModInfo.MODID + ":skull"); public static Block ic2Leaves; - public static Block ic2Wood; - public static Block tditBlock = (new TDITBlock(Material.glass)).setBlockName("tditBlock").setBlockTextureName(IHLModInfo.MODID+":tditRight").setHardness(0.5F).setResistance(0.5F); + public static Block ic2Wood; + public static Block tditBlock = (new TDITBlock(Material.glass)).setBlockName("tditBlock") + .setBlockTextureName(IHLModInfo.MODID + ":tditRight").setHardness(0.5F).setResistance(0.5F); public static Item tditft; - public static Block ds = new DebugScannerBlock(Material.ice).setBlockName("debugScanner").setBlockTextureName(IHLModInfo.MODID + ":tditTop"); + public static Block ds = new DebugScannerBlock(Material.ice).setBlockName("debugScanner") + .setBlockTextureName(IHLModInfo.MODID + ":tditTop"); public static Item crucible; public static Logger log; public static DataNet datanet; @@ -207,22 +217,24 @@ public class IHLMod implements IFuelHandler{ private ItemStack pfaacobblelimestone; public static IHLXMLParser xmlparser; public static FluidDictionary fluidDictionary; - public static Map<String,Integer> moltenAmounts = new HashMap<String,Integer>(); + public static Map<String, Integer> moltenAmounts = new HashMap<String, Integer>(); public static ExplosionVectorBlockV2 explosionHandler; - + @EventHandler - public void preInit(FMLPreInitializationEvent evt) throws IOException, ParserConfigurationException - { + public void preInit(FMLPreInitializationEvent evt) throws IOException, ParserConfigurationException { fluidDictionary = new FluidDictionary(); - xmlparser=new IHLXMLParser(); + xmlparser = new IHLXMLParser(); log = evt.getModLog(); - IHLMod.config=new IHLModConfig(evt); - rubberTreeBlock = (new RubberTreeBlock(RubberTreeBlock.TreeType.RUBBERTREE)).setBlockName("rubberTreeBlock").setBlockTextureName(IHLModInfo.MODID+":blockRubWoodFront").setHardness(2.0F).setResistance(5.0F); - spruceTreeBlock = (new RubberTreeBlock(RubberTreeBlock.TreeType.SPRUCE)).setBlockName("spruceBlock").setBlockTextureName(IHLModInfo.MODID+":blockSpruceFront").setHardness(2.0F).setResistance(5.0F).setCreativeTab(IHLCreativeTab.tab); - GameRegistry.registerFuelHandler(this); - PassiveBlock.init(); - FiberItem.init(); - FlexiblePipeItem.init(); + IHLMod.config = new IHLModConfig(evt); + rubberTreeBlock = (new RubberTreeBlock(RubberTreeBlock.TreeType.RUBBERTREE)).setBlockName("rubberTreeBlock") + .setBlockTextureName(IHLModInfo.MODID + ":blockRubWoodFront").setHardness(2.0F).setResistance(5.0F); + spruceTreeBlock = (new RubberTreeBlock(RubberTreeBlock.TreeType.SPRUCE)).setBlockName("spruceBlock") + .setBlockTextureName(IHLModInfo.MODID + ":blockSpruceFront").setHardness(2.0F).setResistance(5.0F) + .setCreativeTab(IHLCreativeTab.tab); + GameRegistry.registerFuelHandler(this); + PassiveBlock.init(); + FiberItem.init(); + FlexiblePipeItem.init(); InjectionMoldBlock.init(); ElectricEngineItem.init(); BlockOre.init(); @@ -234,10 +246,9 @@ public class IHLMod implements IFuelHandler{ MirrorBlock.init(); LightBulbBlock.init(); MachineBaseBlock.init();// must be first - IHLMod.enet=new IHLENet(); - IHLMod.datanet=new DataNet(); - if(config.enableExtendedLiquidPhysics) - { + IHLMod.enet = new IHLENet(); + IHLMod.datanet = new DataNet(); + if (config.enableExtendedLiquidPhysics) { MinecraftForge.EVENT_BUS.register(new IHLEventHandler()); } MinecraftForge.EVENT_BUS.register(new EntityDropEventHandler()); @@ -246,7 +257,7 @@ public class IHLMod implements IFuelHandler{ MinecraftForge.EVENT_BUS.register(proxy); FMLCommonHandler.instance().bus().register(proxy); GameRegistry.registerBlock(ds, "debugScanner"); - GameRegistry.registerTileEntity(DebugScannerTileEntity.class,"DebugScanner"); + GameRegistry.registerTileEntity(DebugScannerTileEntity.class, "DebugScanner"); cableAnchorBlock = new AnchorBlock("cableAnchor"); List<String> info1 = new ArrayList<String>(); info1.add("non vulcanized rubber insulated"); @@ -257,49 +268,56 @@ public class IHLMod implements IFuelHandler{ ExplosiveBlock.init(); PileBlock.init(); GameRegistry.registerTileEntity(AnchorTileEntity.class, "anchorTileEntity"); - - crucible=new Crucible(); - + + crucible = new Crucible(); + ic2_handpump = new IHLHandPump().setUnlocalizedName("handpump"); ic2_advanced_handpump = new AdvancedHandPump().setUnlocalizedName("advanced_handpump"); tditft = new TDITFrequencyTransmitter().setUnlocalizedName("tditFrequencyTransmitter"); - driverBlock = (new DriverBlock(Material.iron)).setBlockName("IHLDriverBlock").setBlockTextureName(IHLModInfo.MODID+":driver").setHardness(5.0F).setResistance(5.0F); - - blowerBlock = (new BlowerBlock(Material.iron)).setBlockName("blowerBlock").setBlockTextureName(IHLModInfo.MODID+":shieldAU").setHardness(5.0F).setResistance(5.0F); + driverBlock = (new DriverBlock(Material.iron)).setBlockName("IHLDriverBlock") + .setBlockTextureName(IHLModInfo.MODID + ":driver").setHardness(5.0F).setResistance(5.0F); + + blowerBlock = (new BlowerBlock(Material.iron)).setBlockName("blowerBlock") + .setBlockTextureName(IHLModInfo.MODID + ":shieldAU").setHardness(5.0F).setResistance(5.0F); + + evaporatorBlock = (new EvaporatorBlock(Material.iron)).setBlockName("evaporatorBlock") + .setBlockTextureName(IHLModInfo.MODID + ":solidFuelEvaporatorFrontActive").setHardness(5.0F) + .setResistance(5.0F); + electricEvaporatorBlock = (new ElectricEvaporatorBlock(Material.iron)).setBlockName("electricEvaporatorBlock") + .setBlockTextureName(IHLModInfo.MODID + ":electricEvaporatorFrontActive").setHardness(5.0F) + .setResistance(5.0F); + sackBlock = (new SackBlock(Material.iron)).setBlockName("sackBlock") + .setBlockTextureName(IHLModInfo.MODID + ":sackItem").setHardness(0.5F).setResistance(0.5F); - evaporatorBlock = (new EvaporatorBlock(Material.iron)).setBlockName("evaporatorBlock").setBlockTextureName(IHLModInfo.MODID+":solidFuelEvaporatorFrontActive").setHardness(5.0F).setResistance(5.0F); - electricEvaporatorBlock = (new ElectricEvaporatorBlock(Material.iron)).setBlockName("electricEvaporatorBlock").setBlockTextureName(IHLModInfo.MODID+":electricEvaporatorFrontActive").setHardness(5.0F).setResistance(5.0F); - sackBlock= (new SackBlock(Material.iron)).setBlockName("sackBlock").setBlockTextureName(IHLModInfo.MODID+":sackItem").setHardness(0.5F).setResistance(0.5F); - GameRegistry.registerBlock(horizontalMiningPipeX, "horizontalMiningPipeX"); GameRegistry.registerBlock(horizontalMiningPipeZ, "horizontalMiningPipeZ"); GameRegistry.registerBlock(boneBlock, "boneBlock"); - + GameRegistry.registerBlock(blowerBlock, "blowerBlock"); GameRegistry.registerTileEntity(BlowerTileEntity.class, "blowerTileEntity"); - + GameRegistry.registerItem(ic2_handpump, "Handpump"); GameRegistry.registerItem(ic2_advanced_handpump, ic2_advanced_handpump.getUnlocalizedName()); GameRegistry.registerItem(ihlSkull, "skull"); - + GameRegistry.registerBlock(driverBlock, IHLItemBlock.class, "IHLDriverBlock"); GameRegistry.registerTileEntity(DriverTileEntity.class, "IHLDriverTileEntity"); - + GameRegistry.registerBlock(chargerEjectorBlock, IHLItemBlock.class, "chargerEjectorBlock"); GameRegistry.registerTileEntity(ChargerEjectorTileEntity.class, "ChargerEjectorTileEntity"); - + GameRegistry.registerBlock(multiBlockSpacerBlock, "IHLShieldBlock"); - + GameRegistry.registerBlock(flowing_water, "flowing_water"); GameRegistry.registerBlock(flowing_lava, "flowing_lava"); - + GameRegistry.registerItem(collectorItem, "collectorItem"); - GameRegistry.registerItem(collectorHeavyItem, "collectorHeavyItem"); - //NetworkRegistry.INSTANCE.registerGuiHandler(this, new IHLGuiHandler()); - + // NetworkRegistry.INSTANCE.registerGuiHandler(this, new + // IHLGuiHandler()); + GameRegistry.registerBlock(rubberTreeBlock, "rubberTreeBlock"); GameRegistry.registerBlock(spruceTreeBlock, "spruceTreeBlock"); GameRegistry.registerBlock(sackBlock, "sackBlock"); @@ -308,7 +326,7 @@ public class IHLMod implements IFuelHandler{ GameRegistry.registerBlock(electricEvaporatorBlock, "electricEvaporatorBlock"); GameRegistry.registerTileEntity(EvaporatorTileEntity.class, "evaporatorTileEntity"); GameRegistry.registerTileEntity(ElectricEvaporatorTileEntity.class, "electricEvaporatorTileEntity"); - + GameRegistry.registerBlock(tditBlock, "tditBlock"); GameRegistry.registerTileEntity(TDITTileEntity.class, "tditTileEntity"); GameRegistry.registerItem(tditft, "tditftItem"); @@ -328,843 +346,1855 @@ public class IHLMod implements IFuelHandler{ } @EventHandler - public void postInit(FMLPostInitializationEvent evt) throws IOException - { - ic2Leaves=StackUtil.getBlock(IC2Items.getItem("rubberLeaves")); - ic2Wood=StackUtil.getBlock(IC2Items.getItem("rubberWood")); - boolean isCodeChickenCoreLoaded=true; - try - { + public void postInit(FMLPostInitializationEvent evt) throws IOException { + ic2Leaves = StackUtil.getBlock(IC2Items.getItem("rubberLeaves")); + ic2Wood = StackUtil.getBlock(IC2Items.getItem("rubberWood")); + boolean isCodeChickenCoreLoaded = true; + try { Class.forName("codechicken.core.asm.TweakTransformer"); + } catch (ClassNotFoundException e) { + isCodeChickenCoreLoaded = false; } - catch (ClassNotFoundException e) - { - isCodeChickenCoreLoaded=false; - } - if(isCodeChickenCoreLoaded) - { + if (isCodeChickenCoreLoaded) { codechicken.core.asm.CodeChickenCoreModContainer.loadConfig(); ConfigTag tweaks = codechicken.core.asm.CodeChickenCoreModContainer.config.getTag("tweaks"); - cccFiniteWater = tweaks.getTag("finiteWater").setComment("If set to true two adjacent water source blocks will not generate a third.").getBooleanValue(true); - } - if(!IHLMod.config.skipRecipeLoad) - { - if(IHLMod.config.enableRubberTreeSack) - { - GameRegistry.addRecipe(new ItemStack(sackBlock, 1), new Object[]{ "STS", "L L", "LLL", 'S', Items.string, 'T', Items.stick, 'L', Items.leather}); - Recipes.advRecipes.addRecipe(new ItemStack(evaporatorBlock,1), new Object[] { " B ", " I ", " ", Character.valueOf('B'), Items.bucket, Character.valueOf('I'), IC2Items.getItem("ironFurnace")}); - EvaporatorTileEntity.init(); + cccFiniteWater = tweaks.getTag("finiteWater") + .setComment("If set to true two adjacent water source blocks will not generate a third.") + .getBooleanValue(true); } - if(IHLMod.config.enableTDIT) - { - Recipes.advRecipes.addRecipe(new ItemStack(tditBlock,1), new Object[] { "AAA", "CMC", "ATA", Character.valueOf('A'), IC2Items.getItem("advancedAlloy"), Character.valueOf('C'), new ItemStack(Blocks.chest,1), Character.valueOf('M'), IC2Items.getItem("advancedMachine"), Character.valueOf('T'), IC2Items.getItem("teleporter")}); - Recipes.advRecipes.addRecipe(new ItemStack(tditft,1), new Object[] { " CC", "IAI", " ", Character.valueOf('I'), IC2Items.getItem("casingiron"), Character.valueOf('C'), IC2Items.getItem("copperCableItem"), Character.valueOf('A'), IC2Items.getItem("advancedCircuit")}); - } - GameRegistry.addRecipe(IHLUtils.getThisModItemStack("glassBoxBlock"), new Object[]{ " ", "G G", "GGG", 'G', new ItemStack(Blocks.glass_pane,1)}); - GameRegistry.addRecipe(new ItemStack(boneBlock, 1), new Object[]{ "XXX", "XYX", "XXX", 'X', Items.bone, 'Y', Items.iron_ingot}); - GameRegistry.addRecipe(new ItemStack(boneBlock, 1), new Object[]{ "XZX", "XYX", "XZX", 'X', Items.bone, 'Y', Items.iron_ingot, 'Z', ihlSkull}); - GameRegistry.addShapelessRecipe(new ItemStack(Items.dye, 2, 15), new Object[] {ihlSkull}); - FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("bucket_SpruceResin"), IHLUtils.getThisModItemStack("bucket_tarPitch"), 20F); - ItemStack nuggetTarPitch = OreDictionary.getOres("nuggetTarPitch").get(0).copy(); - GameRegistry.addShapelessRecipe(OreDictionary.getOres("ingotTarPitch").get(0).copy(), new Object[]{nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch,nuggetTarPitch}); - if(IHLUtils.hasOreDictionaryEntry("brickPeat") && GameRegistry.findItem("Forestry", "bituminousPeat")!=null)GameRegistry.addRecipe(new ItemStack(GameRegistry.findItem("Forestry", "bituminousPeat"), 5), new Object[] { "BBB", "BPB", "BBB", 'B', IHLUtils.getOreDictItemStack("brickPeat"), 'P', OreDictionary.getOres("ingotTarPitch").get(0)}); - pfaalimestone = IHLUtils.getOtherModItemStackWithDamage("PFAAGeologica", "mediumStone",0,1); - pfaacobblelimestone = IHLUtils.getOtherModItemStackWithDamage("PFAAGeologica", "mediumCobble",0,1); - isGregTechModLoaded=Loader.isModLoaded("gregtech"); - if(isGregTechModLoaded) - { - try - { - Class.forName("gregapi.GT_API"); + if (!IHLMod.config.skipRecipeLoad) { + if (IHLMod.config.enableRubberTreeSack) { + GameRegistry.addRecipe(new ItemStack(sackBlock, 1), + new Object[] { "STS", "L L", "LLL", 'S', Items.string, 'T', Items.stick, 'L', Items.leather }); + Recipes.advRecipes.addRecipe(new ItemStack(evaporatorBlock, 1), + new Object[] { " B ", " I ", " ", Character.valueOf('B'), Items.bucket, + Character.valueOf('I'), IC2Items.getItem("ironFurnace") }); + EvaporatorTileEntity.init(); } - catch (ClassNotFoundException e) - { - isGT_API_Version_5=true; + if (IHLMod.config.enableTDIT) { + Recipes.advRecipes.addRecipe(new ItemStack(tditBlock, 1), + new Object[] { "AAA", "CMC", "ATA", Character.valueOf('A'), IC2Items.getItem("advancedAlloy"), + Character.valueOf('C'), new ItemStack(Blocks.chest, 1), Character.valueOf('M'), + IC2Items.getItem("advancedMachine"), Character.valueOf('T'), + IC2Items.getItem("teleporter") }); + Recipes.advRecipes.addRecipe(new ItemStack(tditft, 1), + new Object[] { " CC", "IAI", " ", Character.valueOf('I'), IC2Items.getItem("casingiron"), + Character.valueOf('C'), IC2Items.getItem("copperCableItem"), Character.valueOf('A'), + IC2Items.getItem("advancedCircuit") }); } - if(isGT_API_Version_5) - { - this.loadGT5Recipes(); + GameRegistry.addRecipe(IHLUtils.getThisModItemStack("glassBoxBlock"), + new Object[] { " ", "G G", "GGG", 'G', new ItemStack(Blocks.glass_pane, 1) }); + GameRegistry.addRecipe(new ItemStack(boneBlock, 1), + new Object[] { "XXX", "XYX", "XXX", 'X', Items.bone, 'Y', Items.iron_ingot }); + GameRegistry.addRecipe(new ItemStack(boneBlock, 1), + new Object[] { "XZX", "XYX", "XZX", 'X', Items.bone, 'Y', Items.iron_ingot, 'Z', ihlSkull }); + GameRegistry.addShapelessRecipe(new ItemStack(Items.dye, 2, 15), new Object[] { ihlSkull }); + FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("bucket_SpruceResin"), + IHLUtils.getThisModItemStack("bucket_tarPitch"), 20F); + ItemStack nuggetTarPitch = OreDictionary.getOres("nuggetTarPitch").get(0).copy(); + GameRegistry.addShapelessRecipe(OreDictionary.getOres("ingotTarPitch").get(0).copy(), + new Object[] { nuggetTarPitch, nuggetTarPitch, nuggetTarPitch, nuggetTarPitch, nuggetTarPitch, + nuggetTarPitch, nuggetTarPitch, nuggetTarPitch, nuggetTarPitch }); + if (IHLUtils.hasOreDictionaryEntry("brickPeat") + && GameRegistry.findItem("Forestry", "bituminousPeat") != null) + GameRegistry.addRecipe(new ItemStack(GameRegistry.findItem("Forestry", "bituminousPeat"), 5), + new Object[] { "BBB", "BPB", "BBB", 'B', IHLUtils.getOreDictItemStack("brickPeat"), 'P', + OreDictionary.getOres("ingotTarPitch").get(0) }); + pfaalimestone = IHLUtils.getOtherModItemStackWithDamage("PFAAGeologica", "mediumStone", 0, 1); + pfaacobblelimestone = IHLUtils.getOtherModItemStackWithDamage("PFAAGeologica", "mediumCobble", 0, 1); + isGregTechModLoaded = Loader.isModLoaded("gregtech"); + if (isGregTechModLoaded) { + try { + Class.forName("gregapi.GT_API"); + } catch (ClassNotFoundException e) { + isGT_API_Version_5 = true; + } + if (isGT_API_Version_5) { + this.loadGT5Recipes(); + } else { + this.loadGT6Recipes(); + } + } else { + this.loadIC2Recipes(); } - else - { - this.loadGT6Recipes(); + IHLUtils.addIC2RollingRecipe("ingotTungsten", IHLUtils.getOreDictItemStack("plateTungsten")); + IHLUtils.addIC2CentrifugeRecipe("crushedGyubnera", IHLUtils.getThisModItemStack("crushedPurifiedGyubnera"), + IHLUtils.getThisModItemStack("dustPotassiumFeldspar")); + IHLUtils.addIC2CentrifugeRecipe("crushedCinnabar", IHLUtils.getThisModItemStack("crushedPurifiedCinnabar"), + IHLUtils.getThisModItemStack("dustPotassiumFeldspar")); + IHLUtils.addIC2CentrifugeRecipe("crushedBauxite", IHLUtils.getThisModItemStack("crushedPurifiedBauxite"), + IHLUtils.getOreDictItemStack("dustClay")); + IHLUtils.addIC2CentrifugeRecipe("crushedStibnite", IHLUtils.getThisModItemStack("crushedPurifiedStibnite"), + IHLUtils.getOreDictItemStack("dustTinyGold")); + IHLUtils.addIC2MaceratorRecipe("logWood", IHLUtils.getThisModItemStack("dustWood")); + IHLUtils.addIC2MaceratorRecipe("ingotPotassium", IHLUtils.getThisModItemStack("dustPotassiumOxide")); + if (IHLUtils.hasOreDictionaryEntry("blockLimestone")) + IHLUtils.addIC2MaceratorRecipe("blockLimestone", + IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)); + if (pfaalimestone != null) + IHLUtils.addIC2MaceratorRecipe(pfaalimestone, IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)); + if (pfaacobblelimestone != null) + IHLUtils.addIC2MaceratorRecipe(pfaacobblelimestone, + IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)); + IHLUtils.addIC2MaceratorRecipe("oreGypsum", IHLUtils.getOreDictItemStack("dustGypsum")); + IHLUtils.addIC2MaceratorRecipe("orePotassiumFeldspar", + IHLUtils.getOreDictItemStack("dustPotassiumFeldspar")); + IHLUtils.addIC2MaceratorRecipe("oreLimestone", IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)); + IHLUtils.addIC2MaceratorRecipe("oreSaltpeter", IHLUtils.getOreDictItemStackWithSize("dustSaltpeter", 4)); + IHLUtils.addIC2MaceratorRecipe("oreGyubnera", IHLUtils.getThisModItemStackWithSize("crushedGyubnera", 2)); + IHLUtils.addIC2MaceratorRecipe("oreCinnabar", IHLUtils.getThisModItemStackWithSize("crushedCinnabar", 2)); + IHLUtils.addIC2MaceratorRecipe("oreBauxite", IHLUtils.getThisModItemStackWithSize("crushedBauxite", 2)); + IHLUtils.addIC2MaceratorRecipe("crushedPurifiedBauxite", IHLUtils.getThisModItemStack("dustBauxite")); + IHLUtils.addIC2MaceratorRecipe("oreStibnite", IHLUtils.getThisModItemStackWithSize("crushedStibnite", 2)); + IHLUtils.addIC2MaceratorRecipe("crushedPurifiedStibnite", IHLUtils.getThisModItemStack("dustStibnite")); + IHLUtils.addIC2MaceratorRecipe("blockGlass", IHLUtils.getOreDictItemStackWithSize("dustGlass", 1)); + IHLUtils.addIC2MaceratorRecipe("stickGraphite", 2, IHLUtils.getThisModItemStack("dustGraphite")); + IHLUtils.addIC2MaceratorRecipe("oreMica", IHLUtils.getThisModItemStackWithSize("dustMica", 4)); + IHLUtils.addIC2MaceratorRecipe("oreTrona", IHLUtils.getThisModItemStackWithSize("dustTrona", 4)); + IHLUtils.addIC2MaceratorRecipe(Ic2Items.iridiumOre, IHLUtils.getThisModItemStack("dustIridium")); + IHLUtils.addIC2MaceratorRecipe("oreDatolite", IHLUtils.getThisModItemStackWithSize("dustDatolite", 4)); + IHLUtils.addIC2MaceratorRecipe("oreBischofite", IHLUtils.getThisModItemStackWithSize("dustBischofite", 4)); + IHLUtils.addIC2MaceratorRecipe("ingotBrick", IHLUtils.getOreDictItemStackWithSize("dustBrick", 1)); + IHLUtils.addIC2ExtrudingRecipe(IHLUtils.getThisModItemStack("dustIronOxideCatalystMix"), + IHLUtils.getThisModItemStack("catalystRawIronOxide")); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustIrongraphite", 2), + new Object[] { new RecipeInputOreDict("dustIron"), new RecipeInputOreDict("dustGraphite") }); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getOreDictItemStackWithSize("dustPorcelain", 4), + new Object[] { new RecipeInputOreDict("dustClay"), new RecipeInputOreDict("dustClay"), + new RecipeInputOreDict("dustSiliconDioxide"), + new RecipeInputOreDict("dustPotassiumFeldspar") }); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("chisel"), new Object[] { + IHLUtils.getThisModItemStack("grindstone"), IHLUtils.getThisModItemStack("blankChiselSteel") }); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze"), + new Object[] { IHLUtils.getThisModItemStack("grindstone"), + IHLUtils.getThisModItemStack("carvingKnifeBronze") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("hammer"), + new Object[] { "H ", "SC ", " ", Character.valueOf('H'), + IHLUtils.getThisModItemStack("toolHeadHammerSmallSteel"), Character.valueOf('S'), + new ItemStack(Items.stick), Character.valueOf('C'), + new RecipeInputOreDict("craftingToolKnife") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("grindstone", 2), + new Object[] { " H ", " Q ", " ", Character.valueOf('H'), + new RecipeInputOreDict("craftingToolForgeHammer"), Character.valueOf('Q'), + new RecipeInputOreDict("blockQuartz") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("grindstone", 2), + new Object[] { " H ", " Q ", " ", Character.valueOf('H'), + new RecipeInputOreDict("craftingToolHardHammer"), Character.valueOf('Q'), + new RecipeInputOreDict("blockQuartz") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("blankNeedleFileSteel", 64), + new Object[] { " H ", " C ", " P ", Character.valueOf('H'), + new RecipeInputOreDict("craftingToolForgeHammer"), Character.valueOf('C'), + new RecipeInputOreDict("craftingToolChisel"), Character.valueOf('P'), + IHLUtils.getThisModItemStack("plateHotSteel") }); + Recipes.metalformerExtruding.addRecipe(new RecipeInputOreDict("dustIrongraphite"), null, + IHLUtils.getThisModItemStackWithSize("linerIronGraphite", 4)); + Recipes.compressor.addRecipe(new RecipeInputOreDict("foilMica", 4), null, + IHLUtils.getThisModItemStack("plateMica")); + Recipes.metalformerExtruding.addRecipe(new RecipeInputOreDict("dustBoronCarbide"), null, + IHLUtils.getThisModItemStackWithSize("stickBoronCarbide", 2)); + Recipes.metalformerRolling.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStack("dustCoalElectrodePremix")), null, + IHLUtils.getThisModItemStack("plateRawCoal")); + Recipes.metalformerExtruding.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStack("foilRubberWithSulfur")), null, + IHLUtils.getThisModItemStack("batteryCellsEbonite")); + GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustAntimony"), new Object[] { + IHLUtils.getThisModItemStack("dustTinyAntimony"), IHLUtils.getThisModItemStack("dustTinyAntimony"), + IHLUtils.getThisModItemStack("dustTinyAntimony"), IHLUtils.getThisModItemStack("dustTinyAntimony"), + IHLUtils.getThisModItemStack("dustTinyAntimony"), IHLUtils.getThisModItemStack("dustTinyAntimony"), + IHLUtils.getThisModItemStack("dustTinyAntimony"), IHLUtils.getThisModItemStack("dustTinyAntimony"), + IHLUtils.getThisModItemStack("dustTinyAntimony") }); + GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustTinyAntimony", 9), + new Object[] { IHLUtils.getThisModItemStack("dustAntimony") }); + GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustSilicon"), new Object[] { + IHLUtils.getThisModItemStack("dustTinySilicon"), IHLUtils.getThisModItemStack("dustTinySilicon"), + IHLUtils.getThisModItemStack("dustTinySilicon"), IHLUtils.getThisModItemStack("dustTinySilicon"), + IHLUtils.getThisModItemStack("dustTinySilicon"), IHLUtils.getThisModItemStack("dustTinySilicon"), + IHLUtils.getThisModItemStack("dustTinySilicon"), IHLUtils.getThisModItemStack("dustTinySilicon"), + IHLUtils.getThisModItemStack("dustTinySilicon") }); + GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustTinySilicon", 9), + new Object[] { IHLUtils.getThisModItemStack("dustSilicon") }); + GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustSolderingAlloy"), new Object[] { + IHLUtils.getOreDictItemStack("dustTin"), IHLUtils.getThisModItemStack("dustTinyAntimony") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("achesonFurnance"), + new Object[] { "BPB", " ", "B B", Character.valueOf('B'), new RecipeInputOreDict("ingotBrick"), + Character.valueOf('P'), new RecipeInputOreDict("plateSteel") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("muffleFurnance"), + new Object[] { "BCB", "SDP", "BSB", Character.valueOf('B'), new RecipeInputOreDict("ingotBrick"), + Character.valueOf('P'), new RecipeInputOreDict("plateSteel"), Character.valueOf('C'), + IHLUtils.getThisModItemStack("crucibleMixture"), Character.valueOf('S'), + new RecipeInputOreDict("stickGraphite"), Character.valueOf('D'), + new RecipeInputOreDict("dustCarborundum") }); + + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 64), + new Object[] { "VFS", "DR ", "WT ", Character.valueOf('V'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), Character.valueOf('F'), + new RecipeInputOreDict("craftingToolFile"), Character.valueOf('S'), + new RecipeInputOreDict("stickSteel"), Character.valueOf('D'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("handDrillBronze")), + Character.valueOf('R'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("drillSteelHardened")), + Character.valueOf('W'), new RecipeInputOreDict("craftingToolSaw"), Character.valueOf('T'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("tapM10x1SteelHardened")) }); + + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8), + new Object[] { "VFS", "DR ", "W ", Character.valueOf('V'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), Character.valueOf('F'), + new RecipeInputOreDict("craftingToolFile"), Character.valueOf('S'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel")), + Character.valueOf('D'), new RecipeInputOreDict("craftingToolHardHammer"), + Character.valueOf('R'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("diceM10x1SteelHardened")), + Character.valueOf('W'), new RecipeInputOreDict("craftingToolSaw") }); + + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("drillSteel", 2), + new Object[] { "VFS", "DR ", " ", Character.valueOf('V'), + new RecipeInputOreDict("craftingToolHardHammer"), Character.valueOf('F'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), Character.valueOf('S'), + new RecipeInputOreDict("craftingToolFile"), Character.valueOf('D'), + new RecipeInputOreDict("craftingToolChisel"), Character.valueOf('R'), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10SteelHot")) }); + + ItemStack crystal = IC2Items.getItem("lapotronCrystal").copy(); + ItemStack advBattery = IC2Items.getItem("advBattery").copy(); + ItemStack chargedReBattery = IC2Items.getItem("chargedReBattery").copy(); + crystal.setItemDamage(OreDictionary.WILDCARD_VALUE); + advBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); + chargedReBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); + + if (IHLMod.config.enableCollectors) { + Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), + IC2Items.getItem("reBattery"), Character.valueOf('E'), + new ItemStack(Items.ender_pearl, 1), Character.valueOf('Z'), + IC2Items.getItem("advancedCircuit") }); + Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), + chargedReBattery, Character.valueOf('E'), new ItemStack(Items.ender_pearl, 1), + Character.valueOf('Z'), IC2Items.getItem("advancedCircuit") }); + Recipes.advRecipes.addRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingbronze"), Character.valueOf('R'), + advBattery, Character.valueOf('E'), new ItemStack(Items.ender_pearl, 1), + Character.valueOf('Z'), IC2Items.getItem("advancedCircuit") }); + + Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), + IC2Items.getItem("reBattery"), Character.valueOf('E'), + IC2Items.getItem("advancedMachine"), Character.valueOf('Z'), + IC2Items.getItem("advancedCircuit") }); + Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), + chargedReBattery, Character.valueOf('E'), IC2Items.getItem("advancedMachine"), + Character.valueOf('Z'), IC2Items.getItem("advancedCircuit") }); + Recipes.advRecipes.addRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), + Character.valueOf('C'), IC2Items.getItem("casingbronze"), Character.valueOf('R'), + advBattery, Character.valueOf('E'), IC2Items.getItem("advancedMachine"), + Character.valueOf('Z'), IC2Items.getItem("advancedCircuit") }); + + Recipes.advRecipes.addRecipe(new ItemStack(IHLMod.chargerEjectorBlock, 1), + new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), IC2Items.getItem("platelapi"), + Character.valueOf('G'), new ItemStack(Blocks.glass, 1), Character.valueOf('C'), + IC2Items.getItem("glassFiberCableItem"), Character.valueOf('L'), crystal }); + } + if (IHLMod.config.enableHandpump) { + Recipes.advRecipes.addRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " C ", " P", Character.valueOf('T'), IC2Items.getItem("treetap"), + Character.valueOf('C'), IC2Items.getItem("cell"), Character.valueOf('P'), + IC2Items.getItem("powerunitsmall") }); + Recipes.advRecipes.addRecipe(((AdvancedHandPump) ic2_advanced_handpump).getItemStack(0), + new Object[] { "TK ", "KCA", " RP", Character.valueOf('T'), IC2Items.getItem("treetap"), + Character.valueOf('K'), IC2Items.getItem("advancedAlloy"), Character.valueOf('C'), + IC2Items.getItem("cell"), Character.valueOf('A'), IC2Items.getItem("advancedCircuit"), + Character.valueOf('R'), IC2Items.getItem("energyCrystal"), Character.valueOf('P'), + IC2Items.getItem("powerunitsmall") }); } - } - else - { - this.loadIC2Recipes(); - } - IHLUtils.addIC2RollingRecipe("ingotTungsten", IHLUtils.getOreDictItemStack("plateTungsten")); - IHLUtils.addIC2CentrifugeRecipe("crushedGyubnera", IHLUtils.getThisModItemStack("crushedPurifiedGyubnera"),IHLUtils.getThisModItemStack("dustPotassiumFeldspar")); - IHLUtils.addIC2CentrifugeRecipe("crushedCinnabar", IHLUtils.getThisModItemStack("crushedPurifiedCinnabar"),IHLUtils.getThisModItemStack("dustPotassiumFeldspar")); - IHLUtils.addIC2CentrifugeRecipe("crushedBauxite", IHLUtils.getThisModItemStack("crushedPurifiedBauxite"),IHLUtils.getOreDictItemStack("dustClay")); - IHLUtils.addIC2CentrifugeRecipe("crushedStibnite", IHLUtils.getThisModItemStack("crushedPurifiedStibnite"),IHLUtils.getOreDictItemStack("dustTinyGold")); - IHLUtils.addIC2MaceratorRecipe("logWood", IHLUtils.getThisModItemStack("dustWood")); - IHLUtils.addIC2MaceratorRecipe("ingotPotassium", IHLUtils.getThisModItemStack("dustPotassiumOxide")); - if(IHLUtils.hasOreDictionaryEntry("blockLimestone"))IHLUtils.addIC2MaceratorRecipe("blockLimestone", IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)); - if(pfaalimestone!=null)IHLUtils.addIC2MaceratorRecipe(pfaalimestone, IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)); - if(pfaacobblelimestone!=null)IHLUtils.addIC2MaceratorRecipe(pfaacobblelimestone, IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)); - IHLUtils.addIC2MaceratorRecipe("oreGypsum", IHLUtils.getOreDictItemStack("dustGypsum")); - IHLUtils.addIC2MaceratorRecipe("orePotassiumFeldspar", IHLUtils.getOreDictItemStack("dustPotassiumFeldspar")); - IHLUtils.addIC2MaceratorRecipe("oreLimestone", IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)); - IHLUtils.addIC2MaceratorRecipe("oreSaltpeter", IHLUtils.getOreDictItemStackWithSize("dustSaltpeter",4)); - IHLUtils.addIC2MaceratorRecipe("oreGyubnera", IHLUtils.getThisModItemStackWithSize("crushedGyubnera",2)); - IHLUtils.addIC2MaceratorRecipe("oreCinnabar", IHLUtils.getThisModItemStackWithSize("crushedCinnabar",2)); - IHLUtils.addIC2MaceratorRecipe("oreBauxite", IHLUtils.getThisModItemStackWithSize("crushedBauxite",2)); - IHLUtils.addIC2MaceratorRecipe("crushedPurifiedBauxite", IHLUtils.getThisModItemStack("dustBauxite")); - IHLUtils.addIC2MaceratorRecipe("oreStibnite", IHLUtils.getThisModItemStackWithSize("crushedStibnite",2)); - IHLUtils.addIC2MaceratorRecipe("crushedPurifiedStibnite", IHLUtils.getThisModItemStack("dustStibnite")); - IHLUtils.addIC2MaceratorRecipe("blockGlass", IHLUtils.getOreDictItemStackWithSize("dustGlass",1)); - IHLUtils.addIC2MaceratorRecipe("stickGraphite",2, IHLUtils.getThisModItemStack("dustGraphite")); - IHLUtils.addIC2MaceratorRecipe("oreMica", IHLUtils.getThisModItemStackWithSize("dustMica",4)); - IHLUtils.addIC2MaceratorRecipe("oreTrona", IHLUtils.getThisModItemStackWithSize("dustTrona",4)); - IHLUtils.addIC2MaceratorRecipe(Ic2Items.iridiumOre, IHLUtils.getThisModItemStack("dustIridium")); - IHLUtils.addIC2MaceratorRecipe("oreDatolite", IHLUtils.getThisModItemStackWithSize("dustDatolite",4)); - IHLUtils.addIC2MaceratorRecipe("oreBischofite", IHLUtils.getThisModItemStackWithSize("dustBischofite",4)); - IHLUtils.addIC2MaceratorRecipe("ingotBrick", IHLUtils.getOreDictItemStackWithSize("dustBrick",1)); - IHLUtils.addIC2ExtrudingRecipe(IHLUtils.getThisModItemStack("dustIronOxideCatalystMix"), IHLUtils.getThisModItemStack("catalystRawIronOxide")); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustIrongraphite",2), new Object[] {new RecipeInputOreDict("dustIron"), new RecipeInputOreDict("dustGraphite")}); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getOreDictItemStackWithSize("dustPorcelain",4), new Object[] {new RecipeInputOreDict("dustClay"),new RecipeInputOreDict("dustClay"), new RecipeInputOreDict("dustSiliconDioxide"), new RecipeInputOreDict("dustPotassiumFeldspar")}); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("chisel"), new Object[] {IHLUtils.getThisModItemStack("grindstone"),IHLUtils.getThisModItemStack("blankChiselSteel")}); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze"), new Object[] {IHLUtils.getThisModItemStack("grindstone"),IHLUtils.getThisModItemStack("carvingKnifeBronze")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("hammer"), new Object[] { "H ", "SC ", " ", Character.valueOf('H'),IHLUtils.getThisModItemStack("toolHeadHammerSmallSteel"), Character.valueOf('S'),new ItemStack(Items.stick), Character.valueOf('C'), new RecipeInputOreDict("craftingToolKnife")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("grindstone",2), new Object[] { " H ", " Q ", " ", Character.valueOf('H'), new RecipeInputOreDict("craftingToolForgeHammer"), Character.valueOf('Q'), new RecipeInputOreDict("blockQuartz")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("grindstone",2), new Object[] { " H ", " Q ", " ", Character.valueOf('H'), new RecipeInputOreDict("craftingToolHardHammer"), Character.valueOf('Q'), new RecipeInputOreDict("blockQuartz")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("blankNeedleFileSteel",64), new Object[] { " H ", " C ", " P ", Character.valueOf('H'), new RecipeInputOreDict("craftingToolForgeHammer"), Character.valueOf('C'), new RecipeInputOreDict("craftingToolChisel"), Character.valueOf('P'), IHLUtils.getThisModItemStack("plateHotSteel")}); - Recipes.metalformerExtruding.addRecipe(new RecipeInputOreDict("dustIrongraphite"), null, IHLUtils.getThisModItemStackWithSize("linerIronGraphite",4)); - Recipes.compressor.addRecipe(new RecipeInputOreDict("foilMica",4), null, IHLUtils.getThisModItemStack("plateMica")); - Recipes.metalformerExtruding.addRecipe(new RecipeInputOreDict("dustBoronCarbide"), null, IHLUtils.getThisModItemStackWithSize("stickBoronCarbide",2)); - Recipes.metalformerRolling.addRecipe(new RecipeInputItemStack(IHLUtils.getThisModItemStack("dustCoalElectrodePremix")), null, IHLUtils.getThisModItemStack("plateRawCoal")); - Recipes.metalformerExtruding.addRecipe(new RecipeInputItemStack(IHLUtils.getThisModItemStack("foilRubberWithSulfur")), null, IHLUtils.getThisModItemStack("batteryCellsEbonite")); - GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustAntimony"), new Object[]{IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony"),IHLUtils.getThisModItemStack("dustTinyAntimony")}); - GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustTinyAntimony",9), new Object[]{IHLUtils.getThisModItemStack("dustAntimony")}); - GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustSilicon"), new Object[]{IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon"),IHLUtils.getThisModItemStack("dustTinySilicon")}); - GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("dustTinySilicon",9), new Object[]{IHLUtils.getThisModItemStack("dustSilicon")}); - GameRegistry.addShapelessRecipe(IHLUtils.getThisModItemStack("dustSolderingAlloy"), new Object[]{IHLUtils.getOreDictItemStack("dustTin"),IHLUtils.getThisModItemStack("dustTinyAntimony")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("achesonFurnance"), new Object[] { "BPB", " ", "B B", Character.valueOf('B'), new RecipeInputOreDict("ingotBrick"), Character.valueOf('P'), new RecipeInputOreDict("plateSteel")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("muffleFurnance"), new Object[] { "BCB", "SDP", "BSB", Character.valueOf('B'), new RecipeInputOreDict("ingotBrick"), Character.valueOf('P'), new RecipeInputOreDict("plateSteel"), Character.valueOf('C'), IHLUtils.getThisModItemStack("crucibleMixture"), Character.valueOf('S'), new RecipeInputOreDict("stickGraphite"), Character.valueOf('D'), new RecipeInputOreDict("dustCarborundum")}); - - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",64), new Object[] { "VFS", "DR ", "WT ", - Character.valueOf('V'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), - Character.valueOf('F'), new RecipeInputOreDict("craftingToolFile"), - Character.valueOf('S'), new RecipeInputOreDict("stickSteel"), - Character.valueOf('D'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("handDrillBronze")), - Character.valueOf('R'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("drillSteelHardened")), - Character.valueOf('W'), new RecipeInputOreDict("craftingToolSaw"), - Character.valueOf('T'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("tapM10x1SteelHardened"))}); - - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8), new Object[] { "VFS", "DR ", "W ", - Character.valueOf('V'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), - Character.valueOf('F'), new RecipeInputOreDict("craftingToolFile"), - Character.valueOf('S'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel")), - Character.valueOf('D'), new RecipeInputOreDict("craftingToolHardHammer"), - Character.valueOf('R'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("diceM10x1SteelHardened")), - Character.valueOf('W'), new RecipeInputOreDict("craftingToolSaw")}); - - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStackWithSize("drillSteel",2), new Object[] { - "VFS", "DR ", " ", - Character.valueOf('V'), new RecipeInputOreDict("craftingToolHardHammer"), - Character.valueOf('F'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("viseSteel")), - Character.valueOf('S'), new RecipeInputOreDict("craftingToolFile"), - Character.valueOf('D'), new RecipeInputOreDict("craftingToolChisel"), - Character.valueOf('R'), new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10SteelHot"))}); - - ItemStack crystal = IC2Items.getItem("lapotronCrystal").copy(); - ItemStack advBattery = IC2Items.getItem("advBattery").copy(); - ItemStack chargedReBattery = IC2Items.getItem("chargedReBattery").copy(); - crystal.setItemDamage(OreDictionary.WILDCARD_VALUE); - advBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); - chargedReBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); - if(IHLMod.config.enableCollectors) - { - Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), IC2Items.getItem("reBattery"), Character.valueOf('E'), new ItemStack(Items.ender_pearl, 1), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), chargedReBattery, Character.valueOf('E'), new ItemStack(Items.ender_pearl, 1), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - Recipes.advRecipes.addRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingbronze"), Character.valueOf('R'), advBattery, Character.valueOf('E'), new ItemStack(Items.ender_pearl, 1), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - - Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), IC2Items.getItem("reBattery"), Character.valueOf('E'), IC2Items.getItem("advancedMachine"), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - Recipes.advRecipes.addRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingiron"), Character.valueOf('R'), chargedReBattery, Character.valueOf('E'), IC2Items.getItem("advancedMachine"), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - Recipes.advRecipes.addRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), new Object[] { "ICI", "RER", "IZI", Character.valueOf('I'), IC2Items.getItem("ironCableItem"), Character.valueOf('C'), IC2Items.getItem("casingbronze"), Character.valueOf('R'), advBattery, Character.valueOf('E'), IC2Items.getItem("advancedMachine"), Character.valueOf('Z'), IC2Items.getItem("advancedCircuit")}); - - Recipes.advRecipes.addRecipe(new ItemStack(IHLMod.chargerEjectorBlock,1), new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), IC2Items.getItem("platelapi"), Character.valueOf('G'), new ItemStack(Blocks.glass,1), Character.valueOf('C'), IC2Items.getItem("glassFiberCableItem"), Character.valueOf('L'), crystal}); - } - if(IHLMod.config.enableHandpump) - { - Recipes.advRecipes.addRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), new Object[] { "T ", " C ", " P", Character.valueOf('T'), IC2Items.getItem("treetap"), Character.valueOf('C'), IC2Items.getItem("cell"), Character.valueOf('P'), IC2Items.getItem("powerunitsmall")}); - Recipes.advRecipes.addRecipe(((AdvancedHandPump) ic2_advanced_handpump).getItemStack(0), new Object[] { "TK ", "KCA", " RP", Character.valueOf('T'), IC2Items.getItem("treetap"), Character.valueOf('K'), IC2Items.getItem("advancedAlloy"), Character.valueOf('C'), IC2Items.getItem("cell"), Character.valueOf('A'), IC2Items.getItem("advancedCircuit"), Character.valueOf('R'), IC2Items.getItem("energyCrystal"), Character.valueOf('P'), IC2Items.getItem("powerunitsmall")}); - } - - ItemStack forestryWaxCapsule = IHLUtils.getOtherModItemStackWithDamage("Forestry", "waxCapsule", 0,1); - ItemStack forestryWaxCast = IHLUtils.getOtherModItemStackWithDamage("Forestry", "waxCast", 0,1); - ItemStack forestryCandle = IHLUtils.getOtherModItemStackWithDamage("Forestry", "candle", 0,1); - ItemStack forestryBeesWax = IHLUtils.getOtherModItemStackWithDamage("Forestry", "beeswax", 0,1); - if(forestryWaxCapsule!=null) - { - Recipes.advRecipes.addRecipe(forestryWaxCapsule, new Object[] { "SBS", " ", " ", Character.valueOf('S'), IHLUtils.getThisModItemStack("ingotStearin"),Character.valueOf('B'),forestryBeesWax}); - } - if(forestryCandle!=null) - { - Recipes.advRecipes.addRecipe(forestryCandle, new Object[] { " S ", " I ", " ", Character.valueOf('S'), new ItemStack(Items.string),Character.valueOf('I'),IHLUtils.getThisModItemStack("ingotStearin")}); - } - if(forestryWaxCast!=null) - { - Recipes.advRecipes.addRecipe(forestryWaxCast, new Object[] { "BSS", "S S", "SSB", Character.valueOf('S'), IHLUtils.getThisModItemStack("ingotStearin"),Character.valueOf('B'),forestryBeesWax}); - } - Iterator<ItemStack> odi = OreDictionary.getOres("dustGypsum").iterator(); - while(odi.hasNext()) - { - ItemStack stack = odi.next().copy(); - stack.stackSize=2; - FurnaceRecipes.smelting().func_151394_a(stack, IHLUtils.getThisModItemStack("dustDehydratedGypsum"), 20F); - } - Recipes.FluidHeatGenerator.addFluid("oleicacid", 10, 16); - Recipes.FluidHeatGenerator.addFluid("mineraloil", 10, 16); - Recipes.FluidHeatGenerator.addFluid("acetylene", 10, 64); - Recipes.FluidHeatGenerator.addFluid("glyceryl", 10, 16); - Recipes.FluidHeatGenerator.addFluid("turpentine", 10, 16); - Recipes.FluidHeatGenerator.addFluid("fueloil", 10, 32); - Recipes.FluidHeatGenerator.addFluid("crackinggas", 10, 32); - Recipes.semiFluidGenerator.addFluid("hydrogen", 10, 32); - Recipes.semiFluidGenerator.addFluid("crackinggas", 10, 32); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("breadWithLard",4), new Object[] {new ItemStack(Items.bread), IHLUtils.getThisModItemStack("muttonLard")}); - Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), new Object[] {Ic2Items.coalDust, IHLUtils.getOreDictItemStack("nuggetTarPitch")}); - Recipes.metalformerExtruding.addRecipe(new RecipeInputItemStack(IHLUtils.getThisModItemStack("dustCoalElectrodePremix")), null, IHLUtils.getThisModItemStack("stickCoalElectrodePremix")); - FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), IHLUtils.getOreDictItemStack("stickCoal"), 20F); - FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("plateRawCoal"), IHLUtils.getOreDictItemStack("plateCoal"), 20F); - FurnaceRecipes.smelting().func_151394_a(IHLUtils.getOreDictItemStackWithSize("dustCalcite",3), IHLUtils.getOreDictItemStack("dustQuicklime"), 2F); - FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("catalystRawIronOxide"), IHLUtils.getThisModItemStack("catalystIronOxide"), 2F); - ItemSubstance.postInit(); - ItemStack lathingTool = Ic2Items.LathingTool.copy(); - lathingTool.setItemDamage(OreDictionary.WILDCARD_VALUE); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] {new RecipeInputDie("setOfDies1_5sqmm",240)}),Arrays.asList(new ItemStack[] {Ic2Items.copperCableItem}),Arrays.asList(new ItemStack[] {IHLUtils.getUninsulatedWire("Copper",1,240)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] {new RecipeInputDie("setOfDies1_5sqmm",240)}),Arrays.asList(new ItemStack[] {Ic2Items.ironCableItem}),Arrays.asList(new ItemStack[] {IHLUtils.getUninsulatedWire("Steel",1,240)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("bucket_tarPitch"),new ItemStack(Items.stick)}),Arrays.asList(new ItemStack[] {new ItemStack(Items.bucket),IHLUtils.getOreDictItemStackWithSize("nuggetTarPitch",4),new ItemStack(Blocks.torch)}))); - List<IRecipeInput> materialList3 = new ArrayList<IRecipeInput>(); - materialList3.add(new RecipeInputItemStack(new ItemStack(Blocks.sand, 1 , OreDictionary.WILDCARD_VALUE))); - materialList3.add(new RecipeInputOreDict("dustClay")); - materialList3.add(new RecipeInputFluidContainer(FluidRegistry.WATER,1)); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("ingot")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("tub")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("blankChisel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("carvingKnife")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("toolHeadHammerSmall")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("barD10")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("stick")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("setOfPartsForLVElemotor")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("pipelineAccessories")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("highPressureVessel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("gasJet")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("handDrillSetOfMoldedParts")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("detonationSprayingMachineSetOfMoldedParts")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("viseSetOfMoldedParts")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,materialList3,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getSandInjectionMoldForResult("nozzle")}))); - //Sand molds recipe section end - List<ItemStack> materialsForPrecisionMold = Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("ingotStearin"), IHLUtils.getOreDictItemStack("cellLiquidGlass"), IHLUtils.getOreDictItemStack("dustSiliconDioxide"), new ItemStack(Blocks.sand)}); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),materialsForPrecisionMold,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getGypsumInjectionMoldForResult("rollingMachineSetOfMoldedParts"), Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),materialsForPrecisionMold,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getGypsumInjectionMoldForResult("polishingPucks"), Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),materialsForPrecisionMold,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getGypsumInjectionMoldForResult("turboCompressorSetOfMoldedParts"), Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),materialsForPrecisionMold,Arrays.asList(new ItemStack[]{InjectionMoldBlock.instance.getGypsumInjectionMoldForResult("extruderSetOfMoldedParts"), Ic2Items.cell.copy()}))); - //Precision molds recipe section end - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( - Arrays.asList(new ItemStack[] { - IHLUtils.getThisModItemStack("hammer"), - IHLUtils.getThisModItemStack("chisel"), - IHLUtils.getThisModItemStack("needleFile")}), - Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("barD10SteelHot")}), - Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("sawBladeSteel",2)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze"),IHLUtils.getThisModItemStack("needleFile")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("barD10Steel"),IHLUtils.getThisModItemStack("sawBladeSteelHardened"),new ItemStack(Items.stick)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("hackSawSteel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("needleFile"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("blankSetOfFilesSteel",4)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("viseSetOfMoldedPartsSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("viseSteel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("stickSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("diceM10x1Steel",16)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("needleFile"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("barD10Steel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("tapM10x1Steel",2)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened"),IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",16),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",12),IHLUtils.getThisModItemStackWithSize("barD10Steel",16),IHLUtils.getOreDictItemStackWithSize("plateSteel",4),IHLUtils.getOreDictItemStack("stickSteel"), new ItemStack(Items.leather), new ItemStack(Items.string)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("lathePart1"),IHLUtils.getThisModItemStack("lathePart2")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened"),IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",16),IHLUtils.getOreDictItemStack("plateSteel"),IHLUtils.getThisModItemStack("extruderSetOfMoldedPartsSteel"),IHLUtils.getThisModItemStack("meshGlass"),IHLUtils.getThisModItemStack("dustCarborundum"), new ItemStack(Items.leather), new ItemStack(Items.string)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("extruder"),IHLUtils.getThisModItemStack("vulcanizationExtrudingMold")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("chisel"),IHLUtils.getThisModItemStack("hammer")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("barD10SteelHot")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("nailSteel",8)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("barD10Steel"),IHLUtils.getThisModItemStackWithSize("nailSteel",16),new ItemStack(Blocks.planks), new ItemStack(Items.leather), new ItemStack(Items.string),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8),IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("coiler")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("barD10Steel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("handDrillSetOfMoldedPartsBronze"), new ItemStack(Items.stick)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("handDrillBronze")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"), lathingTool}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",16),IHLUtils.getThisModItemStack("dustCarborundum"),IHLUtils.getThisModItemStack("crucibleMixture"),IHLUtils.getOreDictItemStack("stickGraphite"),IHLUtils.getOreDictItemStack("plateSteel"),IHLUtils.getThisModItemStackWithSize("stickSteel",4), IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 16)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("wireMill")}), Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("lathePart1")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("setOfPartsForLVElemotorSteel"),IHLUtils.getThisModItemStack("ingotStearin"),IHLUtils.getUninsulatedWire("Copper", 4,15),new ItemStack(Items.paper),new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 2)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("electricMotorLVLEDC")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("setOfPartsForLVElemotorSteel"),IHLUtils.getOreDictItemStack("cellSpruceResin"),IHLUtils.getUninsulatedWire("Copper", 4,15),new ItemStack(Items.paper),new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 2)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("electricMotorLVLEDC"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("linerIronGraphiteHot"), IHLUtils.getThisModItemStack("muttonLard")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("linerIronGraphiteGreased")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStackWithSize("dustBrick",7),IHLUtils.getOreDictItemStackWithSize("dustClay",3), IHLUtils.getOreDictItemStackWithSize("dustGraphite",2),Ic2Items.waterCell.copy()}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("crucibleMixture",12),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("crucibleMixture")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("crucible")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("stickSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",64)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), Ic2Items.bronzeAxe}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10Steel",4),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), new ItemStack(Items.leather), new ItemStack(Items.stick,8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("loom")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.iron_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10Steel",4),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), new ItemStack(Items.leather), new ItemStack(Items.stick,8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("loom")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.golden_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10Steel",4),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), new ItemStack(Items.leather), new ItemStack(Items.stick,8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("loom")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.diamond_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10Steel",4),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), new ItemStack(Items.leather), new ItemStack(Items.stick,8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("loom")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), Ic2Items.bronzeAxe.copy()}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cannonBronze")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.iron_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cannonBronze")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.golden_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cannonBronze")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.diamond_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cannonBronze")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), lathingTool, IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened")}),Arrays.asList(new ItemStack[] {IHLUtils.getOreDictItemStack("ingotHotSteel"),IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getThisModItemStack("springSteel"),IHLUtils.getThisModItemStack("barD10Steel"),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",6),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",6)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("gasReducerSteel")}), Arrays.asList(new ItemStack [] {IHLUtils.getThisModItemStack("lathePart1")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"), lathingTool}),Arrays.asList(new ItemStack[] {IHLUtils.getOreDictItemStack("ingotHotSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("pistonCylinderSteel")}), Arrays.asList(new ItemStack [] {IHLUtils.getThisModItemStack("lathePart1")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[] {IHLUtils.getUninsulatedWire("Steel", 1, 240), new ItemStack(Items.stick)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("springSteel",4)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStackWithSize("barD10SteelHot",2),IHLUtils.getThisModItemStack("springSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("tinSnipsSteel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getThisModItemStackWithSize("gasReducerSteel",2),IHLUtils.getThisModItemStack("gasJetSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",10),IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel",2),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",32),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",32),IHLUtils.getThisModWireItemStackWithLength("pipeVulcanizedRubber", 16)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened"), lathingTool}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("pistonCylinderSteel"),IHLUtils.getOreDictItemStackWithSize("plateSteel",2),IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"),IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getThisModItemStackWithSize("stickSteel",2), IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 4),IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel",2)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cryogenicDistiller")}), Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("lathePart1")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("meshGlass"), - IHLUtils.getThisModItemStack("dustCarborundum"), - IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), - IHLUtils.getThisModItemStack("foilRubber"), - IHLUtils.getThisModItemStack("highPressureVesselSteel"), - IHLUtils.getOreDictItemStack("stickSteel"), - IHLUtils.getOreDictItemStack("plateSteel"), - IHLUtils.getThisModItemStackWithSize("barD10Steel", 4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("chemicalReactor")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), Ic2Items.bronzeAxe}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10SteelHot",7),IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("woodenRollingMachinePart1"),IHLUtils.getThisModItemStack("woodenRollingMachinePart2")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.iron_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10SteelHot",7),IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("woodenRollingMachinePart1"),IHLUtils.getThisModItemStack("woodenRollingMachinePart2")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.golden_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10SteelHot",7),IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("woodenRollingMachinePart1"),IHLUtils.getThisModItemStack("woodenRollingMachinePart2")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.diamond_axe)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("barD10SteelHot",7),IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("woodenRollingMachinePart1"),IHLUtils.getThisModItemStack("woodenRollingMachinePart2")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("fiberGlassDieSteel")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getOreDictItemStackWithSize("plateSteel",2),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("cableAnchor")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getItemStackWithTag("setOfDies1_5sqmm","transverseSection",240)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("setOfDies1_5sqmm")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8), - IHLUtils.getOreDictItemStackWithSize("plateSteel",4), - IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), - IHLUtils.getThisModItemStack("rollingMachineSetOfMoldedPartsSteel"), - IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("rollingMachinePart1")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8), - IHLUtils.getOreDictItemStackWithSize("plateSteel",4), - IHLUtils.getThisModItemStackWithSize("barD10Steel", 4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("rollingMachinePart2")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("electrolysisBathRawPorcelain"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("ovenRawPorcelain"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("precipitatorCondenserRawPorcelain"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("chimneyKneeRawPorcelain"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("gaedesPumpBarrelRawPorcelain"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("ringRawPorcelain",4),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("lampHolderRawPorcelain",4),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{Ic2Items.waterCell.copy(), IHLUtils.getOreDictItemStack("dustPorcelain")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("insulatorRawPorcelain",4),Ic2Items.cell.copy()}))); - //Raw porcelain recipes section end - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStackWithSize("foilSteel",4), - IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), - IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), - IHLUtils.getThisModItemStack("foilRubber"), - IHLUtils.getOreDictItemStack("plateSteel"), - IHLUtils.getThisModItemStack("turboCompressorSetOfMoldedPartsBronze"), - IHLUtils.getThisModItemStack("highPressureVesselSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("fluidizedBedReactor")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("pistonCylinderSteel",2),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"),IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getOreDictItemStack("plateSteel"),IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel",2),IHLUtils.getThisModItemStack("electrolysisBathPorcelain"),IHLUtils.getThisModItemStackWithSize("stickGraphite",2)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("labElectrolyzer")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("glassBlowingTubeSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getOreDictItemStack("foilTungsten"),IHLUtils.getOreDictItemStack("dustQuicklime"),IHLUtils.getOreDictItemStack("dustGlass"),IHLUtils.getOreDictItemStack("stickGraphite"),IHLUtils.getThisModItemStack("barD10Steel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("gu-81m",4)}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation"),IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStack("barD10Steel"),new ItemStack(Items.stick)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("glassBlowingTubeSteel")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getOreDictItemStack("plateSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",4),IHLUtils.getThisModItemStack("foilRubber"),IHLUtils.getThisModItemStack("gaedesPumpBarrelPorcelain"),IHLFluid.getCell("mercury")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump"),Ic2Items.cell.copy()}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("cellMineralOil"),IHLUtils.getOreDictItemStack("foilMica"),IHLUtils.getOreDictItemStack("foilCopper"),IHLUtils.getOreDictItemStack("foilSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("highVoltageCapacitor"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("cellMineralOil"),IHLUtils.getOreDictItemStack("foilMica"),IHLUtils.getOreDictItemStack("foilGold"),IHLUtils.getOreDictItemStack("foilSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("highVoltageCapacitor"),Ic2Items.cell.copy()}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("ringPorcelain",64),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",6),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",6),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("fractionatorSection")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("stickSteel",4),IHLUtils.getOreDictItemStackWithSize("plateSteel",2),IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",6),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",6),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("fractionatorBottom")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",6),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",6),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("fractionatorCover")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("drillSteelHardened")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",6),IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",6),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStackWithSize("barD10Steel",4)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("refluxCondenser")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("dustFerrite"),IHLUtils.getThisModItemStack("ingotStearin")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("ringRawFerrite",4)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("glassBlowingTubeSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilSteel"),IHLFluid.getCell("mercury"),IHLUtils.getOreDictItemStack("stickBoronCarbide"),IHLUtils.getOreDictItemStack("dustGlass"),IHLUtils.getOreDictItemStack("stickGraphite"),IHLUtils.getThisModItemStack("barD10Steel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("ignitron",6),Ic2Items.cell.copy()}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation"),IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("glassBlowingTubeSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getOreDictItemStack("foilTungsten"),IHLUtils.getOreDictItemStack("dustQuicklime"),IHLUtils.getOreDictItemStack("dustGlass"),IHLUtils.getOreDictItemStack("stickGraphite"),IHLUtils.getThisModItemStack("barD10Steel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("valveTube1C21P",6)}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation"),IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("glassBlowingTubeSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("foilGold"),IHLUtils.getOreDictItemStack("foilMica"),IHLFluid.getCell("cablingcolophony"),IHLUtils.getOreDictItemStack("dustGlass"),IHLUtils.getOreDictItemStack("foilSteel"),IHLUtils.getThisModItemStack("springSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("vacuumSwitch",16),Ic2Items.cell.copy()}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation"),IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStackWithSize("insulatorPorcelain",8), - IHLUtils.getThisModItemStackWithSize("plateMica",2), - IHLUtils.getThisModItemStackWithSize("highVoltageCapacitor",3), - IHLFluid.getCell("cablingcolophony"), - IHLUtils.getThisModItemStack("dustSolderingAlloy"), - IHLUtils.getThisModItemStack("foilMica"), - IHLUtils.getThisModItemStackWithSize("gu-81m",4), - IHLUtils.getThisModItemStackWithSize("foilSteel",8), - IHLUtils.getUninsulatedWire("Copper",288,15), - IHLFluid.getCell("mineraloil"), - IHLUtils.getThisModItemStackWithSize("ignitron",6), - IHLUtils.getThisModItemStackWithSize("valveTube1C21P",6)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("rectifierTransformerUnit"),Ic2Items.cell.copy()}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("foilCopper"), - IHLFluid.getCell("cablingcolophony"), - IHLUtils.getThisModItemStack("dustSolderingAlloy"), - IHLUtils.getThisModItemStackWithSize("ringFerrite",8), - IHLUtils.getThisModItemStack("foilMica")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("hallSensor",8),Ic2Items.cell.copy()}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStackWithSize("insulatorPorcelain",4), - IHLUtils.getUninsulatedWire("Copper",4,15), - IHLUtils.getThisModItemStack("foilMica"), - IHLUtils.getThisModItemStack("leadAcidBattery"), - IHLUtils.getThisModItemStack("dustSolderingAlloy"), - IHLUtils.getThisModItemStack("vacuumSwitch"), - IHLUtils.getThisModItemStackWithSize("hallSensor",2), - IHLUtils.getThisModItemStackWithSize("valveTube1C21P",2)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("batterySwitchUnit")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - ItemStack twoEmptyCells = Ic2Items.cell.copy(); - twoEmptyCells.stackSize=2; - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("foilGold"), - IHLUtils.getThisModItemStack("foilRubberWithSulfur"), - IHLUtils.getThisModItemStack("foilLead"), - IHLFluid.getCell("sulfuricacid"), - IHLFluid.getCell("ic2distilledwater"), - IHLUtils.getThisModItemStack("dustSolderingAlloy"), - IHLUtils.getThisModItemStack("dustLeadPlumbate"), - IHLUtils.getThisModItemStackWithSize("batteryCellsEbonite",8)}),Arrays.asList(new ItemStack[]{BatteryItem.getFullyChargedItemStackWithSize("leadAcidBattery",8),twoEmptyCells}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("foilSteel"), - IHLUtils.getThisModItemStackWithSize("plateGraphite",5), - IHLUtils.getThisModItemStackWithSize("barD10Steel",4), - IHLUtils.getThisModItemStack("stickGraphite"), - IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), - IHLUtils.getThisModItemStack("foilRubber")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("electrolysisBath")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStack("dustTin"), - new ItemStack(Blocks.glass_pane,16), - IHLFluid.getCell("mercury"), - IHLFluid.getCell("turpentine"), - IHLUtils.getThisModItemStack("fabric")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("mirror",16),twoEmptyCells}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStack("dustTin"), - new ItemStack(Blocks.glass_pane,16), - IHLFluid.getCell("mercury"), - IHLFluid.getCell("turpentine"), - new ItemStack(Blocks.wool)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("mirror",16),twoEmptyCells}))); - if(IHLUtils.hasOreDictionaryEntry("cellEthanol")) - { - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStack("dustTin"), - new ItemStack(Blocks.glass_pane,16), - IHLFluid.getCell("mercury"), - IHLUtils.getOreDictItemStack("cellEthanol"), - IHLUtils.getThisModItemStack("fabric")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("mirror",16),twoEmptyCells}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStack("dustTin"), - new ItemStack(Blocks.glass_pane,16), - IHLFluid.getCell("mercury"), - IHLUtils.getOreDictItemStack("cellEthanol"), - new ItemStack(Blocks.wool)}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("mirror",16),twoEmptyCells}))); - } - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("glassBlowingTubeSteel"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("foilTungsten"), - IHLUtils.getThisModItemStack("foilCopper"), - IHLUtils.getThisModItemStackWithSize("lampHolderPorcelain",16), - IHLUtils.getOreDictItemStack("dustGlass") - }),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("lightBulb",16)}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation"),IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("viseSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("lightBulb"), - IHLUtils.getThisModItemStack("foilSteel"), - IHLUtils.getInsulatedWire("Copper",1,15,"Rubber", 100), - IHLUtils.getOreDictItemStack("plateSteel"), - new ItemStack(Blocks.glass_pane) - }),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("spotlight")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hammer"),IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("handDrillBronze"),IHLUtils.getThisModItemStack("tapM10x1SteelHardened"),IHLUtils.getThisModItemStack("hackSawSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStackWithSize("plateSteel",8), - IHLUtils.getThisModItemStackWithSize("incisorSteelDiamondCoated",8), - IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",16), - IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), - IHLUtils.getThisModItemStackWithSize("barD10Steel",4), - IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), - IHLUtils.getThisModItemStack("foilRubber")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("advancedShieldAssemblyUnitBlock")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel"),IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel")}),Arrays.asList(new ItemStack[]{ - IHLUtils.getOreDictItemStackWithSize("plateSteel",2), - IHLUtils.getOreDictItemStack("foilSteel"), - IHLUtils.getThisModItemStackWithSize("boltM10x1Steel",8), - IHLUtils.getThisModItemStackWithSize("nutM10x1Steel",8), - IHLUtils.getThisModItemStackWithSize("barD10Steel",16), - IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), - IHLUtils.getThisModItemStack("extruderSetOfMoldedPartsSteel"), - IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased",4), - IHLUtils.getThisModItemStack("turboCompressorSetOfMoldedPartsBronze"), - IHLUtils.getThisModItemStack("foilRubber")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("hydrotransportPulpRegenerator")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] { - RecipeInputs.cutter, - RecipeInputs.saw, - RecipeInputs.vise, - RecipeInputs.file}), - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("plateSteel",2), - new RecipeInputOreDict("foilSteel",2), - RecipeInputs.get("boltM10x1Steel",8), - RecipeInputs.get("nutM10x1Steel",8), - RecipeInputs.get("barD10Steel",16), - RecipeInputs.get("rollingMachineSetOfMoldedPartsSteel"), - RecipeInputs.get("linerIronGraphiteGreased",4), - RecipeInputs.get("turboCompressorSetOfMoldedPartsBronze"), - RecipeInputs.get("foilRubber")}), - Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("paperMachine")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] { - RecipeInputs.cutter, - RecipeInputs.saw, - RecipeInputs.hammer, - RecipeInputs.file}), - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("plateSteel",2), - new RecipeInputOreDict("foilSteel"), - new RecipeInputItemStack(Ic2Items.elemotor), - RecipeInputs.get("boltM10x1Steel",8), - RecipeInputs.get("nutM10x1Steel",8), - RecipeInputs.get("linerIronGraphiteGreased",4), - RecipeInputs.get("turboCompressorSetOfMoldedPartsBronze",2)}), - Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("blowerBlock")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("dyeRed"), - new RecipeInputWire("Copper",128,15,"Rubber",100,10000)}), - Arrays.asList(new ItemStack[]{IHLUtils.getThisModWireItemStackWithLength("EightPinDataCable",16)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] { - RecipeInputs.cutter}), - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("plateSteel",2), - new RecipeInputOreDict("foilSteel"), - new RecipeInputOreDict("foilMica"), - new RecipeInputOreDict("foilCopper"), - new RecipeInputWire("Copper",8,15,"Rubber",100,10000)}), - Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("redstoneSignalConverter")}),Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("gasWeldingStation")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("dustIronOxide",8), - new RecipeInputOreDict("dustBauxite"), - new RecipeInputOreDict("dustPotassiumOxide"), - }), - Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStackWithSize("dustIronOxideCatalystMix",10)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] {IHLUtils.getThisModItemStack("hackSawSteel"),IHLUtils.getThisModItemStack("viseSteel"),IHLUtils.getThisModItemStack("setOfFilesSteel"),IHLUtils.getThisModItemStack("drillSteelHardened"),IHLUtils.getThisModItemStack("handDrillBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getOreDictItemStack("plateSteel")}),Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStackWithSize("incisorSteel",4)}))); - if(IHLMod.isGregTechModLoaded && IHLMod.isGT_API_Version_5) - { - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,15),IHLUtils.getOreDictItemStack("dustRawRubber")}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Copper", 1,15,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,240),IHLUtils.getOreDictItemStack("dustRawRubber")}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Copper", 1,240,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,15),IHLUtils.getOreDictItemStack("dustRawRubber")}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Steel", 1,15,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,240),IHLUtils.getOreDictItemStack("dustRawRubber")}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Steel", 1,240,"RawRubber",100)}))); + ItemStack forestryWaxCapsule = IHLUtils.getOtherModItemStackWithDamage("Forestry", "waxCapsule", 0, 1); + ItemStack forestryWaxCast = IHLUtils.getOtherModItemStackWithDamage("Forestry", "waxCast", 0, 1); + ItemStack forestryCandle = IHLUtils.getOtherModItemStackWithDamage("Forestry", "candle", 0, 1); + ItemStack forestryBeesWax = IHLUtils.getOtherModItemStackWithDamage("Forestry", "beeswax", 0, 1); + if (forestryWaxCapsule != null) { + Recipes.advRecipes.addRecipe(forestryWaxCapsule, + new Object[] { "SBS", " ", " ", Character.valueOf('S'), + IHLUtils.getThisModItemStack("ingotStearin"), Character.valueOf('B'), + forestryBeesWax }); + } + if (forestryCandle != null) { + Recipes.advRecipes.addRecipe(forestryCandle, + new Object[] { " S ", " I ", " ", Character.valueOf('S'), new ItemStack(Items.string), + Character.valueOf('I'), IHLUtils.getThisModItemStack("ingotStearin") }); + } + if (forestryWaxCast != null) { + Recipes.advRecipes.addRecipe(forestryWaxCast, + new Object[] { "BSS", "S S", "SSB", Character.valueOf('S'), + IHLUtils.getThisModItemStack("ingotStearin"), Character.valueOf('B'), + forestryBeesWax }); + } + Iterator<ItemStack> odi = OreDictionary.getOres("dustGypsum").iterator(); + while (odi.hasNext()) { + ItemStack stack = odi.next().copy(); + stack.stackSize = 2; + FurnaceRecipes.smelting().func_151394_a(stack, IHLUtils.getThisModItemStack("dustDehydratedGypsum"), + 20F); + } + Recipes.FluidHeatGenerator.addFluid("oleicacid", 10, 16); + Recipes.FluidHeatGenerator.addFluid("mineraloil", 10, 16); + Recipes.FluidHeatGenerator.addFluid("acetylene", 10, 64); + Recipes.FluidHeatGenerator.addFluid("glyceryl", 10, 16); + Recipes.FluidHeatGenerator.addFluid("turpentine", 10, 16); + Recipes.FluidHeatGenerator.addFluid("fueloil", 10, 32); + Recipes.FluidHeatGenerator.addFluid("crackinggas", 10, 32); + Recipes.semiFluidGenerator.addFluid("hydrogen", 10, 32); + Recipes.semiFluidGenerator.addFluid("crackinggas", 10, 32); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStackWithSize("breadWithLard", 4), + new Object[] { new ItemStack(Items.bread), IHLUtils.getThisModItemStack("muttonLard") }); + Recipes.advRecipes.addShapelessRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), + new Object[] { Ic2Items.coalDust, IHLUtils.getOreDictItemStack("nuggetTarPitch") }); + Recipes.metalformerExtruding.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStack("dustCoalElectrodePremix")), null, + IHLUtils.getThisModItemStack("stickCoalElectrodePremix")); + FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), + IHLUtils.getOreDictItemStack("stickCoal"), 20F); + FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("plateRawCoal"), + IHLUtils.getOreDictItemStack("plateCoal"), 20F); + FurnaceRecipes.smelting().func_151394_a(IHLUtils.getOreDictItemStackWithSize("dustCalcite", 3), + IHLUtils.getOreDictItemStack("dustQuicklime"), 2F); + FurnaceRecipes.smelting().func_151394_a(IHLUtils.getThisModItemStack("catalystRawIronOxide"), + IHLUtils.getThisModItemStack("catalystIronOxide"), 2F); + ItemSubstance.postInit(); + ItemStack lathingTool = Ic2Items.LathingTool.copy(); + lathingTool.setItemDamage(OreDictionary.WILDCARD_VALUE); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new IRecipeInput[] { new RecipeInputDie("setOfDies1_5sqmm", 240) }), + Arrays.asList(new ItemStack[] { Ic2Items.copperCableItem }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new IRecipeInput[] { new RecipeInputDie("setOfDies1_5sqmm", 240) }), + Arrays.asList(new ItemStack[] { Ic2Items.ironCableItem }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("bucket_tarPitch"), new ItemStack(Items.stick) }), + Arrays.asList(new ItemStack[] { new ItemStack(Items.bucket), + IHLUtils.getOreDictItemStackWithSize("nuggetTarPitch", 4), new ItemStack(Blocks.torch) }))); + List<IRecipeInput> materialList3 = new ArrayList<IRecipeInput>(); + materialList3.add(new RecipeInputItemStack(new ItemStack(Blocks.sand, 1, OreDictionary.WILDCARD_VALUE))); + materialList3.add(new RecipeInputOreDict("dustClay")); + materialList3.add(new RecipeInputFluidContainer(FluidRegistry.WATER, 1)); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("ingot") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("tub") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList( + new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("blankChisel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList( + new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("carvingKnife") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("toolHeadHammerSmall") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("barD10") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("stick") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("setOfPartsForLVElemotor") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("pipelineAccessories") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("highPressureVessel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("gasJet") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("handDrillSetOfMoldedParts") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, + Arrays.asList(new ItemStack[] { InjectionMoldBlock.instance + .getSandInjectionMoldForResult("detonationSprayingMachineSetOfMoldedParts") }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getSandInjectionMoldForResult("viseSetOfMoldedParts") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, materialList3, Arrays + .asList(new ItemStack[] { InjectionMoldBlock.instance.getSandInjectionMoldForResult("nozzle") }))); + // Sand molds recipe section end + List<IRecipeInput> materialsForPrecisionMold = Arrays + .asList(new IRecipeInput[] { new RecipeInputItemStack(IHLUtils.getThisModItemStack("ingotStearin")), + new RecipeInputFluidContainer(FluidRegistry.getFluid("liquidglass"), 1), + new RecipeInputOreDict("dustSiliconDioxide"), + new RecipeInputItemStack(new ItemStack(Blocks.sand)) }); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + materialsForPrecisionMold, Arrays.asList(new ItemStack[] { InjectionMoldBlock.instance + .getGypsumInjectionMoldForResult("rollingMachineSetOfMoldedParts") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + materialsForPrecisionMold, Arrays.asList(new ItemStack[] { + InjectionMoldBlock.instance.getGypsumInjectionMoldForResult("polishingPucks") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + materialsForPrecisionMold, Arrays.asList(new ItemStack[] { InjectionMoldBlock.instance + .getGypsumInjectionMoldForResult("turboCompressorSetOfMoldedParts") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + materialsForPrecisionMold, Arrays.asList(new ItemStack[] { InjectionMoldBlock.instance + .getGypsumInjectionMoldForResult("extruderSetOfMoldedParts") }))); + // Precision molds recipe section end + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), + IHLUtils.getThisModItemStack("chisel"), IHLUtils.getThisModItemStack("needleFile") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10SteelHot") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("sawBladeSteel", 2) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), + IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze"), + IHLUtils.getThisModItemStack("needleFile") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10Steel"), + IHLUtils.getThisModItemStack("sawBladeSteelHardened"), new ItemStack(Items.stick) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hackSawSteel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("needleFile"), + IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("plateSteel") }), Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("blankSetOfFilesSteel", 4) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("viseSetOfMoldedPartsSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("viseSteel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("viseSteel"), IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("stickSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("diceM10x1Steel", 16) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel"), IHLUtils.getThisModItemStack("needleFile"), + IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10Steel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("tapM10x1Steel", 2) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened"), IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 16), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 12), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 16), + IHLUtils.getOreDictItemStackWithSize("plateSteel", 4), + IHLUtils.getOreDictItemStack("stickSteel"), new ItemStack(Items.leather), + new ItemStack(Items.string) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lathePart1"), + IHLUtils.getThisModItemStack("lathePart2") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened"), IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 16), + IHLUtils.getOreDictItemStack("plateSteel"), + IHLUtils.getThisModItemStack("extruderSetOfMoldedPartsSteel"), + IHLUtils.getThisModItemStack("meshGlass"), IHLUtils.getThisModItemStack("dustCarborundum"), + new ItemStack(Items.leather), new ItemStack(Items.string) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("extruder"), + IHLUtils.getThisModItemStack("vulcanizationExtrudingMold") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("chisel"), IHLUtils.getThisModItemStack("hammer") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10SteelHot") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened"), IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10Steel"), + IHLUtils.getThisModItemStackWithSize("nailSteel", 16), new ItemStack(Blocks.planks), + new ItemStack(Items.leather), new ItemStack(Items.string), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8), + IHLUtils.getOreDictItemStack("plateSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("coiler") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel"), IHLUtils.getThisModItemStack("hammer"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), + IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("barD10Steel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillSetOfMoldedPartsBronze"), + new ItemStack(Items.stick) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new RecipeInputOreDict[] { new RecipeInputOreDict("craftingToolFile") }), + Arrays.asList(new IRecipeInput[] { + new RecipeInputItemStack(IHLUtils.getThisModItemStack("boltM10x1Steel"), 16), + new RecipeInputOreDict("dustCarborundum"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("crucibleMixture")), + new RecipeInputOreDict("stickGraphite"), new RecipeInputOreDict("plateSteel"), + new RecipeInputOreDict("stickSteel", 4), + new RecipeInputItemStack( + IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 16)) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("wireMill") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lathePart1") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfPartsForLVElemotorSteel"), + IHLUtils.getThisModItemStack("ingotStearin"), IHLUtils.getUninsulatedWire("Copper", 4, 15), + new ItemStack(Items.paper), new ItemStack(Blocks.planks), + IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("electricMotorLVLEDC") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputItemStack(IHLUtils.getThisModItemStack("setOfPartsForLVElemotorSteel")), + new RecipeInputFluidContainer(FluidRegistry.getFluid("spruceresin"),1), + new RecipeInputWire("Copper", 4, 15), + new RecipeInputItemStack(new ItemStack(Items.paper)), + new RecipeInputItemStack(new ItemStack(Blocks.planks,1,OreDictionary.WILDCARD_VALUE)), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("linerIronGraphiteGreased"), 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("electricMotorLVLEDC")}))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteHot"), + IHLUtils.getThisModItemStack("muttonLard") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteGreased") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList( + new IRecipeInput[] { new RecipeInputOreDict("dustBrick", 7), + new RecipeInputOreDict("dustClay", 3), new RecipeInputOreDict("dustGraphite", 2), + new RecipeInputFluidContainer(FluidRegistry.WATER, 1) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("crucibleMixture", 12) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("crucibleMixture") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("crucible") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("viseSteel"), IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("stickSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 64) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), Ic2Items.bronzeAxe }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), new ItemStack(Items.leather), + new ItemStack(Items.stick, 8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("loom") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.iron_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), new ItemStack(Items.leather), + new ItemStack(Items.stick, 8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("loom") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.golden_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), new ItemStack(Items.leather), + new ItemStack(Items.stick, 8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("loom") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.diamond_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), new ItemStack(Items.leather), + new ItemStack(Items.stick, 8), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("loom") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), Ic2Items.bronzeAxe.copy() }), + Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), + new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("cannonBronze") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.iron_axe) }), + Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), + new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("cannonBronze") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.golden_axe) }), + Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), + new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("cannonBronze") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), new ItemStack(Items.diamond_axe) }), + Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("detonationSprayingMachineSetOfMoldedPartsBronze"), + new ItemStack(Blocks.planks), IHLUtils.getThisModItemStackWithSize("nailSteel", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("cannonBronze") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), lathingTool, + IHLUtils.getThisModItemStack("setOfFilesSteel"), IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("ingotHotSteel"), + IHLUtils.getThisModItemStack("foilRubber"), IHLUtils.getThisModItemStack("springSteel"), + IHLUtils.getThisModItemStack("barD10Steel"), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 6), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 6) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasReducerSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lathePart1") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), lathingTool }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("ingotHotSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("pistonCylinderSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lathePart1") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240), + new ItemStack(Items.stick) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("springSteel", 4) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10SteelHot", 2), + IHLUtils.getThisModItemStack("springSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("foilRubber"), + IHLUtils.getThisModItemStackWithSize("gasReducerSteel", 2), + IHLUtils.getThisModItemStack("gasJetSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 10), + IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel", 2), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 32), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 32), + IHLUtils.getThisModWireItemStackWithLength("pipeVulcanizedRubber", 16) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("tinSnipsSteel"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened"), lathingTool }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("pistonCylinderSteel"), + IHLUtils.getOreDictItemStackWithSize("plateSteel", 2), + IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), + IHLUtils.getThisModItemStack("foilRubber"), + IHLUtils.getThisModItemStackWithSize("stickSteel", 2), + IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 4), + IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel", 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("cryogenicDistiller") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lathePart1") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("meshGlass"), + IHLUtils.getThisModItemStack("dustCarborundum"), + IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), + IHLUtils.getThisModItemStack("foilRubber"), + IHLUtils.getThisModItemStack("highPressureVesselSteel"), + IHLUtils.getOreDictItemStack("stickSteel"), IHLUtils.getOreDictItemStack("plateSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("chemicalReactor") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), Ic2Items.bronzeAxe }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10SteelHot", 7), + IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), + IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("woodenRollingMachinePart1"), + IHLUtils.getThisModItemStack("woodenRollingMachinePart2") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.iron_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10SteelHot", 7), + IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), + IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("woodenRollingMachinePart1"), + IHLUtils.getThisModItemStack("woodenRollingMachinePart2") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.golden_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10SteelHot", 7), + IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), + IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("woodenRollingMachinePart1"), + IHLUtils.getThisModItemStack("woodenRollingMachinePart2") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("diceM10x1SteelHardened"), new ItemStack(Items.diamond_axe) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("barD10SteelHot", 7), + IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Items.leather), + IHLUtils.getThisModItemStackWithSize("nailSteel", 8), new ItemStack(Blocks.log) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("woodenRollingMachinePart1"), + IHLUtils.getThisModItemStack("woodenRollingMachinePart2") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("plateSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("fiberGlassDieSteel") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("plateSteel") }), + Arrays.asList(new ItemStack[] { + IHLUtils.getItemStackWithTag("setOfDies1_5sqmm", "transverseSection", 240) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("plateSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfDies1_5sqmm") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8), + IHLUtils.getOreDictItemStackWithSize("plateSteel", 4), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStack("rollingMachineSetOfMoldedPartsSteel"), + IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("rollingMachinePart1") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8), + IHLUtils.getOreDictItemStackWithSize("plateSteel", 4), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("rollingMachinePart2") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("electrolysisBathRawPorcelain") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("ovenRawPorcelain") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("precipitatorCondenserRawPorcelain") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("chimneyKneeRawPorcelain") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gaedesPumpBarrelRawPorcelain") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ringRawPorcelain", 4) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("lampHolderRawPorcelain", 4) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputFluidContainer(FluidRegistry.WATER, 1), + new RecipeInputOreDict("dustPorcelain") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("insulatorRawPorcelain", 4) }))); + // Raw porcelain recipes section end + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("tinSnipsSteel"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("foilSteel", 4), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), + IHLUtils.getThisModItemStack("foilRubber"), IHLUtils.getOreDictItemStack("plateSteel"), + IHLUtils.getThisModItemStack("turboCompressorSetOfMoldedPartsBronze"), + IHLUtils.getThisModItemStack("highPressureVesselSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("fluidizedBedReactor") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("tinSnipsSteel"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new IRecipeInput[] { + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("pistonCylinderSteel", 2)), + new RecipeInputOreDict("foilSteel"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("pipelineAccessoriesSteel")), + new RecipeInputOreDict("foilRubber"), new RecipeInputOreDict("plateSteel"), + new RecipeInputItemStack( + IHLUtils.getThisModItemStackWithSize("highPressureVesselSteel", 2)), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("electrolysisBathPorcelain")), + new RecipeInputOreDict("stickGraphite", 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("labElectrolyzer") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("glassBlowingTubeSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilSteel"), + new RecipeInputOreDict("foilTungsten"), new RecipeInputOreDict("dustQuicklime"), + new RecipeInputOreDict("dustGlass"), new RecipeInputOreDict("stickGraphite"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("gu-81m", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation"), + IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStack("barD10Steel"), new ItemStack(Items.stick) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("glassBlowingTubeSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilSteel"), + new RecipeInputOreDict("plateSteel"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel"), 4), + new RecipeInputOreDict("foilRubber"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("gaedesPumpBarrelPorcelain")), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"), 1) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { + new RecipeInputFluidContainer(FluidRegistry.getFluid("mineraloil"), 1), + new RecipeInputOreDict("foilMica"), new RecipeInputOreDict("foilCopper"), + new RecipeInputOreDict("foilSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("highVoltageCapacitor") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { + new RecipeInputFluidContainer(FluidRegistry.getFluid("mineraloil"), 1), + new RecipeInputOreDict("foilMica"), new RecipeInputOreDict("foilGold"), + new RecipeInputOreDict("foilSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("highVoltageCapacitor") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ringPorcelain", 64), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 6), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 6), + IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("fractionatorSection") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("stickSteel", 4), + IHLUtils.getOreDictItemStackWithSize("plateSteel", 2), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 6), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 6), + IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("fractionatorBottom") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 6), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 6), + IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("fractionatorCover") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("drillSteelHardened") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 6), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 6), + IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("refluxCondenser") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("dustFerrite"), + IHLUtils.getThisModItemStack("ingotStearin") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ringRawFerrite", 4) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("glassBlowingTubeSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilSteel"), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"), 1), + new RecipeInputOreDict("stickBoronCarbide"), new RecipeInputOreDict("dustGlass"), + new RecipeInputOreDict("stickGraphite"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ignitron", 6) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation"), + IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("glassBlowingTubeSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilSteel"), + new RecipeInputOreDict("foilTungsten"), new RecipeInputOreDict("dustQuicklime"), + new RecipeInputOreDict("dustGlass"), new RecipeInputOreDict("stickGraphite"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("barD10Steel")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("valveTube1C21P", 6) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation"), + IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("glassBlowingTubeSteel") }), + Arrays.asList( + new IRecipeInput[] { new RecipeInputOreDict("foilGold"), new RecipeInputOreDict("foilMica"), + new RecipeInputFluidContainer(FluidRegistry.getFluid("cablingcolophony"), 1), + new RecipeInputOreDict("dustGlass"), new RecipeInputOreDict("foilSteel"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("springSteel")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("vacuumSwitch", 16) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation"), + IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { + new RecipeInputItemStack(IHLUtils.getThisModItemStack("insulatorPorcelain"), 8), + new RecipeInputOreDict("plateMica", 2), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("highVoltageCapacitor"), 3), + new RecipeInputFluidContainer(FluidRegistry.getFluid("cablingcolophony"), 1), + new RecipeInputOreDict("dustSolderingAlloy"), new RecipeInputOreDict("foilMica"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("gu-81m"), 4), + new RecipeInputOreDict("foilSteel", 8), + new RecipeInputWire(IHLUtils.getUninsulatedWire("Copper", 288, 15)), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mineraloil"), 1000), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("ignitron"), 6), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("valveTube1C21P"), 6) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("rectifierTransformerUnit") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilCopper"), + new RecipeInputFluidContainer(FluidRegistry.getFluid("cablingcolophony"), 1), + new RecipeInputOreDict("dustSolderingAlloy"), new RecipeInputOreDict("ringFerrite", 8), + new RecipeInputOreDict("foilMica") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("hallSensor", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("insulatorPorcelain", 4), + IHLUtils.getUninsulatedWire("Copper", 4, 15), IHLUtils.getThisModItemStack("foilMica"), + IHLUtils.getThisModItemStack("leadAcidBattery"), + IHLUtils.getThisModItemStack("dustSolderingAlloy"), + IHLUtils.getThisModItemStack("vacuumSwitch"), + IHLUtils.getThisModItemStackWithSize("hallSensor", 2), + IHLUtils.getThisModItemStackWithSize("valveTube1C21P", 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("batterySwitchUnit") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilGold"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("foilRubberWithSulfur")), + new RecipeInputOreDict("foilLead"), + new RecipeInputFluidContainer(FluidRegistry.getFluid("sulfuricacid"), 1), + new RecipeInputFluidContainer(FluidRegistry.getFluid("ic2distilledwater"), 1), + new RecipeInputOreDict("dustSolderingAlloy"), new RecipeInputOreDict("dustLeadPlumbate"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("batteryCellsEbonite"), 8) }), + Arrays.asList( + new ItemStack[] { BatteryItem.getFullyChargedItemStackWithSize("leadAcidBattery", 8) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("foilSteel"), + new RecipeInputOreDict("plateGraphite", 5), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("barD10Steel", 4)), + new RecipeInputOreDict("stickGraphite"), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("dustCoalElectrodePremix")), + new RecipeInputOreDict("foilRubber") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("electrolysisBath") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dustTin"), + new RecipeInputItemStack(new ItemStack(Blocks.glass_pane), 16), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"),1), + new RecipeInputFluidContainer(FluidRegistry.getFluid("turpentine"), 1), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("fabric")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("mirror", 16) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dustTin"), + new RecipeInputItemStack(new ItemStack(Blocks.glass_pane), 16), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"), 1), + new RecipeInputFluidContainer(FluidRegistry.getFluid("turpentine"), 1), + new RecipeInputItemStack(new ItemStack(Blocks.wool)) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("mirror", 16), }))); + if (FluidRegistry.isFluidRegistered("ethanol")) { + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dustTin"), + new RecipeInputItemStack(new ItemStack(Blocks.glass_pane), 16), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"), 1), + new RecipeInputFluidContainer(FluidRegistry.getFluid("ethanol"), 1), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("fabric")) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("mirror", 16) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dustTin"), + new RecipeInputItemStack(new ItemStack(Blocks.glass_pane), 16), + new RecipeInputFluidContainer(FluidRegistry.getFluid("mercury"), 1), + new RecipeInputFluidContainer(FluidRegistry.getFluid("ethanol"), 1), + new RecipeInputItemStack(new ItemStack(Blocks.wool)) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("mirror", 16) }))); + } + IronWorkbenchTileEntity.addRecipe( + new IronWorkbenchRecipe( + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("glassBlowingTubeSteel"), + IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("foilTungsten"), + IHLUtils.getThisModItemStack("foilCopper"), + IHLUtils.getThisModItemStackWithSize("lampHolderPorcelain", 16), + IHLUtils.getOreDictItemStack("dustGlass") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("lightBulb", 16) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation"), + IHLUtils.getThisModItemStack("gaedesMercuryRotaryPump") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hammer"), + IHLUtils.getThisModItemStack("tinSnipsSteel"), IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("viseSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("lightBulb"), + IHLUtils.getThisModItemStack("foilSteel"), + IHLUtils.getInsulatedWire("Copper", 1, 15, "Rubber", 100), + IHLUtils.getOreDictItemStack("plateSteel"), new ItemStack(Blocks.glass_pane) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("spotlight") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[] { + IHLUtils.getThisModItemStack("hammer"), IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), IHLUtils.getThisModItemStack("handDrillBronze"), + IHLUtils.getThisModItemStack("tapM10x1SteelHardened"), + IHLUtils.getThisModItemStack("hackSawSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("plateSteel", 8), + IHLUtils.getThisModItemStackWithSize("incisorSteelDiamondCoated", 8), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 16), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 4), + IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), + IHLUtils.getThisModItemStack("foilRubber") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("advancedShieldAssemblyUnitBlock") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel"), + IHLUtils.getThisModItemStack("hackSawSteel"), IHLUtils.getThisModItemStack("viseSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("plateSteel", 2), + IHLUtils.getOreDictItemStack("foilSteel"), + IHLUtils.getThisModItemStackWithSize("boltM10x1Steel", 8), + IHLUtils.getThisModItemStackWithSize("nutM10x1Steel", 8), + IHLUtils.getThisModItemStackWithSize("barD10Steel", 16), + IHLUtils.getThisModItemStack("pipelineAccessoriesSteel"), + IHLUtils.getThisModItemStack("extruderSetOfMoldedPartsSteel"), + IHLUtils.getThisModItemStackWithSize("linerIronGraphiteGreased", 4), + IHLUtils.getThisModItemStack("turboCompressorSetOfMoldedPartsBronze"), + IHLUtils.getThisModItemStack("foilRubber") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hydrotransportPulpRegenerator") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList( + new IRecipeInput[] { RecipeInputs.cutter, RecipeInputs.saw, RecipeInputs.vise, RecipeInputs.file }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("plateSteel", 2), + new RecipeInputOreDict("foilSteel", 2), RecipeInputs.get("boltM10x1Steel", 8), + RecipeInputs.get("nutM10x1Steel", 8), RecipeInputs.get("barD10Steel", 16), + RecipeInputs.get("rollingMachineSetOfMoldedPartsSteel"), + RecipeInputs.get("linerIronGraphiteGreased", 4), + RecipeInputs.get("turboCompressorSetOfMoldedPartsBronze"), + RecipeInputs.get("foilRubber") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("paperMachine") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new IRecipeInput[] { RecipeInputs.cutter, RecipeInputs.saw, RecipeInputs.hammer, + RecipeInputs.file }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("plateSteel", 2), + new RecipeInputOreDict("foilSteel"), new RecipeInputItemStack(Ic2Items.elemotor), + RecipeInputs.get("boltM10x1Steel", 8), RecipeInputs.get("nutM10x1Steel", 8), + RecipeInputs.get("linerIronGraphiteGreased", 4), + RecipeInputs.get("turboCompressorSetOfMoldedPartsBronze", 2) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("blowerBlock") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dyeRed"), + new RecipeInputWire("Copper", 128, 15, "Rubber", 100, 10000) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModWireItemStackWithLength("EightPinDataCable", 16) }))); + IronWorkbenchTileEntity + .addRecipe(new IronWorkbenchRecipe(Arrays.asList(new IRecipeInput[] { RecipeInputs.cutter }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("plateSteel", 2), + new RecipeInputOreDict("foilSteel"), new RecipeInputOreDict("foilMica"), + new RecipeInputOreDict("foilCopper"), + new RecipeInputWire("Copper", 8, 15, "Rubber", 100, 10000) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("redstoneSignalConverter") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("dustIronOxide", 8), + new RecipeInputOreDict("dustBauxite"), new RecipeInputOreDict("dustPotassiumOxide"), }), + Arrays.asList( + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("dustIronOxideCatalystMix", 10) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("hackSawSteel"), + IHLUtils.getThisModItemStack("viseSteel"), IHLUtils.getThisModItemStack("setOfFilesSteel"), + IHLUtils.getThisModItemStack("drillSteelHardened"), + IHLUtils.getThisModItemStack("handDrillBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getOreDictItemStack("plateSteel") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStackWithSize("incisorSteel", 4) }))); + if (IHLMod.isGregTechModLoaded && IHLMod.isGT_API_Version_5) { + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 15), + IHLUtils.getOreDictItemStack("dustRawRubber") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 15, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240), + IHLUtils.getOreDictItemStack("dustRawRubber") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 240, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 15), + IHLUtils.getOreDictItemStack("dustRawRubber") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 15, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240), + IHLUtils.getOreDictItemStack("dustRawRubber") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 240, "RawRubber", 100) }))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,15,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,15),IHLUtils.getOreDictItemStack("dustRawRubber")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,240,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,240),IHLUtils.getOreDictItemStack("dustRawRubber")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,15,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,15),IHLUtils.getOreDictItemStack("dustRawRubber")}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,240,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,240),IHLUtils.getOreDictItemStack("dustRawRubber")}))); - } - else - { - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,15),Ic2Items.rubber}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Copper", 1,15,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,240),Ic2Items.rubber}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Copper", 1,240,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,15),Ic2Items.rubber}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Steel", 1,15,"RawRubber",100)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null,Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,240),Ic2Items.rubber}),Arrays.asList(new ItemStack[] {IHLUtils.getInsulatedWire("Steel", 1,240,"RawRubber",100)}))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 15, "RawRubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 15), + IHLUtils.getOreDictItemStack("dustRawRubber") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 240, "RawRubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240), + IHLUtils.getOreDictItemStack("dustRawRubber") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 15, "RawRubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 15), + IHLUtils.getOreDictItemStack("dustRawRubber") }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 240, "RawRubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240), + IHLUtils.getOreDictItemStack("dustRawRubber") }))); + } else { + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 15), Ic2Items.rubber }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 15, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240), Ic2Items.rubber }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 240, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 15), Ic2Items.rubber }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 15, "RawRubber", 100) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240), Ic2Items.rubber }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 240, "RawRubber", 100) }))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,15,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,15),Ic2Items.rubber}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,240,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,240),Ic2Items.rubber}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,15,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,15),Ic2Items.rubber}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,240,"RawRubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,240),Ic2Items.rubber}))); - } - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,15,"Rubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,15)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Copper", 1,240,"Rubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Copper", 1,240)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,15,"Rubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,15)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList(new ItemStack[]{IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze")}),Arrays.asList(new ItemStack[]{IHLUtils.getInsulatedWire("Steel", 1,240,"Rubber",100)}),Arrays.asList(new ItemStack[]{IHLUtils.getUninsulatedWire("Steel", 1,240)}))); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(Arrays.asList( - new ItemStack[] {IHLUtils.getThisModItemStack("tinSnipsSteel")}), - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("plateGraphite",2), - new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("highVoltageCapacitor",3),3), - new RecipeInputFluidContainer(IHLFluid.IHLFluidType.MineralOil.fluid, 144), - new RecipeInputOreDict("dustSolderingAlloy"), - new RecipeInputOreDict("foilMica"), - new RecipeInputWire(IHLUtils.getUninsulatedWire("copper", 5, 15)), - new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("gu-81m",4)), - new RecipeInputOreDict("foilCopper"), - new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("valveTube1C21P",6))}), - Arrays.asList(new ItemStack[]{ - IHLUtils.getThisModItemStack("vacuumInductionMeltingFurnace") - }), - Arrays.asList(new ItemStack[] { - IHLUtils.getThisModItemStack("gasWeldingStation")}))); - ItemStack detonator = IHLUtils.getItemStackWithTag("detonator","detonator_delay",5); - detonator.stackSize=16; - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( - null, - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("platePaper",2), - new RecipeInputItemStack(new ItemStack(Items.string)), - new RecipeInputOreDict("dustGunpowder",1), - new RecipeInputOreDict("dustPentaerythritolTetranitrate",1), - new RecipeInputOreDict("ingotTarPitch",1) - }), - Arrays.asList(new ItemStack[]{detonator}), - null - )); - IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( - null, - Arrays.asList(new IRecipeInput[]{ - new RecipeInputOreDict("platePaper",2), - new RecipeInputOreDict("dustPentaerythritolTetranitrate",8), - new RecipeInputOreDict("ingotTarPitch",1), - new RecipeInputDetonator(detonator) - }), - Arrays.asList(new ItemStack[]{ - IHLUtils.getItemStackWithTag("ihlExplosive","explosionPower",1000) - }),null - )); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustSiliconDioxide",2), new RecipeInputOreDict("dustCoal",4), "dustCarborundum"); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustQuicklime"), new RecipeInputOreDict("dustCoal",4), "dustCalciumCarbide"); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("stickCoal"), new RecipeInputOreDict("dustCoal"), "stickGraphite"); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustTungsten"), new RecipeInputOreDict("dustCoal"), "ingotTungsten"); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustBoricAcid",4), new RecipeInputOreDict("dustCoal",8), "dustBoronCarbide"); - AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("plateCoal"), new RecipeInputOreDict("dustCoal",1), "plateGraphite"); - GoldChimneyKneeTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("ic2steam", 1),IHLUtils.getFluidStackWithSize("sulfuricanhydride", 1)}),null), IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 1)); - if(FluidRegistry.isFluidRegistered("steam"))GoldChimneyKneeTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("steam", 1),IHLUtils.getFluidStackWithSize("sulfuricanhydride", 1)}),null), IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 1)); - GoldChimneyKneeTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("ic2superheatedsteam", 15),IHLUtils.getFluidStackWithSize("sulfuricanhydride", 4)}),null), IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 4)); - LeadOvenTileEntity.addRecipe(new UniversalRecipeInput(null,(new ItemStack[] {IHLUtils.getOreDictItemStack("dustSulfur"), IHLUtils.getOreDictItemStack("dustSaltpeter")})), IHLUtils.getFluidStackWithSize("sulfuricanhydride", 23000)); - LeadOvenTileEntity.addRecipe(new UniversalRecipeInput(null,(new ItemStack[] {IHLUtils.getOreDictItemStack("crushedPurifiedCinnabar")})), IHLUtils.getFluidStackWithSize("vapour.mercury", 3600)); - LeadOvenTileEntity.addRecipe(IHLUtils.getThisModItemStack("dustStibnite"), IHLUtils.getThisModItemStack("dustAntimonyOxide")); - LeadOvenTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustSodiumHydrogenSulfate",2), IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 20000), IHLUtils.getOreDictItemStack("dustSodiumSulfate")); - LeadOvenTileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("dustSodiumZeoliteCoked",2), IHLUtils.getThisModItemStack("dustSodiumZeolite")); - ImpregnatingMachineTileEntity.addChemicalRecipe(new UniversalRecipeInput((new FluidStack[] {new FluidStack(FluidRegistry.WATER, 1500)}), (new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustQuicklime", 1)})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("limemilk", 2500)}),null,20)); - ImpregnatingMachineTileEntity.addChemicalRecipe(new UniversalRecipeInput((new FluidStack[] {new FluidStack(FluidRegistry.WATER, 130),IHLUtils.getFluidStackWithSize("limemilk", 142)}), (new ItemStack[] {IHLUtils.getThisModItemStackWithSize("muttonLard", 6)})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("glyceryl", 130)}),(new ItemStack[] {IHLUtils.getThisModItemStackWithSize("ingotCalciumSoap", 5)}),200)); - ImpregnatingMachineTileEntity.addChemicalRecipe(new UniversalRecipeInput((new FluidStack[] {new FluidStack(FluidRegistry.WATER, 600),IHLUtils.getFluidStackWithSize("sulfuricacid", 284)}), (new ItemStack[] {IHLUtils.getThisModItemStackWithSize("ingotCalciumSoap", 6)})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("oleicacid", 280)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getThisModItemStackWithSize("ingotStearin", 4)),new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustGypsum"),0.48f)}),200)); - ImpregnatingMachineTileEntity.addChemicalRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("limemilk", 1000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustTrona")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 1000)}),(new ItemStack[] {IHLUtils.getOreDictItemStack("dustCalcite")}),200)); - DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("blankNeedleFileSteel"), IHLUtils.getThisModItemStack("needleFile")); - DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("blankSetOfFilesSteel"), IHLUtils.getThisModItemStack("setOfFilesSteel")); - DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("incisorSteel"), IHLUtils.getThisModItemStack("incisorSteelDiamondCoated")); - ItemStack drill = Ic2Items.miningDrill.copy(); - drill.setItemDamage(OreDictionary.WILDCARD_VALUE); - DetonationSprayingMachineTileEntity.addRecipe(drill, Ic2Items.diamondDrill.copy()); - MuffleFurnanceTileEntity.addRecipe(Ic2Items.plateadviron.copy(), IHLUtils.getThisModItemStack("plateHotSteel")); - MuffleFurnanceTileEntity.addRecipe(Ic2Items.advIronIngot.copy(), IHLUtils.getOreDictItemStack("ingotHotSteel")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateTungsten"),IHLUtils.getThisModItemStack("plateHotTungsten")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("gaedesPumpBarrelRawPorcelain"),IHLUtils.getThisModItemStack("gaedesPumpBarrelPorcelain")); - MuffleFurnanceTileEntity.addRecipe(new ItemStack(IHLMod.crucible,0, OreDictionary.WILDCARD_VALUE), new ItemStack(IHLMod.crucible,0,1)); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("injectionMold",0), IHLUtils.getThisModItemStackWithSize("injectionMold",0)); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("sawBladeSteel"),IHLUtils.getThisModItemStack("sawBladeSteelHot")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("barD10Steel"),IHLUtils.getThisModItemStack("barD10SteelHot")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("linerIronGraphite"),IHLUtils.getThisModItemStack("linerIronGraphiteHot")); - MuffleFurnanceTileEntity.addRecipe(new UniversalRecipeInput(null, (new ItemStack[] {IHLUtils.getOreDictItemStack("dustIronOxide"), IHLUtils.getOreDictItemStack("dustLithiumOxide")})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustFerrite",2)}),200)); - MuffleFurnanceTileEntity.addRecipe(new UniversalRecipeInput(null, (new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustSiliconDioxide",3), IHLUtils.getOreDictItemStackWithSize("dustMagnesium",2)})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getOreDictItemStack("dustSilicon"), IHLUtils.getOreDictItemStackWithSize("dustMagnesiumOxide",4)}),200)); - MuffleFurnanceTileEntity.addRecipe(new UniversalRecipeInput(null, (new ItemStack[] {IHLUtils.getOreDictItemStack("dustBauxite"), IHLUtils.getOreDictItemStack("dustSodiumHydroxide")})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getOreDictItemStack("dustSodiumAluminate")}),200)); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("drillSteel"),IHLUtils.getThisModItemStack("drillSteelHot")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("tapM10x1Steel"),IHLUtils.getThisModItemStack("tapM10x1SteelHot")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("diceM10x1Steel"),IHLUtils.getThisModItemStack("diceM10x1SteelHot")); - LoomTileEntity.addRecipe(IHLUtils.getThisModWireItemStackWithLength("fiberGlass", 1024), IHLUtils.getThisModItemStack("meshGlass")); - LoomTileEntity.addRecipe(new ItemStack(Items.string,4), IHLUtils.getThisModItemStack("fabric")); - RollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStack("plateHotSteel"), IHLUtils.getOreDictItemStackWithSize("foilSteel",4)); - RollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStack("plateHotTungsten"), IHLUtils.getOreDictItemStackWithSize("foilTungsten",4)); - RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateGold"), IHLUtils.getOreDictItemStackWithSize("foilGold",4)); - RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateCopper"), IHLUtils.getOreDictItemStackWithSize("foilCopper",4)); - RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateLead"), IHLUtils.getOreDictItemStackWithSize("foilLead",4)); - ImpregnatingMachineTileEntity.addQuenchingRecipe("diceM10x1SteelHot","diceM10x1SteelHardened"); - ImpregnatingMachineTileEntity.addQuenchingRecipe("tapM10x1SteelHot","tapM10x1SteelHardened"); - ImpregnatingMachineTileEntity.addQuenchingRecipe("drillSteelHot","drillSteelHardened"); - ImpregnatingMachineTileEntity.addQuenchingRecipe("sawBladeSteelHot","sawBladeSteelHardened"); - ImpregnatingMachineTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("oleicacid", 1)}), (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteHot")})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteGreased")}),2)); - ImpregnatingMachineTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("seedoil", 1)}), (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteHot")})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteGreased")}),2)); - ImpregnatingMachineTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("mineraloil", 1)}), (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteHot")})), new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getThisModItemStack("linerIronGraphiteGreased")}),2)); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("foilRubberWithSulfur"),IHLUtils.getThisModItemStack("foilRubber")); - MuffleFurnanceTileEntity.addRecipe(new UniversalRecipeInput(null, (new IRecipeInput[] {new RecipeInputItemStack(IHLUtils.getThisModItemStack("pipeRubberWithSulfur"))})),new UniversalRecipeOutput(null, (new ItemStack[] {IHLUtils.getThisModItemStack("pipeVulcanizedRubber")}), 20)); - GasWeldingStationTileEntity.addGasRecipe(IHLUtils.getOreDictItemStack("dustCalciumCarbide"),IHLUtils.getFluidStackWithSize("water", 666), IHLUtils.getFluidStackWithSize("acetylene", 1333), IHLUtils.getFluidStackWithSize("limemilk", 333)); - CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("air", 1000), IHLUtils.getFluidStackWithSize("nitrogen", 781), IHLUtils.getFluidStackWithSize("oxygen", 209), false); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 500)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustSiliconDioxide")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("liquidglass", 500)}),null,200)); - PrecipitatorCondenserTileEntity.addRecipe("vapour.sulfuricacid", "sulfuricacid", 50); - PrecipitatorCondenserTileEntity.addRecipe("vapour.mercury", "mercury", 50); - PrecipitatorCondenserTileEntity.addRecipe("ic2steam", "ic2distilledwater", 100); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("glyceryl", 50),IHLUtils.getFluidStackWithSize("spruceresin", 1000)}),null), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("cablingcolophony", 600)}),null,200,true)); - CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("spruceresin", 1000), IHLUtils.getFluidStackWithSize("ic2distilledwater", 150), IHLUtils.getFluidStackWithSize("turpentine", 300), true); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("fueloil", 2000)}),null), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.tarpitch", 144)}),null,200,true)); - CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("fueloil", 2000), IHLUtils.getFluidStackWithSize("mineraloil", 1000), null, true); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 4000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("crushedPurifiedGyubnera")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumtungstate", 4000)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyManganeseOxide"),3.75f),new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyIronOxide"),9f/12f)}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("sulfuricacid", 1750)}), (new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustRockSalt",1)})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("hydrogenchloride", 1000)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPotassiumSulphate"),1.75f)}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("sulfuricacid", 3500)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustSalt")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("hydrogenchloride", 1000)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustSodiumHydrogenSulfate"),3.5f)}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("sulfuricacid", 7000/9),new FluidStack(FluidRegistry.WATER,6000/9+1000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustDatolite")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("boricacid", 1777)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustGypsum"),12f/9f),new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinySiliconDioxide"),3f)}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("limemilk", 1667),IHLUtils.getFluidStackWithSize("hydrogenchloride", 1334)}), null), new UniversalRecipeOutput(null,(new ItemStack[] {IHLUtils.getOreDictItemStack("dustCalciumChloride")}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumtungstate", 6667)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustCalciumChloride")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("saltwater", 6000)}),(new ItemStack[] {IHLUtils.getOreDictItemStack("dustCalciumTungstate")}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 2000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustWood"),IHLUtils.getOreDictItemStack("dustSodiumSulfide")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("pulp.cellulose", 1500),IHLUtils.getFluidStackWithSize("ic2biomass", 500)}),null,200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("cablingcolophony", 50),new FluidStack(FluidRegistry.WATER,2000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustMica")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("pulp.mica", 2000)}),null,200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("hydrogenchloride", 500),new FluidStack(FluidRegistry.WATER,7500)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustMagnesiumOxide")})), new UniversalRecipeOutput(null,(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustBischofite"),8.75f)}),200)); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("liquidglass", 1000),new FluidStack(FluidRegistry.WATER,2000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustSodiumAluminate")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("pulp.sodiumzeolite", 4000)}),null,200)); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("saltwater", 4000), IHLUtils.getOreDictItemStack("dustSalt")); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("boricacid", 2288), IHLUtils.getOreDictItemStack("dustBoricAcid")); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 2000), IHLUtils.getOreDictItemStack("dustSodiumHydroxide")); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.sodiumzeolite", 4000), IHLUtils.getOreDictItemStack("dustSodiumZeolite")); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.lithiumchloride", 4000), IHLUtils.getOreDictItemStack("dustLithiumChloride")); - EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.calciumchloride", 4000), IHLUtils.getOreDictItemStack("dustCalciumChloride")); - ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("water", 2000),IHLUtils.getFluidStackWithSize("hydrogenchloride", 667)}), (new IRecipeInput[] {new RecipeInputOreDict("dustCalciumTungstate")})), new UniversalRecipeOutput((new FluidStack [] {IHLUtils.getFluidStackWithSize("solution.calciumchloride", 2000)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTungsticAcid"),1.16f)}),200)); - if(IHLUtils.hasOreDictionaryEntry("dustTungstate"))ChemicalReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("water", 1000),IHLUtils.getFluidStackWithSize("hydrogenchloride",140)}), (new IRecipeInput[] {new RecipeInputOreDict("dustTungstate")})), new UniversalRecipeOutput((new FluidStack [] {IHLUtils.getFluidStackWithSize("solution.lithiumchloride", 560)}),(new RecipeOutputItemStack[] {new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTungsticAcid"),1.0f)}),200)); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustTungsticAcid",2), IHLUtils.getOreDictItemStack("dustTungstenOxide"),1.14f); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("electrolysisBathRawPorcelain"), IHLUtils.getThisModItemStack("electrolysisBathPorcelain")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ovenRawPorcelain"), IHLUtils.getThisModItemStack("leadOven")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("precipitatorCondenserRawPorcelain"), IHLUtils.getThisModItemStack("goldPrecipitatorCondenser")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("chimneyKneeRawPorcelain"), IHLUtils.getThisModItemStack("goldChimneyKnee")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ringRawPorcelain"), IHLUtils.getThisModItemStack("ringPorcelain")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ringRawFerrite"), IHLUtils.getThisModItemStack("ringFerrite")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("insulatorRawPorcelain"), IHLUtils.getThisModItemStack("insulatorPorcelain")); - MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("lampHolderRawPorcelain"), IHLUtils.getThisModItemStack("lampHolderPorcelain")); - LabElectrolyzerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("water", 300), IHLUtils.getFluidStackWithSize("hydrogen", 200), IHLUtils.getFluidStackWithSize("oxygen", 100), null); - LabElectrolyzerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("saltwater", 1000), IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 875), IHLUtils.getFluidStackWithSize("chlorine", 100), null); - if(IHLUtils.hasOreDictionaryEntry("dustSilicon"))FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1333), IHLUtils.getOreDictItemStackWithSize("dustSiliconDioxide",1), IHLUtils.getFluidStackWithSize("ic2distilledwater", 2000), IHLUtils.getOreDictItemStackWithSize("dustTinySilicon",3)); - if(IHLUtils.hasOreDictionaryEntry("dustManganese"))FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 2000), IHLUtils.getOreDictItemStackWithSize("dustManganeseOxide",2), IHLUtils.getFluidStackWithSize("ic2distilledwater", 3000), IHLUtils.getOreDictItemStack("dustManganese")); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1200), IHLUtils.getOreDictItemStack("dustIronOxide"), IHLUtils.getFluidStackWithSize("ic2distilledwater", 1800), new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyIron"),3.6f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1500), IHLUtils.getOreDictItemStack("dustTungstenOxide"), IHLUtils.getFluidStackWithSize("ic2distilledwater", 2250), new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyTungsten"),2.25f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 4000), IHLUtils.getOreDictItemStackWithSize("dustSodiumSulfate",3), IHLUtils.getFluidStackWithSize("ic2distilledwater", 6000), IHLUtils.getOreDictItemStack("dustSodiumSulfide")); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1200), IHLUtils.getOreDictItemStack("dustAntimonyOxide"), IHLUtils.getFluidStackWithSize("ic2distilledwater", 1800), new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyAntimony"),3.6f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 1500), IHLUtils.getOreDictItemStack("dustIron"), null, new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustIronOxide"),2.5f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 500), IHLUtils.getOreDictItemStack("dustLithium"), null, new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustLithiumOxide"),1.5f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 1333), IHLUtils.getOreDictItemStack("dustLead"), null, new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustLeadPlumbate"),2.333f)); - FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("chlorine", 2000), IHLUtils.getOreDictItemStack("dustCarborundum"), IHLUtils.getFluidStackWithSize("silicontetrachloride", 2500), new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustCoal"),0.5f)); - FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack [] {IHLUtils.getFluidStackWithSize("hydrogen", 445),IHLUtils.getFluidStackWithSize("silicontetrachloride", 1667)}),(new ItemStack [] {IHLUtils.getOreDictItemStackWithSize("dustIridium", 0),IHLUtils.getOreDictItemStack("dustTinySilicon")})), new UniversalRecipeOutput((new FluidStack [] {IHLUtils.getFluidStackWithSize("trichlorosilane", 2112)}),null,200)); - FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack [] {IHLUtils.getFluidStackWithSize("fueloil", 6000)}), (new ItemStack [] {IHLUtils.getOreDictItemStack("dustSodiumZeolite")})), new UniversalRecipeOutput((new FluidStack [] {IHLUtils.getFluidStackWithSize("fuel", 4500),IHLUtils.getFluidStackWithSize("crackinggas", 500)}),(new RecipeOutputItemStack [] { new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustSodiumZeoliteCoked"),1.9f)}), 2000)); - FluidizedBedReactorTileEntity.addRecipe( - new UniversalRecipeInput(null, - (new IRecipeInput [] {new RecipeInputOreDict("dustWood")})), - new UniversalRecipeOutput((new FluidStack [] { - IHLUtils.getFluidStackWithSize("molten.tarpitch", 8), - IHLUtils.getFluidStackWithSize("tarwater", 39), - IHLUtils.getFluidStackWithSize("crackinggas", 31)}), - (new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustCoal"),0.25f)}), 2000)); - ChemicalReactorTileEntity.addRecipe( - new UniversalRecipeInput((new FluidStack[] { - IHLUtils.getFluidStackWithSize("tarwater", 50)}), - (new IRecipeInput[] { - new RecipeInputOreDict("dustQuicklime")})), - new UniversalRecipeOutput((new FluidStack[] { - IHLUtils.getFluidStackWithSize("water", 10)}), - (new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustCalciumAcetate"),1f)}),200,true)); - CryogenicDistillerTileEntity.addRecipe( - IHLUtils.getFluidStackWithSize("tarwater", 50), - IHLUtils.getFluidStackWithSize("ic2distilledwater", 30), - IHLUtils.getFluidStackWithSize("methanol", 10), true); - FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("methanol", 200),IHLUtils.getFluidStackWithSize("oxygen", 100)}, - new IRecipeInput [] {new RecipeInputOreDict("dustSilver", 0)}), - new UniversalRecipeOutput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("formaldehyde", 300)},null,200)); - FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("chlorine", 110), - IHLUtils.getFluidStackWithSize("mercury", 50)}, - null), - new UniversalRecipeOutput( - null,new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustMercuryChloride"),1f)},200)); - FluidizedBedReactorTileEntity.addRecipe( - new UniversalRecipeInput( - new FluidStack [] { - IHLUtils.getFluidStackWithSize("acetylene", 100), - IHLUtils.getFluidStackWithSize("ic2distilledwater", 100), - IHLUtils.getFluidStackWithSize("hydrogenchloride", 2)}, - new IRecipeInput [] {new RecipeInputOreDict("dustMercuryChloride", 0)}), - new UniversalRecipeOutput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("acetaldehyde", 200)},null,200)); - ChemicalReactorTileEntity.addRecipe( - new UniversalRecipeInput(new FluidStack[] { - IHLUtils.getFluidStackWithSize("acetaldehyde", 100), - IHLUtils.getFluidStackWithSize("formaldehyde", 400), - IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 100)}, - null), - new UniversalRecipeOutput(null, - new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustSodiumFormate"),1f), - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPentaerythritol"),1f) - },200,false)); - ChemicalReactorTileEntity.addRecipe( - new UniversalRecipeInput( - new FluidStack[] { - IHLUtils.getFluidStackWithSize("sulfuricacid", 288)}, - new IRecipeInput[] { - new RecipeInputOreDict("dustSaltpeter")}), - new UniversalRecipeOutput(null, - new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPotassiumSulphate"),2f)},200,true)); - CryogenicDistillerTileEntity.addRecipe( - IHLUtils.getFluidStackWithSize("sulfuricacid", 288), - IHLUtils.getFluidStackWithSize("nitricacid", 120), null, true); - FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("hydrogen", 90)}, - new IRecipeInput[] {new RecipeInputItemStack(IHLUtils.getThisModItemStack("catalystIronOxide"))}), - new UniversalRecipeOutput( - null,new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getThisModItemStack("catalystIron"),1f)},200)); - FluidizedBedReactorTileEntity.addRecipe( - new UniversalRecipeInput( - new FluidStack [] { - IHLUtils.getFluidStackWithSize("nitrogen", 100), - IHLUtils.getFluidStackWithSize("hydrogen", 300)}, - new IRecipeInput[] {new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("catalystIron",0),0)}), - new UniversalRecipeOutput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("ammonia", 400)},null,200)); - FluidizedBedReactorTileEntity.addRecipe( - new UniversalRecipeInput( - new FluidStack [] { - IHLUtils.getFluidStackWithSize("ammonia", 100), - IHLUtils.getFluidStackWithSize("oxygen", 150)}, - new IRecipeInput[] {new RecipeInputOreDict("dustIridium",0)}), - new UniversalRecipeOutput( - new FluidStack [] {IHLUtils.getFluidStackWithSize("nitricacid", 250)},null,200)); - ChemicalReactorTileEntity.addRecipe( - new UniversalRecipeInput( - new FluidStack[] { - IHLUtils.getFluidStackWithSize("nitricacid", 50), - IHLUtils.getFluidStackWithSize("sulfuricacid", 50)}, - new IRecipeInput[] { - new RecipeInputOreDict("dustPentaerythritol"), - new RecipeInputItemStack(new ItemStack(Items.snowball,8))}), - new UniversalRecipeOutput(null, - new RecipeOutputItemStack [] { - new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPentaerythritolTetranitrate"),1f)},200,false)); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 15, "RawRubber", 100) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 15), Ic2Items.rubber }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList( + new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 240, "RawRubber", 100) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240), Ic2Items.rubber }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 15, "RawRubber", 100) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 15), Ic2Items.rubber }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 240, "RawRubber", 100) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240), Ic2Items.rubber }))); + } + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 15, "Rubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 15) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Copper", 1, 240, "Rubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Copper", 1, 240) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 15, "Rubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 15) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("sharpenedCarvingKnifeBronze") }), + Arrays.asList(new ItemStack[] { IHLUtils.getInsulatedWire("Steel", 1, 240, "Rubber", 100) }), + Arrays.asList(new ItemStack[] { IHLUtils.getUninsulatedWire("Steel", 1, 240) }))); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe( + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("tinSnipsSteel") }), + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("plateGraphite", 2), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("highVoltageCapacitor", 3),3), + new RecipeInputFluidContainer(IHLFluid.IHLFluidType.MineralOil.fluid, 1), + new RecipeInputOreDict("dustSolderingAlloy"), new RecipeInputOreDict("foilMica"), + new RecipeInputWire(IHLUtils.getUninsulatedWire("Copper", 5, 15)), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("gu-81m", 4)), + new RecipeInputOreDict("foilCopper"), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("valveTube1C21P", 6)) }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("vacuumInductionMeltingFurnace") }), + Arrays.asList(new ItemStack[] { IHLUtils.getThisModItemStack("gasWeldingStation") }))); + ItemStack detonator = IHLUtils.getItemStackWithTag("detonator", "detonator_delay", 5); + detonator.stackSize = 16; + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList(new IRecipeInput[] { new RecipeInputOreDict("platePaper", 2), + new RecipeInputItemStack(new ItemStack(Items.string)), + new RecipeInputOreDict("dustGunpowder", 1), + new RecipeInputOreDict("dustPentaerythritolTetranitrate", 1), + new RecipeInputOreDict("ingotTarPitch", 1) }), + Arrays.asList(new ItemStack[] { detonator }), null)); + IronWorkbenchTileEntity.addRecipe(new IronWorkbenchRecipe(null, + Arrays.asList( + new IRecipeInput[] { new RecipeInputOreDict("platePaper", 2), + new RecipeInputOreDict("dustPentaerythritolTetranitrate", 8), + new RecipeInputOreDict("ingotTarPitch", 1), new RecipeInputDetonator(detonator) }), + Arrays.asList( + new ItemStack[] { IHLUtils.getItemStackWithTag("ihlExplosive", "explosionPower", 1000) }), + null)); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustSiliconDioxide", 2), + new RecipeInputOreDict("dustCoal", 4), "dustCarborundum"); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustQuicklime"), + new RecipeInputOreDict("dustCoal", 4), "dustCalciumCarbide"); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("stickCoal"), new RecipeInputOreDict("dustCoal"), + "stickGraphite"); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustTungsten"), + new RecipeInputOreDict("dustCoal"), "ingotTungsten"); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("dustBoricAcid", 4), + new RecipeInputOreDict("dustCoal", 8), "dustBoronCarbide"); + AchesonFurnanceTileEntity.addRecipe(new RecipeInputOreDict("plateCoal"), + new RecipeInputOreDict("dustCoal", 1), "plateGraphite"); + GoldChimneyKneeTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("ic2steam", 1), + IHLUtils.getFluidStackWithSize("sulfuricanhydride", 1) }), null), + IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 1)); + if (FluidRegistry.isFluidRegistered("steam")) + GoldChimneyKneeTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("steam", 1), + IHLUtils.getFluidStackWithSize("sulfuricanhydride", 1) }), null), + IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 1)); + GoldChimneyKneeTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("ic2superheatedsteam", 15), + IHLUtils.getFluidStackWithSize("sulfuricanhydride", 4) }), + null), + IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 4)); + LeadOvenTileEntity.addRecipe( + new UniversalRecipeInput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSulfur"), + IHLUtils.getOreDictItemStack("dustSaltpeter") })), + IHLUtils.getFluidStackWithSize("sulfuricanhydride", 23000)); + LeadOvenTileEntity.addRecipe( + new UniversalRecipeInput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("crushedPurifiedCinnabar") })), + IHLUtils.getFluidStackWithSize("vapour.mercury", 3600)); + LeadOvenTileEntity.addRecipe(IHLUtils.getThisModItemStack("dustStibnite"), + IHLUtils.getThisModItemStack("dustAntimonyOxide")); + LeadOvenTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustSodiumHydrogenSulfate", 2), + IHLUtils.getFluidStackWithSize("vapour.sulfuricacid", 20000), + IHLUtils.getOreDictItemStack("dustSodiumSulfate")); + LeadOvenTileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("dustSodiumZeoliteCoked", 2), + IHLUtils.getThisModItemStack("dustSodiumZeolite")); + ImpregnatingMachineTileEntity.addChemicalRecipe( + new UniversalRecipeInput((new FluidStack[] { new FluidStack(FluidRegistry.WATER, 1500) }), + (new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustQuicklime", 1) })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("limemilk", 2500) }), + null, 20)); + ImpregnatingMachineTileEntity.addChemicalRecipe( + new UniversalRecipeInput( + (new FluidStack[] { new FluidStack(FluidRegistry.WATER, 130), + IHLUtils.getFluidStackWithSize("limemilk", 142) }), + (new ItemStack[] { IHLUtils.getThisModItemStackWithSize("muttonLard", 6) })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("glyceryl", 130) }), + (new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ingotCalciumSoap", 5) }), 200)); + ImpregnatingMachineTileEntity.addChemicalRecipe( + new UniversalRecipeInput( + (new FluidStack[] { new FluidStack(FluidRegistry.WATER, 600), + IHLUtils.getFluidStackWithSize("sulfuricacid", 284) }), + (new ItemStack[] { IHLUtils.getThisModItemStackWithSize("ingotCalciumSoap", 6) })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("oleicacid", 280) }), + (new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getThisModItemStackWithSize("ingotStearin", 4)), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustGypsum"), 0.48f) }), + 200)); + ImpregnatingMachineTileEntity.addChemicalRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("limemilk", 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustTrona") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustCalcite") }), 200)); + DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("blankNeedleFileSteel"), + IHLUtils.getThisModItemStack("needleFile")); + DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("blankSetOfFilesSteel"), + IHLUtils.getThisModItemStack("setOfFilesSteel")); + DetonationSprayingMachineTileEntity.addRecipe(IHLUtils.getThisModItemStack("incisorSteel"), + IHLUtils.getThisModItemStack("incisorSteelDiamondCoated")); + ItemStack drill = Ic2Items.miningDrill.copy(); + drill.setItemDamage(OreDictionary.WILDCARD_VALUE); + DetonationSprayingMachineTileEntity.addRecipe(drill, Ic2Items.diamondDrill.copy()); + MuffleFurnanceTileEntity.addRecipe(Ic2Items.plateadviron.copy(), + IHLUtils.getThisModItemStack("plateHotSteel")); + MuffleFurnanceTileEntity.addRecipe(Ic2Items.advIronIngot.copy(), + IHLUtils.getOreDictItemStack("ingotHotSteel")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateTungsten"), + IHLUtils.getThisModItemStack("plateHotTungsten")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("gaedesPumpBarrelRawPorcelain"), + IHLUtils.getThisModItemStack("gaedesPumpBarrelPorcelain")); + MuffleFurnanceTileEntity.addRecipe(new ItemStack(IHLMod.crucible, 1, OreDictionary.WILDCARD_VALUE), + new ItemStack(IHLMod.crucible, 1, 1)); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("injectionMold", 1), + IHLUtils.getThisModItemStackWithSize("injectionMold", 1)); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("sawBladeSteel"), + IHLUtils.getThisModItemStack("sawBladeSteelHot")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("barD10Steel"), + IHLUtils.getThisModItemStack("barD10SteelHot")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("linerIronGraphite"), + IHLUtils.getThisModItemStack("linerIronGraphiteHot")); + MuffleFurnanceTileEntity.addRecipe( + new UniversalRecipeInput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustIronOxide"), + IHLUtils.getOreDictItemStack("dustLithiumOxide") })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustFerrite", 2) }), 200)); + MuffleFurnanceTileEntity.addRecipe( + new UniversalRecipeInput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustSiliconDioxide", 3), + IHLUtils.getOreDictItemStackWithSize("dustMagnesium", 2) })), + new UniversalRecipeOutput(null, (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSilicon"), + IHLUtils.getOreDictItemStackWithSize("dustMagnesiumOxide", 4) }), 200)); + MuffleFurnanceTileEntity.addRecipe( + new UniversalRecipeInput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustBauxite"), + IHLUtils.getOreDictItemStack("dustSodiumHydroxide") })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSodiumAluminate") }), 200)); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("drillSteel"), + IHLUtils.getThisModItemStack("drillSteelHot")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("tapM10x1Steel"), + IHLUtils.getThisModItemStack("tapM10x1SteelHot")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("diceM10x1Steel"), + IHLUtils.getThisModItemStack("diceM10x1SteelHot")); + LoomTileEntity.addRecipe(IHLUtils.getThisModWireItemStackWithLength("fiberGlass", 1024), + IHLUtils.getThisModItemStack("meshGlass")); + LoomTileEntity.addRecipe(new ItemStack(Items.string, 4), IHLUtils.getThisModItemStack("fabric")); + RollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStack("plateHotSteel"), + IHLUtils.getOreDictItemStackWithSize("foilSteel", 4)); + RollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStack("plateHotTungsten"), + IHLUtils.getOreDictItemStackWithSize("foilTungsten", 4)); + RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateGold"), + IHLUtils.getOreDictItemStackWithSize("foilGold", 4)); + RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateCopper"), + IHLUtils.getOreDictItemStackWithSize("foilCopper", 4)); + RollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStack("plateLead"), + IHLUtils.getOreDictItemStackWithSize("foilLead", 4)); + ImpregnatingMachineTileEntity.addQuenchingRecipe("diceM10x1SteelHot", "diceM10x1SteelHardened"); + ImpregnatingMachineTileEntity.addQuenchingRecipe("tapM10x1SteelHot", "tapM10x1SteelHardened"); + ImpregnatingMachineTileEntity.addQuenchingRecipe("drillSteelHot", "drillSteelHardened"); + ImpregnatingMachineTileEntity.addQuenchingRecipe("sawBladeSteelHot", "sawBladeSteelHardened"); + ImpregnatingMachineTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("oleicacid", 1) }), + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteHot") })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteGreased") }), 2)); + ImpregnatingMachineTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("seedoil", 1) }), + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteHot") })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteGreased") }), 2)); + ImpregnatingMachineTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("mineraloil", 1) }), + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteHot") })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getThisModItemStack("linerIronGraphiteGreased") }), 2)); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("foilRubberWithSulfur"), + IHLUtils.getThisModItemStack("foilRubber")); + MuffleFurnanceTileEntity + .addRecipe( + new UniversalRecipeInput(null, + (new IRecipeInput[] { new RecipeInputItemStack( + IHLUtils.getThisModItemStack("pipeRubberWithSulfur")) })), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getThisModItemStack("pipeVulcanizedRubber") }), 20)); + GasWeldingStationTileEntity.addGasRecipe(IHLUtils.getOreDictItemStack("dustCalciumCarbide"), + IHLUtils.getFluidStackWithSize("water", 666), IHLUtils.getFluidStackWithSize("acetylene", 1333), + IHLUtils.getFluidStackWithSize("limemilk", 333)); + CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("air", 1000), + IHLUtils.getFluidStackWithSize("nitrogen", 781), IHLUtils.getFluidStackWithSize("oxygen", 209), + false); + ChemicalReactorTileEntity + .addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 500) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSiliconDioxide") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("liquidglass", 500) }), null, + 200)); + PrecipitatorCondenserTileEntity.addRecipe("vapour.sulfuricacid", "sulfuricacid", 50); + PrecipitatorCondenserTileEntity.addRecipe("vapour.mercury", "mercury", 50); + PrecipitatorCondenserTileEntity.addRecipe("ic2steam", "ic2distilledwater", 100); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("spruceresin", 1000), + IHLUtils.getFluidStackWithSize("glyceryl", 50) }), null), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("cablingcolophony", 600) }), null, 200, + true)); + CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("spruceresin", 1000), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 150), + IHLUtils.getFluidStackWithSize("turpentine", 300), true); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("fueloil", 2000) }), + null), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("molten.tarpitch", 144) }), null, 200, + true)); + CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("fueloil", 2000), + IHLUtils.getFluidStackWithSize("mineraloil", 1000), null, true); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 4000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("crushedPurifiedGyubnera") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.natriumtungstate", 4000) }), + (new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyManganeseOxide"), + 3.75f), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyIronOxide"), + 9f / 12f) }), + 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("sulfuricacid", 1750) }), + (new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustRockSalt", 1) })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("hydrogenchloride", 1000) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustPotassiumSulphate"), 1.75f) }), + 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("sulfuricacid", 3500) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSalt") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("hydrogenchloride", 1000) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustSodiumHydrogenSulfate"), 3.5f) }), + 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("sulfuricacid", 7000 / 9), + new FluidStack(FluidRegistry.WATER, 6000 / 9 + 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustDatolite") })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("boricacid", 1777) }), + (new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustGypsum"), 12f / 9f), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinySiliconDioxide"), + 3f) }), + 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("limemilk", 1667), + IHLUtils.getFluidStackWithSize("hydrogenchloride", 1334) }), null), + new UniversalRecipeOutput(null, + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustCalciumChloride") }), 200)); + ChemicalReactorTileEntity + .addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("solution.natriumtungstate", 6667) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustCalciumChloride") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("saltwater", 6000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustCalciumTungstate") }), 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 2000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustWood"), + IHLUtils.getOreDictItemStack("dustSodiumSulfide") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("pulp.cellulose", 1500), + IHLUtils.getFluidStackWithSize("ic2biomass", 500) }), + null, 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("cablingcolophony", 50), + new FluidStack(FluidRegistry.WATER, 2000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustMica") })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("pulp.mica", 2000) }), + null, 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("hydrogenchloride", 500), + new FluidStack(FluidRegistry.WATER, 7500) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustMagnesiumOxide") })), + new UniversalRecipeOutput(null, + (new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustBischofite"), 8.75f) }), + 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("liquidglass", 1000), + new FluidStack(FluidRegistry.WATER, 2000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSodiumAluminate") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("pulp.sodiumzeolite", 4000) }), null, + 200)); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("saltwater", 4000), + IHLUtils.getOreDictItemStack("dustSalt")); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("boricacid", 2288), + IHLUtils.getOreDictItemStack("dustBoricAcid")); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 2000), + IHLUtils.getOreDictItemStack("dustSodiumHydroxide")); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.sodiumzeolite", 4000), + IHLUtils.getOreDictItemStack("dustSodiumZeolite")); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.lithiumchloride", 4000), + IHLUtils.getOreDictItemStack("dustLithiumChloride")); + EvaporatorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("solution.calciumchloride", 4000), + IHLUtils.getOreDictItemStack("dustCalciumChloride")); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("water", 2000), + IHLUtils.getFluidStackWithSize("hydrogenchloride", 667) }), + (new IRecipeInput[] { new RecipeInputOreDict("dustCalciumTungstate") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.calciumchloride", 2000) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustTungsticAcid"), 1.16f) }), + 200)); + if (IHLUtils.hasOreDictionaryEntry("dustTungstate")) + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("water", 1000), + IHLUtils.getFluidStackWithSize("hydrogenchloride", 140) }), + (new IRecipeInput[] { new RecipeInputOreDict("dustTungstate") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("solution.lithiumchloride", 560) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustTungsticAcid"), 1.0f) }), + 200)); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustTungsticAcid", 2), + IHLUtils.getOreDictItemStack("dustTungstenOxide"), 1.14f); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("electrolysisBathRawPorcelain"), + IHLUtils.getThisModItemStack("electrolysisBathPorcelain")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ovenRawPorcelain"), + IHLUtils.getThisModItemStack("leadOven")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("precipitatorCondenserRawPorcelain"), + IHLUtils.getThisModItemStack("goldPrecipitatorCondenser")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("chimneyKneeRawPorcelain"), + IHLUtils.getThisModItemStack("goldChimneyKnee")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ringRawPorcelain"), + IHLUtils.getThisModItemStack("ringPorcelain")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("ringRawFerrite"), + IHLUtils.getThisModItemStack("ringFerrite")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("insulatorRawPorcelain"), + IHLUtils.getThisModItemStack("insulatorPorcelain")); + MuffleFurnanceTileEntity.addRecipe(IHLUtils.getThisModItemStack("lampHolderRawPorcelain"), + IHLUtils.getThisModItemStack("lampHolderPorcelain")); + LabElectrolyzerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("water", 300), + IHLUtils.getFluidStackWithSize("hydrogen", 200), IHLUtils.getFluidStackWithSize("oxygen", 100), + null); + LabElectrolyzerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("saltwater", 1000), + IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 875), + IHLUtils.getFluidStackWithSize("chlorine", 100), null); + if (IHLUtils.hasOreDictionaryEntry("dustSilicon")) + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1333), + IHLUtils.getOreDictItemStackWithSize("dustSiliconDioxide", 1), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 2000), + IHLUtils.getOreDictItemStackWithSize("dustTinySilicon", 3)); + if (IHLUtils.hasOreDictionaryEntry("dustManganese")) + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 2000), + IHLUtils.getOreDictItemStackWithSize("dustManganeseOxide", 2), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 3000), + IHLUtils.getOreDictItemStack("dustManganese")); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1200), + IHLUtils.getOreDictItemStack("dustIronOxide"), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 1800), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyIron"), 3.6f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1500), + IHLUtils.getOreDictItemStack("dustTungstenOxide"), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 2250), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyTungsten"), 2.25f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 4000), + IHLUtils.getOreDictItemStackWithSize("dustSodiumSulfate", 3), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 6000), + IHLUtils.getOreDictItemStack("dustSodiumSulfide")); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("hydrogen", 1200), + IHLUtils.getOreDictItemStack("dustAntimonyOxide"), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 1800), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustTinyAntimony"), 3.6f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 1500), + IHLUtils.getOreDictItemStack("dustIron"), null, + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustIronOxide"), 2.5f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 500), + IHLUtils.getOreDictItemStack("dustLithium"), null, + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustLithiumOxide"), 1.5f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oxygen", 1333), + IHLUtils.getOreDictItemStack("dustLead"), null, + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustLeadPlumbate"), 2.333f)); + FluidizedBedReactorTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("chlorine", 2000), + IHLUtils.getOreDictItemStack("dustCarborundum"), + IHLUtils.getFluidStackWithSize("silicontetrachloride", 2500), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustCoal"), 0.5f)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("hydrogen", 445), + IHLUtils.getFluidStackWithSize("silicontetrachloride", 1667) }), + (new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustIridium", 0), + IHLUtils.getOreDictItemStack("dustTinySilicon") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("trichlorosilane", 2112) }), null, 200)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("fueloil", 6000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustSodiumZeolite") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("fuel", 4500), + IHLUtils.getFluidStackWithSize("crackinggas", 500) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustSodiumZeoliteCoked"), 1.9f) }), + 2000)); + FluidizedBedReactorTileEntity.addRecipe(new UniversalRecipeInput( + null, (new IRecipeInput[] { new RecipeInputOreDict("dustWood") })), new UniversalRecipeOutput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("molten.tarpitch", 8), IHLUtils + .getFluidStackWithSize("tarwater", 39), + IHLUtils.getFluidStackWithSize("crackinggas", 31) }), + (new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustCoal"), 0.25f) }), + 2000)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput((new FluidStack[] { IHLUtils.getFluidStackWithSize("tarwater", 50) }), + (new IRecipeInput[] { + new RecipeInputOreDict("dustQuicklime") })), + new UniversalRecipeOutput((new FluidStack[] { IHLUtils.getFluidStackWithSize("water", 10) }), + (new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustCalciumAcetate"), 1f) }), + 200, true)); + CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("tarwater", 50), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 30), + IHLUtils.getFluidStackWithSize("methanol", 10), true); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("methanol", 200), + IHLUtils.getFluidStackWithSize("oxygen", 100) }, + new IRecipeInput[] { new RecipeInputOreDict("dustSilver", 0) }), + new UniversalRecipeOutput(new FluidStack[] { IHLUtils.getFluidStackWithSize("formaldehyde", 300) }, + null, 200)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput(new FluidStack[] { IHLUtils.getFluidStackWithSize("chlorine", 110), + IHLUtils.getFluidStackWithSize("mercury", 50) }, null), + new UniversalRecipeOutput(null, new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustMercuryChloride"), 1f) }, 200)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("acetylene", 100), + IHLUtils.getFluidStackWithSize("ic2distilledwater", 100), + IHLUtils.getFluidStackWithSize("hydrogenchloride", 2) }, + new IRecipeInput[] { new RecipeInputOreDict("dustMercuryChloride", 0) }), + new UniversalRecipeOutput(new FluidStack[] { IHLUtils.getFluidStackWithSize("acetaldehyde", 200) }, + null, 200)); + ChemicalReactorTileEntity + .addRecipe(new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("acetaldehyde", 100), + IHLUtils.getFluidStackWithSize("formaldehyde", + 400), + IHLUtils.getFluidStackWithSize("solution.natriumhydroxide", 100) }, + null), + new UniversalRecipeOutput(null, new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustSodiumFormate"), 1f), + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPentaerythritol"), + 1f) }, + 200, false)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput(new FluidStack[] { IHLUtils.getFluidStackWithSize("sulfuricacid", 288) }, + new IRecipeInput[] { + new RecipeInputOreDict("dustSaltpeter") }), + new UniversalRecipeOutput(null, new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getOreDictItemStack("dustPotassiumSulphate"), 2f) }, 200, + true)); + CryogenicDistillerTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("sulfuricacid", 288), + IHLUtils.getFluidStackWithSize("nitricacid", 120), null, true); + FluidizedBedReactorTileEntity + .addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("hydrogen", 90) }, + new IRecipeInput[] { new RecipeInputItemStack( + IHLUtils.getThisModItemStack("catalystIronOxide")) }), + new UniversalRecipeOutput(null, new RecipeOutputItemStack[] { + new RecipeOutputItemStack(IHLUtils.getThisModItemStack("catalystIron"), 1f) }, + 200)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("nitrogen", 100), + IHLUtils.getFluidStackWithSize("hydrogen", 300) }, + new IRecipeInput[] { new RecipeInputItemStack( + IHLUtils.getThisModItemStackWithSize("catalystIron", 0), 0) }), + new UniversalRecipeOutput(new FluidStack[] { IHLUtils.getFluidStackWithSize("ammonia", 400) }, null, + 200)); + FluidizedBedReactorTileEntity.addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("ammonia", 100), + IHLUtils.getFluidStackWithSize("oxygen", 150) }, + new IRecipeInput[] { new RecipeInputOreDict("dustIridium", 0) }), + new UniversalRecipeOutput(new FluidStack[] { IHLUtils.getFluidStackWithSize("nitricacid", 250) }, + null, 200)); + ChemicalReactorTileEntity.addRecipe( + new UniversalRecipeInput( + new FluidStack[] { IHLUtils.getFluidStackWithSize("nitricacid", 50), + IHLUtils.getFluidStackWithSize("sulfuricacid", 50) }, + new IRecipeInput[] { new RecipeInputOreDict("dustPentaerythritol"), + new RecipeInputItemStack(new ItemStack(Items.snowball, 8)) }), + new UniversalRecipeOutput(null, + new RecipeOutputItemStack[] { new RecipeOutputItemStack( + IHLUtils.getOreDictItemStack("dustPentaerythritolTetranitrate"), 1f) }, + 200, false)); - Crucible.addRecipe("ingotSteel", IHLUtils.getFluidStackWithSize("molten.steel", 144)); - Crucible.addRecipe("ingotBronze", IHLUtils.getFluidStackWithSize("molten.bronze", 144)); - Crucible.addRecipe("ingotGold", IHLUtils.getFluidStackWithSize("molten.gold", 144)); - Crucible.addRecipe("ingotMagnesium", IHLUtils.getFluidStackWithSize("molten.magnesium", 144)); - Crucible.addRecipe("dustGold", IHLUtils.getFluidStackWithSize("molten.gold", 144)); - Crucible.addRecipe("dustSalt", IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 144)); - Crucible.addRecipe("dustGlass", IHLUtils.getFluidStackWithSize("molten.glass", 144)); - Crucible.addRecipe("dustRockSalt", IHLUtils.getFluidStackWithSize("molten.potassiumchloride", 144)); - PaperMachineTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.cellulose", 1500), new ItemStack(Items.paper)); - PaperMachineTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.mica", 500), IHLUtils.getThisModItemStack("foilMica")); - FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oil", 100), IHLUtils.getFluidStackWithSize("fueloil", 60), IHLUtils.getFluidStackWithSize("fuel", 40)); - if(FluidRegistry.isFluidRegistered("liquid_light_oil"))FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_light_oil", 100), IHLUtils.getFluidStackWithSize("fueloil", 40), IHLUtils.getFluidStackWithSize("fuel", 60)); - if(FluidRegistry.isFluidRegistered("liquid_medium_oil"))FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_medium_oil", 100), IHLUtils.getFluidStackWithSize("fueloil", 60), IHLUtils.getFluidStackWithSize("fuel", 40)); - if(FluidRegistry.isFluidRegistered("liquid_heavy_oil"))FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_heavy_oil", 100), IHLUtils.getFluidStackWithSize("fueloil", 70), IHLUtils.getFluidStackWithSize("fuel", 30)); - if(FluidRegistry.isFluidRegistered("liquid_extra_heavy_oil"))FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_extra_heavy_oil", 100), IHLUtils.getFluidStackWithSize("fueloil", 80), IHLUtils.getFluidStackWithSize("fuel", 20)); - ElectrolysisBathTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 1000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustBischofite")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.magnesium", 6)}),null,200)); - ElectrolysisBathTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 1000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustLithiumChloride")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.lithium", 72)}),null,200)); - ElectrolysisBathTileEntity.addRecipe(new UniversalRecipeInput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.potassiumchloride", 1000)}), (new ItemStack[] {IHLUtils.getOreDictItemStack("dustRockSalt")})), new UniversalRecipeOutput((new FluidStack[] {IHLUtils.getFluidStackWithSize("molten.potassium", 72)}),null,200)); - // 1 mb of molten metal per 1 m of cable with transverse section equals to 1.5 sq. mm. - fluidDictionary.registerFluidStack("water", IHLUtils.getFluidStackWithSize("water", 1000)); - fluidDictionary.registerFluidStack("water", IHLUtils.getFluidStackWithSize("ic2distilledwater", 1000)); - fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("seedoil", 1000)); - fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("oleicacid", 1000)); - fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("mineraloil", 1000)); - if(FluidRegistry.isFluidRegistered("lubricant"))fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("lubricant", 1000)); - WireMillTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("molten.glass", 1), new RecipeInputItemStack(IHLUtils.getThisModItemStack("fiberGlassDieSteel"), 0), IHLUtils.getThisModWireItemStackWithLength("fiberGlass", 64)); - WireMillTileEntity.addRecipe("dustGlass",IHLUtils.getFluidStackWithSize("molten.glass", 144)); - for(ElectricConductor ec:ElectricConductor.values()) - { - String fluidName = "molten."+ec.toString().toLowerCase(); - if(FluidRegistry.isFluidRegistered(fluidName)) - { - WireMillTileEntity.addRecipe(IHLUtils.getFluidStackWithSize(fluidName, 1), new RecipeInputDie("setOfDies1_5sqmm",15), IHLUtils.getUninsulatedWire(ec.toString(), 1, 15)); - log.debug("added recipe for "+fluidName); - if(ec.meltingPoint<500) - { - WireMillTileEntity.addRecipe("ingot"+ec.toString(),IHLUtils.getFluidStackWithSize(fluidName, 144)); + Crucible.addRecipe("ingotSteel", IHLUtils.getFluidStackWithSize("molten.steel", 144)); + Crucible.addRecipe("ingotBronze", IHLUtils.getFluidStackWithSize("molten.bronze", 144)); + Crucible.addRecipe("ingotGold", IHLUtils.getFluidStackWithSize("molten.gold", 144)); + Crucible.addRecipe("ingotMagnesium", IHLUtils.getFluidStackWithSize("molten.magnesium", 144)); + Crucible.addRecipe("dustGold", IHLUtils.getFluidStackWithSize("molten.gold", 144)); + Crucible.addRecipe("dustSalt", IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 144)); + Crucible.addRecipe("dustGlass", IHLUtils.getFluidStackWithSize("molten.glass", 144)); + Crucible.addRecipe("dustRockSalt", IHLUtils.getFluidStackWithSize("molten.potassiumchloride", 144)); + PaperMachineTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.cellulose", 1500), + new ItemStack(Items.paper)); + PaperMachineTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("pulp.mica", 500), + IHLUtils.getThisModItemStack("foilMica")); + FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("oil", 100), + IHLUtils.getFluidStackWithSize("fueloil", 60), IHLUtils.getFluidStackWithSize("fuel", 40)); + if (FluidRegistry.isFluidRegistered("liquid_light_oil")) + FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_light_oil", 100), + IHLUtils.getFluidStackWithSize("fueloil", 40), IHLUtils.getFluidStackWithSize("fuel", 60)); + if (FluidRegistry.isFluidRegistered("liquid_medium_oil")) + FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_medium_oil", 100), + IHLUtils.getFluidStackWithSize("fueloil", 60), IHLUtils.getFluidStackWithSize("fuel", 40)); + if (FluidRegistry.isFluidRegistered("liquid_heavy_oil")) + FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_heavy_oil", 100), + IHLUtils.getFluidStackWithSize("fueloil", 70), IHLUtils.getFluidStackWithSize("fuel", 30)); + if (FluidRegistry.isFluidRegistered("liquid_extra_heavy_oil")) + FractionatorBottomTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("liquid_extra_heavy_oil", 100), + IHLUtils.getFluidStackWithSize("fueloil", 80), IHLUtils.getFluidStackWithSize("fuel", 20)); + ElectrolysisBathTileEntity + .addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustBischofite") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("molten.magnesium", 6) }), null, + 200)); + ElectrolysisBathTileEntity + .addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("molten.sodiumchloride", 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustLithiumChloride") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("molten.lithium", 72) }), null, + 200)); + ElectrolysisBathTileEntity + .addRecipe( + new UniversalRecipeInput( + (new FluidStack[] { + IHLUtils.getFluidStackWithSize("molten.potassiumchloride", 1000) }), + (new ItemStack[] { IHLUtils.getOreDictItemStack("dustRockSalt") })), + new UniversalRecipeOutput( + (new FluidStack[] { IHLUtils.getFluidStackWithSize("molten.potassium", 72) }), null, + 200)); + // 1 mb of molten metal per 1 m of cable with transverse section + // equals to 1.5 sq. mm. + fluidDictionary.registerFluidStack("water", IHLUtils.getFluidStackWithSize("water", 1000)); + fluidDictionary.registerFluidStack("water", IHLUtils.getFluidStackWithSize("ic2distilledwater", 1000)); + fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("seedoil", 1000)); + fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("oleicacid", 1000)); + fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("mineraloil", 1000)); + if (FluidRegistry.isFluidRegistered("lubricant")) + fluidDictionary.registerFluidStack("lubricant", IHLUtils.getFluidStackWithSize("lubricant", 1000)); + WireMillTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("molten.glass", 1), + new RecipeInputItemStack(IHLUtils.getThisModItemStack("fiberGlassDieSteel"), 0), + IHLUtils.getThisModWireItemStackWithLength("fiberGlass", 64)); + WireMillTileEntity.addRecipe("dustGlass", IHLUtils.getFluidStackWithSize("molten.glass", 144)); + for (ElectricConductor ec : ElectricConductor.values()) { + String fluidName = "molten." + ec.toString().toLowerCase(); + if (FluidRegistry.isFluidRegistered(fluidName)) { + WireMillTileEntity.addRecipe(IHLUtils.getFluidStackWithSize(fluidName, 1), + new RecipeInputDie("setOfDies1_5sqmm", 15), + IHLUtils.getUninsulatedWire(ec.toString(), 1, 15)); + log.debug("added recipe for " + fluidName); + if (ec.meltingPoint < 500) { + WireMillTileEntity.addRecipe("ingot" + ec.toString(), + IHLUtils.getFluidStackWithSize(fluidName, 144)); + } } } + VulcanizationExtrudingMoldTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("molten.rubber", 32), + IHLUtils.getUninsulatedWire("Copper", 1, 15), + IHLUtils.getInsulatedWire("Copper", 1, 15, "Rubber", 100)); + IHLMod.config.loadRecipeModificators(); } - VulcanizationExtrudingMoldTileEntity.addRecipe(IHLUtils.getFluidStackWithSize("molten.rubber", 32), IHLUtils.getThisModWireItemStackWithLength("copperWire", 1), IHLUtils.getInsulatedWire("Copper", 1, 15, "Rubber", 100)); - IHLMod.config.loadRecipeModificators(); - } - if (Loader.isModLoaded("NotEnoughItems")) - { + if (Loader.isModLoaded("NotEnoughItems")) { NEIModContainer.plugins.add(new NEIIHLConfig()); } IHLMod.config.checkLists(); IHLMod.proxy.initBlockRenderer(); IHLMod.log.info("IHL loaded."); } - - private void registerEntities() - { + + private void registerEntities() { EntityRegistry.registerModEntity(CollectorEntity.class, "CollectorEntity", 0, this, 80, 3, true); EntityRegistry.registerModEntity(CollectorHeavyEntity.class, "CollectorHeavyEntity", 1, this, 80, 3, true); EntityRegistry.registerModEntity(PowerCableNodeEntity.class, "PowerCableNodeEntity", 2, this, 80, 3, true); EntityRegistry.registerModEntity(NodeEntity.class, "NodeEntity", 3, this, 80, 3, true); EntityRegistry.registerModEntity(IHLEntityFallingPile.class, "IHLEntityFallingPile", 4, this, 80, 3, true); - EntityRegistry.registerGlobalEntityID(LostHeadEntity.class, "LostHead", EntityRegistry.findGlobalUniqueEntityId(), 0x0033FF, 0x00CCFF); - if(IHLMod.config.enableWailers) - { + EntityRegistry.registerGlobalEntityID(LostHeadEntity.class, "LostHead", + EntityRegistry.findGlobalUniqueEntityId(), 0x0033FF, 0x00CCFF); + if (IHLMod.config.enableWailers) { BiomeGenBase[] biomes = BiomeDictionary.getBiomesForType(Type.END); - for(int i=0;i<biomes.length;i++) - { - if(biomes[i].biomeName.equals("Sky")) - { + for (int i = 0; i < biomes.length; i++) { + if (biomes[i].biomeName.equals("Sky")) { EntityRegistry.addSpawn(LostHeadEntity.class, 50, 1, 10, EnumCreatureType.monster, biomes[i]); } } @@ -1172,396 +2202,492 @@ public class IHLMod implements IFuelHandler{ } @Override - public int getBurnTime(ItemStack stack) - { - if(IHLUtils.getFirstOreDictName(stack)=="ingotTarPitch") - { + public int getBurnTime(ItemStack stack) { + if (IHLUtils.getFirstOreDictName(stack) == "ingotTarPitch") { return 2000; } - if(IHLUtils.getFirstOreDictName(stack)=="dustSodiumZeoliteCoked") - { + if (IHLUtils.getFirstOreDictName(stack) == "dustSodiumZeoliteCoked") { return 500; - } - else if(IHLUtils.getFirstOreDictName(stack)=="nuggetTarPitch") - { + } else if (IHLUtils.getFirstOreDictName(stack) == "nuggetTarPitch") { return 222; - } - else if(IHLUtils.getFirstOreDictName(stack)=="dustSulfur") - { + } else if (IHLUtils.getFirstOreDictName(stack) == "dustSulfur") { return 160; } return 0; } - + @SuppressWarnings("deprecation") - private void loadGT5Recipes() - { - ItemStack advBattery = ItemList.Hull_MV.get(1L, new Object[] {null}); - ItemStack oreListIterator = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Gold, 1L); - ItemStack sc = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Silver, 1L); - ItemStack ec = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Electrum, 1L); - ItemStack lp = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lazurite, 1L); - ItemStack sp = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L); - ItemStack rotor_lv = ItemList.Rotor_LV.get(1L, new Object[] {null}); - ItemStack rotor_mv = ItemList.Rotor_MV.get(1L, new Object[] {null}); - ItemStack motor_lv = ItemList.Electric_Motor_LV.get(1L, new Object[] {null}); - ItemStack motor_mv = ItemList.Electric_Motor_MV.get(1L, new Object[] {null}); - ItemStack sensor_lv = ItemList.Sensor_LV.get(1L, new Object[] {null}); - ItemStack sensor_mv = ItemList.Sensor_MV.get(1L, new Object[] {null}); - ItemStack battery_lv_c = ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[] {null}); - ItemStack battery_lv_l = ItemList.Battery_RE_LV_Lithium.get(1L, new Object[] {null}); - ItemStack battery_lv_s = ItemList.Battery_RE_LV_Sodium.get(1L, new Object[] {null}); - ItemStack battery_mv_c = ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[] {null}); - ItemStack battery_mv_l = ItemList.Battery_RE_MV_Lithium.get(1L, new Object[] {null}); - ItemStack battery_mv_s = ItemList.Battery_RE_MV_Sodium.get(1L, new Object[] {null}); - ItemStack energy_crystal = gregtech.api.util.GT_ModHandler.getIC2Item("energyCrystal", 1L, 32767); - ItemStack pump = ItemList.Electric_Pump_MV.get(1L, new Object[] {null}); - ItemStack pump_hv = ItemList.Electric_Pump_HV.get(1L, new Object[] {null}); - int[] gypsumOreList1; - int[] oreListIterator1; + private void loadGT5Recipes() { + ItemStack advBattery = ItemList.Hull_MV.get(1L, new Object[] { null }); + ItemStack oreListIterator = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Gold, 1L); + ItemStack sc = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Silver, 1L); + ItemStack ec = GT_OreDictUnificator.get(OrePrefixes.cableGt08, Materials.Electrum, 1L); + ItemStack lp = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Lazurite, 1L); + ItemStack sp = GT_OreDictUnificator.get(OrePrefixes.plate, Materials.Steel, 1L); + ItemStack rotor_lv = ItemList.Rotor_LV.get(1L, new Object[] { null }); + ItemStack rotor_mv = ItemList.Rotor_MV.get(1L, new Object[] { null }); + ItemStack motor_lv = ItemList.Electric_Motor_LV.get(1L, new Object[] { null }); + ItemStack motor_mv = ItemList.Electric_Motor_MV.get(1L, new Object[] { null }); + ItemStack sensor_lv = ItemList.Sensor_LV.get(1L, new Object[] { null }); + ItemStack sensor_mv = ItemList.Sensor_MV.get(1L, new Object[] { null }); + ItemStack battery_lv_c = ItemList.Battery_RE_LV_Cadmium.get(1L, new Object[] { null }); + ItemStack battery_lv_l = ItemList.Battery_RE_LV_Lithium.get(1L, new Object[] { null }); + ItemStack battery_lv_s = ItemList.Battery_RE_LV_Sodium.get(1L, new Object[] { null }); + ItemStack battery_mv_c = ItemList.Battery_RE_MV_Cadmium.get(1L, new Object[] { null }); + ItemStack battery_mv_l = ItemList.Battery_RE_MV_Lithium.get(1L, new Object[] { null }); + ItemStack battery_mv_s = ItemList.Battery_RE_MV_Sodium.get(1L, new Object[] { null }); + ItemStack energy_crystal = gregtech.api.util.GT_ModHandler.getIC2Item("energyCrystal", 1L, 32767); + ItemStack pump = ItemList.Electric_Pump_MV.get(1L, new Object[] { null }); + ItemStack pump_hv = ItemList.Electric_Pump_HV.get(1L, new Object[] { null }); + int[] gypsumOreList1; + int[] oreListIterator1; - if (config.enableRubberTreeSack) - { - gypsumOreList1 = new int[] {10000, 2000, 2000, 1000, 100, 0}; - oreListIterator1 = new int[] {10000, 10000, 10000, 5000, 500, 10000}; - GregTech_API.sRecipeAdder.addCentrifugeRecipe((ItemStack)null, (ItemStack)null, new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 200), new FluidStack(FluidRegistry.WATER, 120), ItemList.IC2_Resin.get(1L, new Object[] {null}), IHLUtils.getOreDictItemStack("dustRawRubber"), new ItemStack(Items.sugar, 1), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), (ItemStack)null, (ItemStack)null, gypsumOreList1, 500, 5); - GregTech_API.sRecipeAdder.addCentrifugeRecipe(IHLFluid.getCell("fluidrubbertreesap"), (ItemStack)null, new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 200), new FluidStack(FluidRegistry.WATER, 600), ItemList.IC2_Resin.get(5L, new Object[] {null}), IHLUtils.getOreDictItemStack("dustRawRubber"), new ItemStack(Items.sugar, 1), GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1L), ItemList.Cell_Empty.get(1L, new Object[] {null}), (ItemStack)null, oreListIterator1, 2500, 5); - } + if (config.enableRubberTreeSack) { + gypsumOreList1 = new int[] { 10000, 2000, 2000, 1000, 100, 0 }; + oreListIterator1 = new int[] { 10000, 10000, 10000, 5000, 500, 10000 }; + GregTech_API.sRecipeAdder.addCentrifugeRecipe((ItemStack) null, (ItemStack) null, + new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 200), + new FluidStack(FluidRegistry.WATER, 120), ItemList.IC2_Resin.get(1L, new Object[] { null }), + IHLUtils.getOreDictItemStack("dustRawRubber"), new ItemStack(Items.sugar, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 2L), (ItemStack) null, + (ItemStack) null, gypsumOreList1, 500, 5); + GregTech_API.sRecipeAdder.addCentrifugeRecipe(IHLFluid.getCell("fluidrubbertreesap"), (ItemStack) null, + new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 200), + new FluidStack(FluidRegistry.WATER, 600), ItemList.IC2_Resin.get(5L, new Object[] { null }), + IHLUtils.getOreDictItemStack("dustRawRubber"), new ItemStack(Items.sugar, 1), + GT_OreDictUnificator.get(OrePrefixes.dustSmall, Materials.Wood, 1L), + ItemList.Cell_Empty.get(1L, new Object[] { null }), (ItemStack) null, oreListIterator1, 2500, 5); + } - if (config.enableHandpump) - { - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((IHLHandPump)ic2_handpump).getItemStack(0), new Object[] {"T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', battery_mv_c}); - gregtech.api.util. GT_ModHandler.addCraftingRecipe(((IHLHandPump)ic2_handpump).getItemStack(0), new Object[] {"T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', battery_mv_l}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((IHLHandPump)ic2_handpump).getItemStack(0), new Object[] {"T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', battery_mv_s}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((AdvancedHandPump)ic2_advanced_handpump).getItemStack(0), new Object[] {"T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.TungstenSteel), 'P', pump_hv, 'B', energy_crystal}); - } + if (config.enableHandpump) { + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', + battery_mv_c }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', + battery_mv_l }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", 'T', OrePrefixes.pipeSmall.get(Materials.Steel), 'P', pump, 'B', + battery_mv_s }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe( + ((AdvancedHandPump) ic2_advanced_handpump).getItemStack(0), new Object[] { "T ", " P ", " B", 'T', + OrePrefixes.pipeSmall.get(Materials.TungstenSteel), 'P', pump_hv, 'B', energy_crystal }); + } - if (config.enableTunnelingShield) - { - gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED, new Object[] {"RfR", "BwB", "PPP", 'R', OrePrefixes.stick.get(Materials.Steel), 'B', OrePrefixes.bolt.get(Materials.Steel), 'P', OrePrefixes.plate.get(Materials.Steel)}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(driverBlock, 1), new Object[] {" ", " H ", " M ", 'H', advBattery, 'M', motor_mv}); - } + if (config.enableTunnelingShield) { + gregtech.api.util.GT_ModHandler + .addCraftingRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), + gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "RfR", "BwB", "PPP", 'R', OrePrefixes.stick.get(Materials.Steel), 'B', + OrePrefixes.bolt.get(Materials.Steel), 'P', + OrePrefixes.plate.get(Materials.Steel) }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(driverBlock, 1), + new Object[] { " ", " H ", " M ", 'H', advBattery, 'M', motor_mv }); + } - if (config.enableCollectors) - { - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorHeavyItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_c}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorHeavyItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_l}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorHeavyItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_s}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_c}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_l}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem)collectorItem).getItemStack(0), new Object[] {"PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_s}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), new Object[] {"PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', oreListIterator, 'L', advBattery}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), new Object[] {"PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', sc, 'L', advBattery}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), new Object[] {"PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', ec, 'L', advBattery}); - } + if (config.enableCollectors) { + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', + OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_c }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', + OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_l }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_mv, 'S', sensor_mv, 'R', + OrePrefixes.stick.get(Materials.Aluminium), 'M', motor_mv, 'B', battery_mv_s }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', + OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_c }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', + OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_l }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", 'P', rotor_lv, 'S', sensor_lv, 'R', + OrePrefixes.stick.get(Materials.Steel), 'M', motor_lv, 'B', battery_lv_s }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), + new Object[] { "PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', + oreListIterator, 'L', advBattery }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), new Object[] { + "PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', sc, 'L', advBattery }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(chargerEjectorBlock, 1), new Object[] { + "PGP", "GCG", "GLG", 'P', lp, 'G', new ItemStack(Blocks.glass, 1), 'C', ec, 'L', advBattery }); + } - if (config.enableFan) - { - gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(blowerBlock, 1), new Object[] {"PIP", "RHR", "IMI", 'P', sp, 'I', new ItemStack(Blocks.iron_bars, 1), 'R', rotor_mv, 'H', advBattery, 'M', motor_mv}); - } + if (config.enableFan) { + gregtech.api.util.GT_ModHandler.addCraftingRecipe(new ItemStack(blowerBlock, 1), + new Object[] { "PIP", "RHR", "IMI", 'P', sp, 'I', new ItemStack(Blocks.iron_bars, 1), 'R', rotor_mv, + 'H', advBattery, 'M', motor_mv }); + } - if (config.enableFlexibleCablesCrafting) - { - gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), new Object[] {"PPS", "RRh", "RRd", 'P', OrePrefixes.plate.get(Materials.Iron), 'S', OrePrefixes.screw.get(Materials.Iron), 'R', OrePrefixes.stick.get(Materials.Iron)}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), new Object[] {" ", "fPs", " ", 'P', OrePrefixes.plate.get(Materials.Steel)}); - gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getItemStackWithTag("setOfDies1_5sqmm","transverseSection",240), new Object[] {" f ", " P ", " s ", 'P', OrePrefixes.plate.get(Materials.Steel)}); - } - if (pfaalimestone != null) - { - GregTech_API.sRecipeAdder.addPulveriserRecipe(pfaalimestone, new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)}, new int[] {10000}, 600, 30); - } + if (config.enableFlexibleCablesCrafting) { + gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), + new Object[] { "PPS", "RRh", "RRd", 'P', OrePrefixes.plate.get(Materials.Iron), 'S', + OrePrefixes.screw.get(Materials.Iron), 'R', OrePrefixes.stick.get(Materials.Iron) }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), + new Object[] { " ", "fPs", " ", 'P', OrePrefixes.plate.get(Materials.Steel) }); + gregtech.api.util.GT_ModHandler.addCraftingRecipe( + IHLUtils.getItemStackWithTag("setOfDies1_5sqmm", "transverseSection", 240), + new Object[] { " f ", " P ", " s ", 'P', OrePrefixes.plate.get(Materials.Steel) }); + } + if (pfaalimestone != null) { + GregTech_API.sRecipeAdder.addPulveriserRecipe(pfaalimestone, + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4) }, new int[] { 10000 }, + 600, 30); + } - if (pfaacobblelimestone != null) - { - GregTech_API.sRecipeAdder.addPulveriserRecipe(pfaacobblelimestone, new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)}, new int[] {10000}, 600, 30); - } - List<ItemStack> gypsumOreList3 = IHLUtils.getEntryListForOre("oreGypsum"); - Iterator<ItemStack> oreListIterator3 = gypsumOreList3.iterator(); - while (oreListIterator3.hasNext()) - { - GregTech_API.sRecipeAdder.addPulveriserRecipe((oreListIterator3.next()), new ItemStack[] {IHLUtils.getOreDictItemStack("dustGypsum")}, new int[] {10000}, 600, 30); - } - GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("orePotassiumFeldspar"), new ItemStack[] {IHLUtils.getOreDictItemStack("dustPotassiumFeldspar")}, new int[] {10000}, 600, 30); - GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("oreLimestone"), new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4)}, new int[] {10000}, 600, 30); - GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("oreSaltpeter"), new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustSaltpeter", 4)}, new int[] {10000}, 600, 30); - GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStackWithSize("stickGraphite", 2), new ItemStack[] {IHLUtils.getOreDictItemStack("dustGraphite")}, new int[] {10000}, 600, 30); - GregTech_API.sRecipeAdder.addPulveriserRecipe(new ItemStack(Items.brick), new ItemStack[] {IHLUtils.getOreDictItemStack("dustBrick")}, new int[] {10000}, 600, 30); - GregTech_API.sRecipeAdder.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1L), GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), new FluidStack(FluidRegistry.WATER, 1500), FluidRegistry.getFluidStack("solution.natriumhydroxide", 1000), GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L), 950); - GregTech_API.sRecipeAdder.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 2L), FluidRegistry.getFluidStack("solution.natriumhydroxide", 1000), (FluidStack)null, GT_OreDictUnificator.get(OrePrefixes.cell, "LiquidGlass", 2L), 950); - gregtech.api.util.GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), new Object[] {GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), IHLUtils.getOreDictItemStack("nuggetTarPitch")}); - gregtech.api.util.GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStackWithSize("dustIrongraphite", 2), new Object[] {GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L)}); - gregtech.api.util.GT_ModHandler.addSmeltingRecipe(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Coal, 1L)); - gregtech.api.util.GT_ModHandler.addSmeltingRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, 1L)); - GregTech_API.sRecipeAdder.addFormingPressRecipe(IHLUtils.getThisModItemStack("dustIrongraphite"), ItemList.Shape_Mold_Cylinder.get(0L, new Object[0]), IHLUtils.getThisModItemStackWithSize("linerIronGraphite", 4), 950, 30); - GregTech_API.sRecipeAdder.addFormingPressRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), 950, 30); - GregTech_API.sRecipeAdder.addDistilleryRecipe(ItemList.Circuit_Integrated.getWithDamage(0, 0, new Object[] {null}), IHLUtils.getFluidStackWithSize("spruceresin", 1000), IHLUtils.getFluidStackWithSize("turpentine", 50), 3000, 30, false); - ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 5), IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), IHLUtils.getFluidStackWithSize("molten.rubber", 144*5)); - ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 20), IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), IHLUtils.getFluidStackWithSize("molten.rubber", 144*20)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 5), IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",20)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 20), IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",80)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",16), IHLUtils.getThisModItemStackWithSize("fabric",8), IHLUtils.getOreDictItemStack("dustGraphite"), IHLUtils.getThisModWireItemStackWithLength("pipeRubberWithSulfur",16)); + if (pfaacobblelimestone != null) { + GregTech_API.sRecipeAdder.addPulveriserRecipe(pfaacobblelimestone, + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4) }, new int[] { 10000 }, + 600, 30); + } + List<ItemStack> gypsumOreList3 = IHLUtils.getEntryListForOre("oreGypsum"); + Iterator<ItemStack> oreListIterator3 = gypsumOreList3.iterator(); + while (oreListIterator3.hasNext()) { + GregTech_API.sRecipeAdder.addPulveriserRecipe((oreListIterator3.next()), + new ItemStack[] { IHLUtils.getOreDictItemStack("dustGypsum") }, new int[] { 10000 }, 600, 30); + } + GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("orePotassiumFeldspar"), + new ItemStack[] { IHLUtils.getOreDictItemStack("dustPotassiumFeldspar") }, new int[] { 10000 }, 600, + 30); + GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("oreLimestone"), + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4) }, new int[] { 10000 }, 600, + 30); + GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStack("oreSaltpeter"), + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustSaltpeter", 4) }, new int[] { 10000 }, 600, + 30); + GregTech_API.sRecipeAdder.addPulveriserRecipe(IHLUtils.getThisModItemStackWithSize("stickGraphite", 2), + new ItemStack[] { IHLUtils.getOreDictItemStack("dustGraphite") }, new int[] { 10000 }, 600, 30); + GregTech_API.sRecipeAdder.addPulveriserRecipe(new ItemStack(Items.brick), + new ItemStack[] { IHLUtils.getOreDictItemStack("dustBrick") }, new int[] { 10000 }, 600, 30); + GregTech_API.sRecipeAdder.addChemicalRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Sodium, 1L), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 1L), + new FluidStack(FluidRegistry.WATER, 1500), + FluidRegistry.getFluidStack("solution.natriumhydroxide", 1000), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Hydrogen, 1L), 950); + GregTech_API.sRecipeAdder.addChemicalRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.SiliconDioxide, 1L), + GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Empty, 2L), + FluidRegistry.getFluidStack("solution.natriumhydroxide", 1000), (FluidStack) null, + GT_OreDictUnificator.get(OrePrefixes.cell, "LiquidGlass", 2L), 950); + gregtech.api.util.GT_ModHandler.addShapelessCraftingRecipe( + IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), + new Object[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1L), + IHLUtils.getOreDictItemStack("nuggetTarPitch") }); + gregtech.api.util.GT_ModHandler.addShapelessCraftingRecipe( + IHLUtils.getThisModItemStackWithSize("dustIrongraphite", 2), + new Object[] { GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Iron, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Graphite, 1L) }); + gregtech.api.util.GT_ModHandler.addSmeltingRecipe(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), + GT_OreDictUnificator.get(OrePrefixes.stick, Materials.Coal, 1L)); + gregtech.api.util.GT_ModHandler.addSmeltingRecipe( + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Calcite, 1L), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Quicklime, 1L)); + GregTech_API.sRecipeAdder.addFormingPressRecipe(IHLUtils.getThisModItemStack("dustIrongraphite"), + ItemList.Shape_Mold_Cylinder.get(0L, new Object[0]), + IHLUtils.getThisModItemStackWithSize("linerIronGraphite", 4), 950, 30); + GregTech_API.sRecipeAdder.addFormingPressRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), + ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), + IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), 950, 30); + GregTech_API.sRecipeAdder.addDistilleryRecipe( + ItemList.Circuit_Integrated.getWithDamage(0, 0, new Object[] { null }), + IHLUtils.getFluidStackWithSize("spruceresin", 1000), IHLUtils.getFluidStackWithSize("turpentine", 50), + 3000, 30, false); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 5), + IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 5)); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRawRubber", 20), + IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("dustRawRubber", 5), + new RecipeInputOreDict("dustTinySulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("dustRawRubber", 20), + new RecipeInputOreDict("dustSulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 80)); + WoodenRollingMachinePart1TileEntity.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 16)), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("fabric", 8)), + new RecipeInputOreDict("dustGraphite"), + IHLUtils.getThisModWireItemStackWithLength("pipeRubberWithSulfur", 16)); } - - private void loadGT6Recipes() - { + + private void loadGT6Recipes() { ItemStack hull_mv = Ic2Items.advancedMachine; - ItemStack gc = OreDictManager.INSTANCE.getStack(OP.cableGt08,MT.Gold, 1); - ItemStack sc = OreDictManager.INSTANCE.getStack(OP.cableGt08,MT.Silver, 1); - ItemStack ec = OreDictManager.INSTANCE.getStack(OP.cableGt08,MT.Electrum, 1); - ItemStack lp = OreDictManager.INSTANCE.getStack(OP.plate,MT.Lazurite, 1); - ItemStack sp = OreDictManager.INSTANCE.getStack(OP.plate,MT.Steel, 1); - ItemStack rotor_lv = OreDictManager.INSTANCE.getStack(OP.rotor,MT.Iron, 1); - ItemStack rotor_mv = OreDictManager.INSTANCE.getStack(OP.rotor,MT.Aluminium, 1); - ItemStack motor_lv = IL.Electric_Motor_LV.get(1,(Object) null); - ItemStack motor_mv = IL.Electric_Motor_MV.get(1,(Object) null); - ItemStack sensor_lv = IL.Sensor_LV.get(1,(Object) null); - ItemStack sensor_mv = IL.Sensor_MV.get(1,(Object) null); - ItemStack battery_lv_c = IL.Battery_RE_LV_Cadmium.get(1,(Object) null); - ItemStack battery_lv_l = IL.Battery_RE_LV_Lithium.get(1,(Object) null); - ItemStack battery_lv_s = IL.Battery_RE_LV_Sodium.get(1,(Object) null); - ItemStack battery_mv_c = IL.Battery_RE_MV_Cadmium.get(1,(Object) null); - ItemStack battery_mv_l = IL.Battery_RE_MV_Lithium.get(1,(Object) null); - ItemStack battery_mv_s = IL.Battery_RE_MV_Sodium.get(1,(Object) null); + ItemStack gc = OreDictManager.INSTANCE.getStack(OP.cableGt08, MT.Gold, 1); + ItemStack sc = OreDictManager.INSTANCE.getStack(OP.cableGt08, MT.Silver, 1); + ItemStack ec = OreDictManager.INSTANCE.getStack(OP.cableGt08, MT.Electrum, 1); + ItemStack lp = OreDictManager.INSTANCE.getStack(OP.plate, MT.Lazurite, 1); + ItemStack sp = OreDictManager.INSTANCE.getStack(OP.plate, MT.Steel, 1); + ItemStack rotor_lv = OreDictManager.INSTANCE.getStack(OP.rotor, MT.Iron, 1); + ItemStack rotor_mv = OreDictManager.INSTANCE.getStack(OP.rotor, MT.Aluminium, 1); + ItemStack motor_lv = IL.Electric_Motor_LV.get(1, (Object) null); + ItemStack motor_mv = IL.Electric_Motor_MV.get(1, (Object) null); + ItemStack sensor_lv = IL.Sensor_LV.get(1, (Object) null); + ItemStack sensor_mv = IL.Sensor_MV.get(1, (Object) null); + ItemStack battery_lv_c = IL.Battery_RE_LV_Cadmium.get(1, (Object) null); + ItemStack battery_lv_l = IL.Battery_RE_LV_Lithium.get(1, (Object) null); + ItemStack battery_lv_s = IL.Battery_RE_LV_Sodium.get(1, (Object) null); + ItemStack battery_mv_c = IL.Battery_RE_MV_Cadmium.get(1, (Object) null); + ItemStack battery_mv_l = IL.Battery_RE_MV_Lithium.get(1, (Object) null); + ItemStack battery_mv_s = IL.Battery_RE_MV_Sodium.get(1, (Object) null); ItemStack energy_crystal = IC2Items.getItem("energyCrystal"); - ItemStack pump = IL.Electric_Pump_MV.get(1,(Object) null); - ItemStack pump_hv = IL.Electric_Pump_HV.get(1,(Object) null); - + ItemStack pump = IL.Electric_Pump_MV.get(1, (Object) null); + ItemStack pump_hv = IL.Electric_Pump_HV.get(1, (Object) null); + IRecipeInput[] dsmInputs1 = new IRecipeInput[3]; - ItemStack gregtechfile = IHLUtils.getOtherModItemStackWithDamage("gregtech", "gt.metatool.01", 18,1); + ItemStack gregtechfile = IHLUtils.getOtherModItemStackWithDamage("gregtech", "gt.metatool.01", 18, 1); dsmInputs1[0] = new RecipeInputItemStack(gregtechfile); dsmInputs1[1] = new RecipeInputOreDict("dustDiamond"); dsmInputs1[2] = new RecipeInputOreDict("dustGunpowder"); - DetonationSprayingMachineTileEntity.addRecipe((new UniversalRecipeInput(null,dsmInputs1)), new UniversalRecipeOutput(null, new ItemStack[] {gregtechfile.copy()},2)); + DetonationSprayingMachineTileEntity.addRecipe((new UniversalRecipeInput(null, dsmInputs1)), + new UniversalRecipeOutput(null, new ItemStack[] { gregtechfile.copy() }, 2)); - if(IHLMod.config.enableRubberTreeSack) - { - long[] chances={10000,2000,2000,1000,100,0}; - Recipe.RecipeMap.sCoagulatorRecipes.addRecipe( - true, - new ItemStack[] {}, - new ItemStack[] {OreDictManager.INSTANCE.getStack(OP.nugget,MT.Rubber, 1)}, - null, - chances, - new FluidStack [] {new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"),22)}, - new FluidStack [] {}, - 16, 5, 0); + if (IHLMod.config.enableRubberTreeSack) { + long[] chances = { 10000, 2000, 2000, 1000, 100, 0 }; + Recipe.RecipeMap.sCoagulatorRecipes.addRecipe(true, new ItemStack[] {}, + new ItemStack[] { OreDictManager.INSTANCE.getStack(OP.nugget, MT.Rubber, 1) }, null, chances, + new FluidStack[] { new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 500) }, + new FluidStack[] {}, 64, 0, 0); } - - if(IHLMod.config.enableHandpump) - { - GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_c}); - GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_l}); - GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_s}); - GT_ModHandler.addCraftingRecipe(((AdvancedHandPump) ic2_advanced_handpump).getItemStack(0), new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.TungstenSteel), Character.valueOf('P'), pump_hv, Character.valueOf('B'), energy_crystal}); + + if (IHLMod.config.enableHandpump) { + GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), + Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_c }); + GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), + Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_l }); + GT_ModHandler.addCraftingRecipe(((IHLHandPump) ic2_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.Steel), + Character.valueOf('P'), pump, Character.valueOf('B'), battery_mv_s }); + GT_ModHandler.addCraftingRecipe(((AdvancedHandPump) ic2_advanced_handpump).getItemStack(0), + new Object[] { "T ", " P ", " B", Character.valueOf('T'), OP.pipeSmall.get(MT.TungstenSteel), + Character.valueOf('P'), pump_hv, Character.valueOf('B'), energy_crystal }); } - if(IHLMod.config.enableTunnelingShield) - { - GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), GT_ModHandler.RecipeBits.BUFFERED, new Object[] { "RfR", "BwB", "PPP", Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('B'), OP.bolt.get(MT.Steel), Character.valueOf('P'), OP.plate.get(MT.Steel)}); - GT_ModHandler.addCraftingRecipe(new ItemStack(driverBlock,1), new Object[] { " ", " H ", " M ", Character.valueOf('H'), IC2Items.getItem("machine"), Character.valueOf('M'), IC2Items.getItem("elemotor")}); + if (IHLMod.config.enableTunnelingShield) { + GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), + GT_ModHandler.RecipeBits.BUFFERED, + new Object[] { "RfR", "BwB", "PPP", Character.valueOf('R'), OP.stick.get(MT.Steel), + Character.valueOf('B'), OP.bolt.get(MT.Steel), Character.valueOf('P'), + OP.plate.get(MT.Steel) }); + GT_ModHandler.addCraftingRecipe(new ItemStack(driverBlock, 1), + new Object[] { " ", " H ", " M ", Character.valueOf('H'), IC2Items.getItem("machine"), + Character.valueOf('M'), IC2Items.getItem("elemotor") }); } - if(IHLMod.config.enableCollectors) - { - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), motor_mv, Character.valueOf('B'), battery_mv_c}); - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), motor_mv, Character.valueOf('B'), battery_mv_l}); - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), motor_mv, Character.valueOf('B'), battery_mv_s}); - - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, Character.valueOf('B'), battery_lv_c}); - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, Character.valueOf('B'), battery_lv_l}); - GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, Character.valueOf('B'), battery_lv_s}); - - GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock,1), new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), new ItemStack(Blocks.glass,1), Character.valueOf('C'), gc, Character.valueOf('L'), hull_mv}); - GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock,1), new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), new ItemStack(Blocks.glass,1), Character.valueOf('C'), sc, Character.valueOf('L'), hull_mv}); - GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock,1), new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), new ItemStack(Blocks.glass,1), Character.valueOf('C'), ec, Character.valueOf('L'), hull_mv}); + if (IHLMod.config.enableCollectors) { + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), + sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), + motor_mv, Character.valueOf('B'), battery_mv_c }); + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), + sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), + motor_mv, Character.valueOf('B'), battery_mv_l }); + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorHeavyItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_mv, Character.valueOf('S'), + sensor_mv, Character.valueOf('R'), OP.stick.get(MT.Aluminium), Character.valueOf('M'), + motor_mv, Character.valueOf('B'), battery_mv_s }); + + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), + sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, + Character.valueOf('B'), battery_lv_c }); + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), + sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, + Character.valueOf('B'), battery_lv_l }); + GT_ModHandler.addCraftingRecipe(((CollectorItem) collectorItem).getItemStack(0), + new Object[] { "PSP", "RMR", "PBP", Character.valueOf('P'), rotor_lv, Character.valueOf('S'), + sensor_lv, Character.valueOf('R'), OP.stick.get(MT.Steel), Character.valueOf('M'), motor_lv, + Character.valueOf('B'), battery_lv_s }); + + GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock, 1), + new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), + new ItemStack(Blocks.glass, 1), Character.valueOf('C'), gc, Character.valueOf('L'), + hull_mv }); + GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock, 1), + new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), + new ItemStack(Blocks.glass, 1), Character.valueOf('C'), sc, Character.valueOf('L'), + hull_mv }); + GT_ModHandler.addCraftingRecipe(new ItemStack(IHLMod.chargerEjectorBlock, 1), + new Object[] { "PGP", "GCG", "GLG", Character.valueOf('P'), lp, Character.valueOf('G'), + new ItemStack(Blocks.glass, 1), Character.valueOf('C'), ec, Character.valueOf('L'), + hull_mv }); } - if(IHLMod.config.enableFan) - { - GT_ModHandler.addCraftingRecipe(new ItemStack(blowerBlock,1), new Object[] { "PIP", "RHR", "IMI", Character.valueOf('P'), sp, Character.valueOf('I'), new ItemStack(Blocks.iron_bars,1), Character.valueOf('R'), rotor_mv, Character.valueOf('H'), hull_mv, Character.valueOf('M'), motor_mv}); + if (IHLMod.config.enableFan) { + GT_ModHandler.addCraftingRecipe(new ItemStack(blowerBlock, 1), + new Object[] { "PIP", "RHR", "IMI", Character.valueOf('P'), sp, Character.valueOf('I'), + new ItemStack(Blocks.iron_bars, 1), Character.valueOf('R'), rotor_mv, + Character.valueOf('H'), hull_mv, Character.valueOf('M'), motor_mv }); } - if(IHLMod.config.enableFlexibleCablesCrafting) - { - GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), new Object[] { "PPS", "RRh", "RRd", Character.valueOf('P'), OP.plate.get(MT.Iron), Character.valueOf('S'), OP.screw.get(MT.Iron), Character.valueOf('R'), OP.stick.get(MT.Iron)}); - GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), new Object[] { " ", "fPs", " ", Character.valueOf('P'), OP.plate.get(MT.Steel)}); - GT_ModHandler.addCraftingRecipe(IHLUtils.getItemStackWithTag("setOfDies1_5sqmm","transverseSection",240), new Object[] { " f ", " P ", " s ", Character.valueOf('P'), OP.plate.get(MT.Steel)}); + if (IHLMod.config.enableFlexibleCablesCrafting) { + GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), + new Object[] { "PPS", "RRh", "RRd", Character.valueOf('P'), OP.plate.get(MT.Iron), + Character.valueOf('S'), OP.screw.get(MT.Iron), Character.valueOf('R'), + OP.stick.get(MT.Iron) }); + GT_ModHandler.addCraftingRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), + new Object[] { " ", "fPs", " ", Character.valueOf('P'), OP.plate.get(MT.Steel) }); + GT_ModHandler.addCraftingRecipe(IHLUtils.getItemStackWithTag("setOfDies1_5sqmm", "transverseSection", 240), + new Object[] { " f ", " P ", " s ", Character.valueOf('P'), OP.plate.get(MT.Steel) }); } - if(pfaalimestone!=null) - { - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {pfaalimestone}, - new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); + if (pfaalimestone != null) { + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, new ItemStack[] { pfaalimestone }, + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4) }, null, + new long[] { 10000 }, new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); } - if(pfaacobblelimestone!=null) - { - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {pfaacobblelimestone}, - new ItemStack[] {IHLUtils.getOreDictItemStackWithSize("dustCalcite",4)}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); + if (pfaacobblelimestone != null) { + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, new ItemStack[] { pfaacobblelimestone }, + new ItemStack[] { IHLUtils.getOreDictItemStackWithSize("dustCalcite", 4) }, null, + new long[] { 10000 }, new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); } List<ItemStack> gypsumOreList = IHLUtils.getEntryListForOre("oreGypsum"); Iterator<ItemStack> oreListIterator = gypsumOreList.iterator(); - while(oreListIterator.hasNext()) - { - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {oreListIterator.next().copy()}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustGypsum")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); + while (oreListIterator.hasNext()) { + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, new ItemStack[] { oreListIterator.next().copy() }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustGypsum") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); } - - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("orePotassiumFeldspar")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustPotassiumFeldspar")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("oreLimestone")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustCalcite")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("oreSaltpeter")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustSaltpeter")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {new ItemStack(Items.brick)}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustBrick")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getOreDictItemStack("stickGraphite")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("dustSmallGraphite")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), new Object[] {OreDictManager.INSTANCE.getStack(OP.dust,MT.Coal,1), IHLUtils.getOreDictItemStack("nuggetTarPitch")}); - GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStackWithSize("dustIrongraphite",2), new Object[] {OreDictManager.INSTANCE.getStack(OP.dust,MT.Iron,1), OreDictManager.INSTANCE.getStack(OP.dust,MT.Graphite,1)}); - GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStackWithSize("dustPorcelain",4), new Object[] {OreDictManager.INSTANCE.getStack(OP.dust,MT.Clay,1),OreDictManager.INSTANCE.getStack(OP.dust,MT.Clay,1), OreDictManager.INSTANCE.getStack(OP.dust,MT.SiliconDioxide,1), OreDictManager.INSTANCE.getStack(OP.dust,MT.PotassiumFeldspar,1)}); - GT_ModHandler.addSmeltingRecipe(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), OreDictManager.INSTANCE.getStack(OP.stick,MT.Coal, 1)); - GT_ModHandler.addSmeltingRecipe(OreDictManager.INSTANCE.getStack(OP.dust,MT.Calcite, 1), OreDictManager.INSTANCE.getStack("dustQuicklime", 1)); - Recipe.RecipeMap.sPressRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("dustIrongraphite"), IL.Shape_Mold_Cylinder.get(0)}, - new ItemStack[] {IHLUtils.getThisModItemStackWithSize("linerIronGraphite",4)}, - null, - new long[]{10000}, - new FluidStack[]{}, - new FluidStack[]{}, - 950,30,0); - Recipe.RecipeMap.sPressRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), IL.Shape_Extruder_Rod.get(0)}, - new ItemStack[] {IHLUtils.getThisModItemStack("stickCoalElectrodePremix")}, - null, - new long[]{10000}, - new FluidStack[]{}, - new FluidStack[]{}, - 950,30,0); - Recipe.RecipeMap.sPressRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStack("foilRubberWithSulfur"), IL.Shape_Extruder_Casing.get(0)}, - new ItemStack[] {IHLUtils.getThisModItemStack("batteryCellsEbonite")}, - null, - new long[]{10000}, - new FluidStack[]{}, - new FluidStack[]{}, - 950,30,0); - Recipe.RecipeMap.sCompressorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getThisModItemStackWithSize("foilMica",4)}, - new ItemStack[] {IHLUtils.getThisModItemStack("plateMica")}, - null, - new long[]{10000}, - new FluidStack[]{}, - new FluidStack[]{}, - 950,30,0); - Recipe.RecipeMap.sMaceratorRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getOreDictItemStack("oreGyubnera")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("crushedGyubnera")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); - Recipe.RecipeMap.sCentrifugeRecipes.addRecipe( - true, - new ItemStack[] {IHLUtils.getOreDictItemStack("crushedGyubnera")}, - new ItemStack[] {IHLUtils.getOreDictItemStack("crushedPurifiedGyubnera"),IHLUtils.getOreDictItemStack("dustPotassiumFeldspar")}, - null, - new long[]{10000}, - new FluidStack [] {}, - new FluidStack [] {}, - 600, 30, 0); + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStack("orePotassiumFeldspar") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustPotassiumFeldspar") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStack("oreLimestone") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustCalcite") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStack("oreSaltpeter") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustSaltpeter") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, new ItemStack[] { new ItemStack(Items.brick) }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustBrick") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getOreDictItemStack("stickGraphite") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("dustSmallGraphite") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), + new Object[] { OreDictManager.INSTANCE.getStack(OP.dust, MT.Coal, 1), + IHLUtils.getOreDictItemStack("nuggetTarPitch") }); + GT_ModHandler.addShapelessCraftingRecipe(IHLUtils.getThisModItemStackWithSize("dustIrongraphite", 2), + new Object[] { OreDictManager.INSTANCE.getStack(OP.dust, MT.Iron, 1), + OreDictManager.INSTANCE.getStack(OP.dust, MT.Graphite, 1) }); + GT_ModHandler.addSmeltingRecipe(IHLUtils.getThisModItemStack("stickCoalElectrodePremix"), + OreDictManager.INSTANCE.getStack(OP.stick, MT.Coal, 1)); + GT_ModHandler.addSmeltingRecipe(OreDictManager.INSTANCE.getStack(OP.dust, MT.Calcite, 1), + OreDictManager.INSTANCE.getStack("dustQuicklime", 1)); + Recipe.RecipeMap.sPressRecipes.addRecipe(true, + new ItemStack[] { OreDictManager.INSTANCE.getStack(OP.dust, MT.Iron, 1), + OreDictManager.INSTANCE.getStack(OP.dust, MT.Graphite, 1) }, + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("linerIronGraphite", 4) }, null, + new long[] { 10000 }, new FluidStack[] {}, new FluidStack[] {}, 950, 30, 0); + Recipe.RecipeMap.sPressRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStack("dustCoalElectrodePremix"), + IL.Shape_Extruder_Rod.get(0) }, + new ItemStack[] { IHLUtils.getThisModItemStack("stickCoalElectrodePremix") }, null, + new long[] { 10000 }, new FluidStack[] {}, new FluidStack[] {}, 950, 30, 0); + Recipe.RecipeMap.sPressRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStack("foilRubberWithSulfur"), + IL.Shape_Extruder_Casing.get(0) }, + new ItemStack[] { IHLUtils.getThisModItemStack("batteryCellsEbonite") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 950, 30, 0); + Recipe.RecipeMap.sCompressorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getThisModItemStackWithSize("foilMica", 4) }, + new ItemStack[] { IHLUtils.getThisModItemStack("plateMica") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 950, 30, 0); + Recipe.RecipeMap.sMaceratorRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getOreDictItemStack("oreGyubnera") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("crushedGyubnera") }, null, new long[] { 10000 }, + new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + Recipe.RecipeMap.sCentrifugeRecipes.addRecipe(true, + new ItemStack[] { IHLUtils.getOreDictItemStack("crushedGyubnera") }, + new ItemStack[] { IHLUtils.getOreDictItemStack("crushedPurifiedGyubnera"), + IHLUtils.getOreDictItemStack("dustPotassiumFeldspar") }, + null, new long[] { 10000 }, new FluidStack[] {}, new FluidStack[] {}, 600, 30, 0); + Recipe.RecipeMap.sCentrifugeRecipes.addRecipe(true, new ItemStack[] {}, + new ItemStack[] { Ic2Items.resin.copy(), IHLUtils.getOreDictItemStack("dustTinyWood") }, null, + new long[] { 5000, 10000 }, + new FluidStack[] { new FluidStack(FluidRegistry.getFluid("fluidrubbertreesap"), 569) }, + new FluidStack[] { new FluidStack(FluidRegistry.getFluid("molten.latex"), 140), + new FluidStack(FluidRegistry.getFluid("glue"), 240), + new FluidStack(FluidRegistry.getFluid("water"), 100) }, + 64, 32, 0); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRubber", 5), + IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 5)); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("dustRubber", 20), + IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("dustRubber", 5), + new RecipeInputOreDict("dustTinySulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("dustRubber", 20), + new RecipeInputOreDict("dustSulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 80)); + WoodenRollingMachinePart1TileEntity.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 16)), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("fabric", 8)), + new RecipeInputOreDict("dustGraphite"), + IHLUtils.getThisModWireItemStackWithLength("pipeRubberWithSulfur", 16)); } - - private void loadIC2Recipes() - { + + private void loadIC2Recipes() { ItemStack crystal = IC2Items.getItem("lapotronCrystal").copy(); ItemStack advBattery = IC2Items.getItem("advBattery").copy(); ItemStack chargedReBattery = IC2Items.getItem("chargedReBattery").copy(); crystal.setItemDamage(OreDictionary.WILDCARD_VALUE); advBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); chargedReBattery.setItemDamage(OreDictionary.WILDCARD_VALUE); - if(IHLMod.config.enableTunnelingShield) - { - Recipes.advRecipes.addRecipe(new ItemStack(driverBlock,1), new Object[] { " ", " E ", " M ", Character.valueOf('E'), IC2Items.getItem("elemotor"), Character.valueOf('M'), IC2Items.getItem("machine")}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), new Object[] { "OOO", "PPP", " ", Character.valueOf('O'), IC2Items.getItem("obsidianDust"), Character.valueOf('P'), IC2Items.getItem("plateiron")}); + if (IHLMod.config.enableTunnelingShield) { + Recipes.advRecipes.addRecipe(new ItemStack(driverBlock, 1), + new Object[] { " ", " E ", " M ", Character.valueOf('E'), IC2Items.getItem("elemotor"), + Character.valueOf('M'), IC2Items.getItem("machine") }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("IHLShieldAssemblyUnitBlock"), + new Object[] { "OOO", "PPP", " ", Character.valueOf('O'), IC2Items.getItem("obsidianDust"), + Character.valueOf('P'), IC2Items.getItem("plateiron") }); } - if(IHLMod.config.enableFan) - { - Recipes.advRecipes.addRecipe(new ItemStack(blowerBlock,1), new Object[] { "PBP", "IEI", "PMP", Character.valueOf('P'), IC2Items.getItem("plateiron"), Character.valueOf('B'), new ItemStack(Blocks.iron_bars,1), Character.valueOf('I'), new ItemStack(Items.iron_ingot,1), Character.valueOf('E'), IC2Items.getItem("elemotor"), Character.valueOf('M'), IC2Items.getItem("machine")}); + if (IHLMod.config.enableFan) { + Recipes.advRecipes.addRecipe(new ItemStack(blowerBlock, 1), + new Object[] { "PBP", "IEI", "PMP", Character.valueOf('P'), IC2Items.getItem("plateiron"), + Character.valueOf('B'), new ItemStack(Blocks.iron_bars, 1), Character.valueOf('I'), + new ItemStack(Items.iron_ingot, 1), Character.valueOf('E'), IC2Items.getItem("elemotor"), + Character.valueOf('M'), IC2Items.getItem("machine") }); } - if(IHLMod.config.enableRubberTreeSack) - { - Recipes.advRecipes.addRecipe(new ItemStack(electricEvaporatorBlock,1), new Object[] { "CCC", "CCC", " F ", Character.valueOf('C'), IC2Items.getItem("platecopper"), Character.valueOf('F'), IC2Items.getItem("electroFurnace")}); + if (IHLMod.config.enableRubberTreeSack) { + Recipes.advRecipes.addRecipe(new ItemStack(electricEvaporatorBlock, 1), + new Object[] { "CCC", "CCC", " F ", Character.valueOf('C'), IC2Items.getItem("platecopper"), + Character.valueOf('F'), IC2Items.getItem("electroFurnace") }); } - if(IHLMod.config.enableFlexibleCablesCrafting) - { + if (IHLMod.config.enableFlexibleCablesCrafting) { ItemStack cutter = Ic2Items.cutter.copy(); cutter.setItemDamage(OreDictionary.WILDCARD_VALUE); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), new Object[] { " ", " PC", " ", Character.valueOf('P'), Ic2Items.plateadviron, Character.valueOf('C'), cutter}); - Recipes.advRecipes.addRecipe(IHLUtils.getItemStackWithTag("setOfDies1_5sqmm","transverseSection",240), new Object[] { " C ", " P ", " ", Character.valueOf('P'), Ic2Items.plateadviron, Character.valueOf('C'), cutter}); - Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), new Object[] { "P ", "P ", "P H", Character.valueOf('P'), Ic2Items.plateadviron, Character.valueOf('H'), Ic2Items.ForgeHammer}); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("setOfDies1_5sqmm"), new Object[] { " ", " PC", + " ", Character.valueOf('P'), Ic2Items.plateadviron, Character.valueOf('C'), cutter }); + Recipes.advRecipes.addRecipe(IHLUtils.getItemStackWithTag("setOfDies1_5sqmm", "transverseSection", 240), + new Object[] { " C ", " P ", " ", Character.valueOf('P'), Ic2Items.plateadviron, + Character.valueOf('C'), cutter }); + Recipes.advRecipes.addRecipe(IHLUtils.getThisModItemStack("ironWorkbench"), + new Object[] { "P ", "P ", "P H", Character.valueOf('P'), Ic2Items.plateadviron, + Character.valueOf('H'), Ic2Items.ForgeHammer }); } - ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 5), IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), IHLUtils.getFluidStackWithSize("molten.rubber", 144*5)); - ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 20), IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), IHLUtils.getFluidStackWithSize("molten.rubber", 144*20)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 5), IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",20)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 20), IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",80)); - WoodenRollingMachinePart1TileEntity.addRecipe(IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur",16), IHLUtils.getThisModItemStackWithSize("fabric",8), IHLUtils.getOreDictItemStack("dustGraphite"), IHLUtils.getThisModWireItemStackWithLength("pipeRubberWithSulfur",16)); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 5), + IHLUtils.getOreDictItemStackWithSize("dustTinySulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 5)); + ExtruderTileEntity.addRecipe(IHLUtils.getOreDictItemStackWithSize("itemRubber", 20), + IHLUtils.getOreDictItemStackWithSize("dustSulfur", 1), + IHLUtils.getFluidStackWithSize("molten.rubber", 144 * 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("itemRubber", 5), + new RecipeInputOreDict("dustTinySulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 20)); + WoodenRollingMachinePart1TileEntity.addRecipe(new RecipeInputOreDict("itemRubber", 20), + new RecipeInputOreDict("dustSulfur", 1), + IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 80)); + WoodenRollingMachinePart1TileEntity.addRecipe( + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("foilRubberWithSulfur", 16)), + new RecipeInputItemStack(IHLUtils.getThisModItemStackWithSize("fabric", 8)), + new RecipeInputOreDict("dustGraphite"), + IHLUtils.getThisModWireItemStackWithLength("pipeRubberWithSulfur", 16)); } } diff --git a/ihl/IHLModConfig.java b/ihl/IHLModConfig.java index c48acba..f62ca7d 100644 --- a/ihl/IHLModConfig.java +++ b/ihl/IHLModConfig.java @@ -41,6 +41,8 @@ import net.minecraft.nbt.NBTTagCompound; public class IHLModConfig
{
+ public int explosionVectorSizeBits=8;
+
public int handpumpTier=1;
public int handpumpMaxCharge=30000;
public int handpumpOperationEUCost=180;
@@ -169,6 +171,8 @@ public class IHLModConfig mirrorReflectionRange = config.get(Configuration.CATEGORY_GENERAL, "mirrorReflectionRange", mirrorReflectionRange).getInt();
mirrorReflectionUpdateSpeed = config.get(Configuration.CATEGORY_GENERAL, "mirrorReflectionUpdateSpeed", mirrorReflectionUpdateSpeed).getInt();
+ explosionVectorSizeBits = config.get(Configuration.CATEGORY_GENERAL, "explosionVectorSizeBits", explosionVectorSizeBits).getInt();
+
Property blp = config.get(Configuration.CATEGORY_GENERAL, "ts02BlockBlackList", bl);
Property wlp = config.get(Configuration.CATEGORY_GENERAL, "ts02BlockWhiteList", wl);
if(blp.isList())
diff --git a/ihl/IHLModInfo.java b/ihl/IHLModInfo.java index 4fc82a8..a0bc53c 100644 --- a/ihl/IHLModInfo.java +++ b/ihl/IHLModInfo.java @@ -3,5 +3,5 @@ package ihl; public class IHLModInfo {
public static final String MODID = "ihl";
public static final String MODNAME = "IHL Tools & Machines for IC2V2";
- public static final String MODVERSION = "0.612";
+ public static final String MODVERSION = "0.617";
}
diff --git a/ihl/explosion/ExplosionVectorBlockV2.java b/ihl/explosion/ExplosionVectorBlockV2.java index 5d94609..4ccf638 100644 --- a/ihl/explosion/ExplosionVectorBlockV2.java +++ b/ihl/explosion/ExplosionVectorBlockV2.java @@ -30,7 +30,7 @@ public class ExplosionVectorBlockV2 {
public int[] startVectors = new int[1];
private final int[][] directionMasks = new int[8][3];
- private final int bits = 8;
+ private final int bits = IHLMod.config.explosionVectorSizeBits;
private final int maxValue = (1<<bits)-1;
private final int maxArraySize = (1<<bits*3)-1;
public final int[][] vectors = new int[maxArraySize][2];
diff --git a/ihl/items_blocks/FlexibleCableItem.java b/ihl/items_blocks/FlexibleCableItem.java index 54710cb..7fd2583 100644 --- a/ihl/items_blocks/FlexibleCableItem.java +++ b/ihl/items_blocks/FlexibleCableItem.java @@ -37,529 +37,428 @@ import ihl.utils.IHLUtils; public class FlexibleCableItem extends Item implements IWire {
@SideOnly(Side.CLIENT)
- IIcon thickCopper,
- thinIron,
- thickIron,
- insulatedCopperRawruber,
- insulatedThickCopperRawruber,
- insulatedIronRawruber,
- insulatedThickIronRawruber,
- insulatedCopperRuber,
- insulatedThickCopperRuber,
- insulatedIronRuber,
- insulatedThickIronRuber;
- public static FlexibleCableItem instance;
+ IIcon thickCopper, thinIron, thickIron, insulatedCopperRawruber, insulatedThickCopperRawruber,
+ insulatedIronRawruber, insulatedThickIronRawruber, insulatedCopperRuber, insulatedThickCopperRuber,
+ insulatedIronRuber, insulatedThickIronRuber;
+ public static FlexibleCableItem instance;
public final Set<String> yellowColoredWires = new HashSet<String>(3);
- public boolean isDataCable=false;
-
- public FlexibleCableItem()
- {
- super();
- yellowColoredWires.add("Gold");
- yellowColoredWires.add("Copper");
- yellowColoredWires.add("Bronze");
+ public boolean isDataCable = false;
+
+ public FlexibleCableItem() {
+ super();
+ yellowColoredWires.add("Gold");
+ yellowColoredWires.add("Copper");
+ yellowColoredWires.add("Bronze");
this.setCreativeTab(IHLCreativeTab.tab);
this.setMaxStackSize(1);
this.setFull3D();
- instance=this;
+ instance = this;
}
@Override
@SideOnly(Side.CLIENT)
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public void getSubItems(Item item, CreativeTabs tabs, List itemList)
- {
- itemList.add(IHLUtils.getUninsulatedWire("Copper", 160, 15));
- itemList.add(IHLUtils.getUninsulatedWire("Copper", 160, 240));
- itemList.add(IHLUtils.getUninsulatedWire("Steel", 160, 15));
- itemList.add(IHLUtils.getUninsulatedWire("Steel", 160, 240));
- itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 15,"RawRubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 240,"RawRubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 15,"RawRubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 240,"RawRubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 15,"Rubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 240,"Rubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 15,"Rubber",100));
- itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 240,"Rubber",100));
- }
-
- public static void init()
- {
- GameRegistry.registerItem(new FlexibleCableItem(),"copperWire");
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ public void getSubItems(Item item, CreativeTabs tabs, List itemList) {
+ itemList.add(IHLUtils.getUninsulatedWire("Copper", 160, 15));
+ itemList.add(IHLUtils.getUninsulatedWire("Copper", 160, 240));
+ itemList.add(IHLUtils.getUninsulatedWire("Steel", 160, 15));
+ itemList.add(IHLUtils.getUninsulatedWire("Steel", 160, 240));
+ itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 15, "RawRubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 240, "RawRubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 15, "RawRubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 240, "RawRubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 15, "Rubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Copper", 160, 240, "Rubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 15, "Rubber", 100));
+ itemList.add(IHLUtils.getInsulatedWire("Steel", 160, 240, "Rubber", 100));
+ }
+
+ public static void init() {
+ GameRegistry.registerItem(new FlexibleCableItem(), "copperWire");
}
-
- @Override
- public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10)
- {
- TileEntity t = world.getTileEntity(x, y, z);
- short facing = IHLUtils.getFacingFromPlayerView(player, true);
- if(!world.isRemote && t instanceof IEnergyTile && !(t instanceof IMultiPowerCableHolder) && !(t instanceof ICableHolder))
- {
- ForgeDirection direction = ForgeDirection.getOrientation(facing);
- x+=direction.offsetX;
- y+=direction.offsetY;
- z+=direction.offsetZ;
- t=world.getTileEntity(x, y, z);
- if(IHLUtils.isBlockCanBeReplaced(world, x,y,z))
- {
- world.setBlock(x, y, z, IHLMod.cableAnchorBlock);
- }
- else if(!(t instanceof AnchorTileEntity))
- {
- return false;
- }
- t=world.getTileEntity(x, y, z);
- }
- if(world.isRemote)world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, "step.stone", 1.0F, 0.8F);
- if(!world.isRemote && t!=null &&
- ((t instanceof IEnergyNetNode && !isDataCable) ||
- (t instanceof IMultiPowerCableHolder && !isDataCable) ||
- (t instanceof IDataCableHolder && isDataCable)) &&
- stack.stackTagCompound.getInteger("fullLength")>=1)
- {
- double ppx,ppy,ppz;
- ICableHolder te;
- if(t instanceof IMultiPowerCableHolder)
- {
- facing = ((IMultiPowerCableHolder)t).getSide(player);
- if(facing==-1)
- {
- return false;
- }
- else
- {
- te = ((IMultiPowerCableHolder)t).getEnergyNetNode(facing);
- }
- }
- else
- {
- te = (ICableHolder)t;
- }
- ppx=te.getPortPos(player)[0];
- ppy=te.getPortPos(player)[1];
- ppz=te.getPortPos(player)[2];
- if(stack.stackTagCompound.getBoolean("firstConnection"))
- {
- int x1 = stack.stackTagCompound.getInteger("connectorX");
- int y1 = stack.stackTagCompound.getInteger("connectorY");
- int z1 = stack.stackTagCompound.getInteger("connectorZ");
- int l1=stack.stackTagCompound.getInteger("fullLength");
- int l2=stack.stackTagCompound.getInteger("length");
- if(x==x1 && y==y1 && z==z1)
- {
- this.cleanUp(stack.stackTagCompound.getInteger("chainUID"));
- stack.stackTagCompound.setBoolean("firstConnection", false);
- stack.stackTagCompound.setInteger("length", l1);
- return true;
- }
- int t2DimensionId = stack.stackTagCompound.getInteger("connectorDimensionId");
- short facing2 = stack.stackTagCompound.getShort("connectorFacing");
- TileEntity t2 = MinecraftServer.getServer().worldServerForDimension(t2DimensionId).getTileEntity(x1, y1, z1);
- if(t2==null)
- {
- stack.stackTagCompound.setBoolean("firstConnection", false);
- return false;
- }
- else
- {
- if(t2 instanceof IMultiPowerCableHolder)
- {
- te = ((IMultiPowerCableHolder)t2).getEnergyNetNode(facing);
- }
- else
- {
- te = (ICableHolder)t2;
- }
- te.setCableCheck(true);
- }
- this.connect(t,facing, t2, facing2, stack);
- stack.stackTagCompound.setInteger("fullLength", l2);
- if(l2<=0)
- {
- stack.stackSize--;
- }
- stack.stackTagCompound.setBoolean("firstConnection", false);
- stack.stackTagCompound.setInteger("chainArrangeNumber",stack.stackTagCompound.getInteger("chainArrangeNumber")+1);
- x=x1;
- y=y1;
- z=z1;
- }
- else
- {
- te.setCableCheck(false);
- stack.stackTagCompound.setBoolean("firstConnection", true);
- stack.stackTagCompound.setInteger("connectorX", x);
- stack.stackTagCompound.setInteger("connectorY", y);
- stack.stackTagCompound.setInteger("connectorZ", z);
- stack.stackTagCompound.setShort("connectorFacing", facing);
- stack.stackTagCompound.setInteger("connectorDimensionId", world.provider.dimensionId);
- stack.stackTagCompound.setInteger("prevDimensionId", world.provider.dimensionId);
- stack.stackTagCompound.setInteger("chainArrangeNumber",0);
- stack.stackTagCompound.setInteger("chainUID",world.rand.nextInt());
- stack.stackTagCompound.setDouble("prevNodePosX",ppx);
- stack.stackTagCompound.setDouble("prevNodePosY",ppy);
- stack.stackTagCompound.setDouble("prevNodePosZ",ppz);
- }
- NodeEntity node = newNode(world, player.posX, player.posY, player.posZ, stack, stack.stackTagCompound.getInteger("chainArrangeNumber"),x,y,z);
- node.virtualNodePosX=ppx;
- node.virtualNodePosY=ppy;
- node.virtualNodePosZ=ppz;
- return true;
- }
- else
- {
- return false;
- }
- }
- protected void connect(TileEntity t1,short facing, TileEntity t2, short facing2, ItemStack stack)
- {
- IEnergyNetNode te;
- IEnergyNetNode te1;
- if(t1 instanceof IEnergyNetNode)
- {
- te = (IEnergyNetNode)t1;
- }
- else
- {
- te = ((IMultiPowerCableHolder)t1).getEnergyNetNode(facing);
- }
- if(t2 instanceof IEnergyNetNode)
- {
- te1 = (IEnergyNetNode)t2;
- }
- else
- {
- te1 = ((IMultiPowerCableHolder)t2).getEnergyNetNode(facing2);
- }
- int newGridID=IHLMod.enet.mergeGrids(te.getGridID(),te1.getGridID());
- int l1=stack.stackTagCompound.getInteger("fullLength");
- int l2=stack.stackTagCompound.getInteger("length");
+ @Override
+ public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par7,
+ float par8, float par9, float par10) {
+ TileEntity t = world.getTileEntity(x, y, z);
+ short facing = IHLUtils.getFacingFromPlayerView(player, true);
+ if (!world.isRemote && t instanceof IEnergyTile && !(t instanceof IMultiPowerCableHolder)
+ && !(t instanceof ICableHolder)) {
+ ForgeDirection direction = ForgeDirection.getOrientation(facing);
+ x += direction.offsetX;
+ y += direction.offsetY;
+ z += direction.offsetZ;
+ t = world.getTileEntity(x, y, z);
+ if (IHLUtils.isBlockCanBeReplaced(world, x, y, z)) {
+ world.setBlock(x, y, z, IHLMod.cableAnchorBlock);
+ } else if (!(t instanceof AnchorTileEntity)) {
+ return false;
+ }
+ t = world.getTileEntity(x, y, z);
+ }
+ if (world.isRemote)
+ world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, "step.stone", 1.0F, 0.8F);
+ if (!world.isRemote && t != null
+ && ((t instanceof IEnergyNetNode && !isDataCable)
+ || (t instanceof IMultiPowerCableHolder && !isDataCable)
+ || (t instanceof IDataCableHolder && isDataCable))
+ && stack.stackTagCompound.getInteger("fullLength") >= 1) {
+ double ppx, ppy, ppz;
+ ICableHolder te;
+ if (t instanceof IMultiPowerCableHolder) {
+ facing = ((IMultiPowerCableHolder) t).getSide(player);
+ if (facing == -1) {
+ return false;
+ } else {
+ te = ((IMultiPowerCableHolder) t).getEnergyNetNode(facing);
+ }
+ } else {
+ te = (ICableHolder) t;
+ }
+ ppx = te.getPortPos(player)[0];
+ ppy = te.getPortPos(player)[1];
+ ppz = te.getPortPos(player)[2];
+ if (stack.stackTagCompound.getBoolean("firstConnection")) {
+ int x1 = stack.stackTagCompound.getInteger("connectorX");
+ int y1 = stack.stackTagCompound.getInteger("connectorY");
+ int z1 = stack.stackTagCompound.getInteger("connectorZ");
+ int l1 = stack.stackTagCompound.getInteger("fullLength");
+ int l2 = stack.stackTagCompound.getInteger("length");
+ if (x == x1 && y == y1 && z == z1) {
+ this.cleanUp(stack.stackTagCompound.getInteger("chainUID"));
+ stack.stackTagCompound.setBoolean("firstConnection", false);
+ stack.stackTagCompound.setInteger("length", l1);
+ return true;
+ }
+ int t2DimensionId = stack.stackTagCompound.getInteger("connectorDimensionId");
+ short facing2 = stack.stackTagCompound.getShort("connectorFacing");
+ TileEntity t2 = MinecraftServer.getServer().worldServerForDimension(t2DimensionId).getTileEntity(x1, y1,
+ z1);
+ if (t2 == null) {
+ stack.stackTagCompound.setBoolean("firstConnection", false);
+ return false;
+ } else {
+ if (t2 instanceof IMultiPowerCableHolder) {
+ te = ((IMultiPowerCableHolder) t2).getEnergyNetNode(facing);
+ } else {
+ te = (ICableHolder) t2;
+ }
+ te.setCableCheck(true);
+ }
+ this.connect(t, facing, t2, facing2, stack);
+ stack.stackTagCompound.setInteger("fullLength", l2);
+ if (l2 <= 0) {
+ stack.stackSize--;
+ }
+ stack.stackTagCompound.setBoolean("firstConnection", false);
+ stack.stackTagCompound.setInteger("chainArrangeNumber",
+ stack.stackTagCompound.getInteger("chainArrangeNumber") + 1);
+ x = x1;
+ y = y1;
+ z = z1;
+ } else {
+ te.setCableCheck(false);
+ stack.stackTagCompound.setBoolean("firstConnection", true);
+ stack.stackTagCompound.setInteger("connectorX", x);
+ stack.stackTagCompound.setInteger("connectorY", y);
+ stack.stackTagCompound.setInteger("connectorZ", z);
+ stack.stackTagCompound.setShort("connectorFacing", facing);
+ stack.stackTagCompound.setInteger("connectorDimensionId", world.provider.dimensionId);
+ stack.stackTagCompound.setInteger("prevDimensionId", world.provider.dimensionId);
+ stack.stackTagCompound.setInteger("chainArrangeNumber", 0);
+ stack.stackTagCompound.setInteger("chainUID", world.rand.nextInt());
+ stack.stackTagCompound.setDouble("prevNodePosX", ppx);
+ stack.stackTagCompound.setDouble("prevNodePosY", ppy);
+ stack.stackTagCompound.setDouble("prevNodePosZ", ppz);
+ }
+ NodeEntity node = newNode(world, player.posX, player.posY, player.posZ, stack,
+ stack.stackTagCompound.getInteger("chainArrangeNumber"), x, y, z);
+ node.virtualNodePosX = ppx;
+ node.virtualNodePosY = ppy;
+ node.virtualNodePosZ = ppz;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ protected void connect(TileEntity t1, short facing, TileEntity t2, short facing2, ItemStack stack) {
+ IEnergyNetNode te;
+ IEnergyNetNode te1;
+ if (t1 instanceof IEnergyNetNode) {
+ te = (IEnergyNetNode) t1;
+ } else {
+ te = ((IMultiPowerCableHolder) t1).getEnergyNetNode(facing);
+ }
+ if (t2 instanceof IEnergyNetNode) {
+ te1 = (IEnergyNetNode) t2;
+ } else {
+ te1 = ((IMultiPowerCableHolder) t2).getEnergyNetNode(facing2);
+ }
+ int newGridID = IHLMod.enet.mergeGrids(te.getGridID(), te1.getGridID());
+ int l1 = stack.stackTagCompound.getInteger("fullLength");
+ int l2 = stack.stackTagCompound.getInteger("length");
NBTTagCompound cable = (NBTTagCompound) stack.stackTagCompound.copy();
- cable.setInteger("length", l1-l2);
+ cable.setInteger("length", l1 - l2);
cable.setBoolean("firstConnection", false);
cable.setInteger("connectorX1", t1.xCoord);
cable.setInteger("connectorY1", t1.yCoord);
cable.setInteger("connectorZ1", t1.zCoord);
cable.setShort("connectorFacing1", facing);
cable.setInteger("connectorDimensionId1", t1.getWorldObj().provider.dimensionId);
- if(te.addCable(cable) && te1.addCable(cable))
- {
- te.setGrid(newGridID);
- te1.setGrid(newGridID);
+ if (te.addCable(cable) && te1.addCable(cable)) {
+ te.setGrid(newGridID);
+ te1.setGrid(newGridID);
}
- }
-
- private int getTransverseSection(ItemStack stack)
- {
- if(stack.stackTagCompound==null)
- {
- stack.stackTagCompound=new NBTTagCompound();
+ }
+
+ private int getTransverseSection(ItemStack stack) {
+ if (stack.stackTagCompound == null) {
+ stack.stackTagCompound = new NBTTagCompound();
}
return stack.stackTagCompound.getInteger("transverseSection");
}
- public String getMaterial(ItemStack stack)
- {
- if(stack.stackTagCompound==null)
- {
- stack.stackTagCompound=new NBTTagCompound();
+ public String getMaterial(ItemStack stack) {
+ if (stack.stackTagCompound == null) {
+ stack.stackTagCompound = new NBTTagCompound();
}
return stack.stackTagCompound.getString("material");
}
- public int getVoltageLimit(ItemStack stack)
- {
- if(stack.stackTagCompound==null)
- {
- stack.stackTagCompound=new NBTTagCompound();
+ public int getVoltageLimit(ItemStack stack) {
+ if (stack.stackTagCompound == null) {
+ stack.stackTagCompound = new NBTTagCompound();
+ }
+ if (stack.stackTagCompound.hasKey("maxVoltage")) {
+ return stack.stackTagCompound.getInteger("maxVoltage");
}
- if(stack.stackTagCompound.hasKey("maxVoltage"))
- {
- return stack.stackTagCompound.getInteger("maxVoltage");
- }
return 0;
}
- private long getResistance(ItemStack stack)
- {
- if(stack.stackTagCompound==null)
- {
- stack.stackTagCompound=new NBTTagCompound();
+ private long getResistance(ItemStack stack) {
+ if (stack.stackTagCompound == null) {
+ stack.stackTagCompound = new NBTTagCompound();
}
return IHLUtils.getResistance(stack.stackTagCompound);
}
- private void cleanUp(int uid)
- {
+ private void cleanUp(int uid) {
Set<NodeEntity> cs = IHLMod.proxy.nodeEntityRegistry.get(uid);
- if(cs!=null)
- {
- for(NodeEntity ne:cs)
- {
- if(ne!=null)
- {
+ if (cs != null) {
+ for (NodeEntity ne : cs) {
+ if (ne != null) {
ne.setDead();
}
}
}
}
-
- @Override
- public void onUpdate(ItemStack stack, World world, Entity entity, int slotIndex, boolean isCurrentItem)
- {
- if(!world.isRemote && stack.stackTagCompound!=null)
- {
- if(stack.stackTagCompound.getBoolean("firstConnection"))
- {
- int leight = stack.stackTagCompound.getInteger("length");
- if(leight>0)
- {
- double pnpx = stack.stackTagCompound.getDouble("prevNodePosX");
- double pnpy = stack.stackTagCompound.getDouble("prevNodePosY");
- double pnpz = stack.stackTagCompound.getDouble("prevNodePosZ");
- double ppx=entity.posX;
- double ppy=entity.posY;
- double ppz=entity.posZ;
-
- if(pnpx!=0D && pnpy!=0D && pnpz!=0D)
- {
- double sqd = (ppx - pnpx)*(ppx - pnpx) + (ppy - pnpy)*(ppy - pnpy) + (ppz - pnpz)*(ppz - pnpz);
- if(sqd>2D)
- {
- int can = stack.stackTagCompound.getInteger("chainArrangeNumber")+1;
- int cx = stack.stackTagCompound.getInteger("connectorX");
- int cy = stack.stackTagCompound.getInteger("connectorY");
- int cz = stack.stackTagCompound.getInteger("connectorZ");
- NodeEntity node = newNode(world, ppx, ppy, ppz, stack, can,cx,cy,cz);
- node.shouldFollowPlayer=true;
- node.virtualNodePosX=ppx+(ppx - pnpx)*2;
- node.virtualNodePosY=ppy+(ppy - pnpy)*2;
- node.virtualNodePosZ=ppz+(ppz - pnpz)*2;
- stack.stackTagCompound.setInteger("chainArrangeNumber",can);
- stack.stackTagCompound.setDouble("prevNodePosX",ppx);
- stack.stackTagCompound.setDouble("prevNodePosY",ppy);
- stack.stackTagCompound.setDouble("prevNodePosZ",ppz);
- stack.stackTagCompound.setInteger("length",--leight);
- stack.stackTagCompound.setInteger("prevDimensionId", world.provider.dimensionId);
- }
- }
- }
- }
- }
- }
-
- public void onPlayerTeleport(PlayerChangedDimensionEvent event)
- {
+ @Override
+ public void onUpdate(ItemStack stack, World world, Entity entity, int slotIndex, boolean isCurrentItem) {
+ if (!world.isRemote && stack.stackTagCompound != null) {
+ if (stack.stackTagCompound.getBoolean("firstConnection")) {
+ int leight = stack.stackTagCompound.getInteger("length");
+ if (leight > 0) {
+ double pnpx = stack.stackTagCompound.getDouble("prevNodePosX");
+ double pnpy = stack.stackTagCompound.getDouble("prevNodePosY");
+ double pnpz = stack.stackTagCompound.getDouble("prevNodePosZ");
+ double ppx = entity.posX;
+ double ppy = entity.posY;
+ double ppz = entity.posZ;
+
+ if (pnpx != 0D && pnpy != 0D && pnpz != 0D) {
+ double sqd = (ppx - pnpx) * (ppx - pnpx) + (ppy - pnpy) * (ppy - pnpy)
+ + (ppz - pnpz) * (ppz - pnpz);
+ if (sqd > 2D) {
+ int can = stack.stackTagCompound.getInteger("chainArrangeNumber") + 1;
+ int cx = stack.stackTagCompound.getInteger("connectorX");
+ int cy = stack.stackTagCompound.getInteger("connectorY");
+ int cz = stack.stackTagCompound.getInteger("connectorZ");
+ NodeEntity node = newNode(world, ppx, ppy, ppz, stack, can, cx, cy, cz);
+ node.shouldFollowPlayer = true;
+ node.virtualNodePosX = ppx + (ppx - pnpx) * 2;
+ node.virtualNodePosY = ppy + (ppy - pnpy) * 2;
+ node.virtualNodePosZ = ppz + (ppz - pnpz) * 2;
+ stack.stackTagCompound.setInteger("chainArrangeNumber", can);
+ stack.stackTagCompound.setDouble("prevNodePosX", ppx);
+ stack.stackTagCompound.setDouble("prevNodePosY", ppy);
+ stack.stackTagCompound.setDouble("prevNodePosZ", ppz);
+ stack.stackTagCompound.setInteger("length", --leight);
+ stack.stackTagCompound.setInteger("prevDimensionId", world.provider.dimensionId);
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public void onPlayerTeleport(PlayerChangedDimensionEvent event) {
EntityPlayer player = event.player;
- for(ItemStack stack:player.inventory.mainInventory)
- {
- if(stack!=null && stack.getItem() instanceof FlexibleCableItem)
- {
- if(stack.stackTagCompound.getBoolean("firstConnection"))
- {
+ for (ItemStack stack : player.inventory.mainInventory) {
+ if (stack != null && stack.getItem() instanceof FlexibleCableItem) {
+ if (stack.stackTagCompound.getBoolean("firstConnection")) {
int can = -1;
- Set<NodeEntity> ns = IHLMod.proxy.nodeEntityRegistry.get(stack.stackTagCompound.getInteger("chainUID"));
- if(ns!=null)
- {
+ Set<NodeEntity> ns = IHLMod.proxy.nodeEntityRegistry
+ .get(stack.stackTagCompound.getInteger("chainUID"));
+ if (ns != null) {
NodeEntity lastNode = null;
- for(NodeEntity node:ns)
- {
- node.shouldFollowPlayer=false;
- if(node.chainArrangeNumber>can)
- {
- lastNode=node;
- can=node.chainArrangeNumber;
+ for (NodeEntity node : ns) {
+ node.shouldFollowPlayer = false;
+ if (node.chainArrangeNumber > can) {
+ lastNode = node;
+ can = node.chainArrangeNumber;
}
}
- if(lastNode!=null)
- {
+ if (lastNode != null) {
lastNode.setVirtualNodePosToNearestPortal();
}
}
double[] cc = IHLUtils.tracePlayerView(player);
- can = stack.stackTagCompound.getInteger("chainArrangeNumber")+1;
- int cx = stack.stackTagCompound.getInteger("connectorX");
- int cy = stack.stackTagCompound.getInteger("connectorY");
- int cz = stack.stackTagCompound.getInteger("connectorZ");
- int leight = stack.stackTagCompound.getInteger("length");
- NodeEntity node = newNode(MinecraftServer.getServer().worldServerForDimension(event.toDim), cc[0], player.posY, cc[2], stack, can,cx,cy,cz);
+ can = stack.stackTagCompound.getInteger("chainArrangeNumber") + 1;
+ int cx = stack.stackTagCompound.getInteger("connectorX");
+ int cy = stack.stackTagCompound.getInteger("connectorY");
+ int cz = stack.stackTagCompound.getInteger("connectorZ");
+ int leight = stack.stackTagCompound.getInteger("length");
+ NodeEntity node = newNode(MinecraftServer.getServer().worldServerForDimension(event.toDim), cc[0],
+ player.posY, cc[2], stack, can, cx, cy, cz);
node.setVirtualNodePosToNearestPortal();
- stack.stackTagCompound.setInteger("chainArrangeNumber",can);
- stack.stackTagCompound.setDouble("prevNodePosX",cc[0]);
- stack.stackTagCompound.setDouble("prevNodePosY",cc[1]);
- stack.stackTagCompound.setDouble("prevNodePosZ",cc[2]);
- stack.stackTagCompound.setInteger("length",--leight);
- stack.stackTagCompound.setInteger("prevDimensionId", event.toDim);
+ stack.stackTagCompound.setInteger("chainArrangeNumber", can);
+ stack.stackTagCompound.setDouble("prevNodePosX", cc[0]);
+ stack.stackTagCompound.setDouble("prevNodePosY", cc[1]);
+ stack.stackTagCompound.setDouble("prevNodePosZ", cc[2]);
+ stack.stackTagCompound.setInteger("length", --leight);
+ stack.stackTagCompound.setInteger("prevDimensionId", event.toDim);
}
}
}
}
-
- protected NodeEntity newNode(World world, double ppx, double ppy, double ppz, ItemStack stack, int can, int x, int y, int z)
- {
- PowerCableNodeEntity node = new PowerCableNodeEntity(world);
+ protected NodeEntity newNode(World world, double ppx, double ppy, double ppz, ItemStack stack, int can, int x,
+ int y, int z) {
+ PowerCableNodeEntity node = new PowerCableNodeEntity(world);
node.setPosition(ppx, ppy, ppz);
node.setChainUniqueID(stack.stackTagCompound.getInteger("chainUID"));
short facing = stack.stackTagCompound.getShort("connectorFacing");
int dimensionId = stack.stackTagCompound.getInteger("connectorDimensionId");
- node.setAnchor(x, y, z,facing,dimensionId);
- node.chainArrangeNumber=can;
+ node.setAnchor(x, y, z, facing, dimensionId);
+ node.chainArrangeNumber = can;
node.colorIndex = this.getColor(stack);
node.addCable((NBTTagCompound) stack.stackTagCompound.copy());
- if(stack.stackTagCompound.hasKey("insulationMaterial"))
- {
- node.type=1;
- }
- else
- {
- node.type=0;
+ if (stack.stackTagCompound.hasKey("insulationMaterial")) {
+ node.type = 1;
+ } else {
+ node.type = 0;
}
world.spawnEntityInWorld(node);
return node;
- }
+ }
- private int getColor(ItemStack stack)
- {
- if(!stack.stackTagCompound.hasKey("insulationMaterial"))
- {
- if(yellowColoredWires.contains(this.getMaterial(stack)))
- {
+ private int getColor(ItemStack stack) {
+ if (!stack.stackTagCompound.hasKey("insulationMaterial")) {
+ if (yellowColoredWires.contains(this.getMaterial(stack))) {
return 0xFF9900;
- }
- else
- {
+ } else {
return 0xAAAABB;
}
- }
+ }
return 0xFFFFFF;
}
@Override
- @SuppressWarnings({ "rawtypes", "unchecked" })
- public void addInformation(ItemStack itemStack, EntityPlayer player, List info, boolean flag)
- {
- if(itemStack.stackTagCompound!=null)
- {
- info.add("Length: " + itemStack.stackTagCompound.getInteger("length") +" m");
- info.add("Wire material: " + this.getMaterial(itemStack));
- info.add("Resistivity: " + this.getResistance(itemStack)/1000F + " V^2/(EU*m)");
- info.add("Transverse section: " + this.getTransverseSection(itemStack)/10F + " sq. mm.");
- if(itemStack.stackTagCompound.hasKey("insulationMaterial"))
- {
- info.add("Insulation material: "+this.getInsulationMaterial(itemStack));
- info.add("Insulation thickness: " + this.getInsulationThickness(itemStack)/10f+" mm");
- info.add("Insulation breakdown voltage: "+ this.getVoltageLimit(itemStack)/1000 + " kV");
- }
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ public void addInformation(ItemStack itemStack, EntityPlayer player, List info, boolean flag) {
+ if (itemStack.stackTagCompound != null) {
+ info.add("Length: " + itemStack.stackTagCompound.getInteger("length") + " m");
+ info.add("Wire material: " + this.getMaterial(itemStack));
+ info.add("Resistivity: " + this.getResistance(itemStack) / 1000F + " V^2/(EU*m)");
+ info.add("Transverse section: " + this.getTransverseSection(itemStack) / 10F + " sq. mm.");
+ if (itemStack.stackTagCompound.hasKey("insulationMaterial")) {
+ info.add("Insulation material: " + this.getInsulationMaterial(itemStack));
+ info.add("Insulation thickness: " + this.getInsulationThickness(itemStack) / 10f + " mm");
+ info.add("Insulation breakdown voltage: " + this.getVoltageLimit(itemStack) / 1000 + " kV");
+ }
- }
- }
+ }
+ }
@Override
- public String getTag()
- {
+ public String getTag() {
return "length";
}
@Override
- public String getTagSecondary()
- {
+ public String getTagSecondary() {
return "fullLength";
}
-
+
@Override
- @SideOnly(Side.CLIENT)
- public void registerIcons(IIconRegister par1IconRegister)
- {
- this.itemIcon = par1IconRegister.registerIcon(IHLModInfo.MODID + ":copperWire");
- this.thickCopper = par1IconRegister.registerIcon(IHLModInfo.MODID + ":copperWire16x");
- this.thinIron = par1IconRegister.registerIcon(IHLModInfo.MODID + ":steelWire");
- this.thickIron = par1IconRegister.registerIcon(IHLModInfo.MODID + ":steelWire16x");
- this.insulatedIronRawruber = par1IconRegister.registerIcon(IHLModInfo.MODID + ":flexibleCableSteel2");
- }
-
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister par1IconRegister) {
+ this.itemIcon = par1IconRegister.registerIcon(IHLModInfo.MODID + ":copperWire");
+ this.thickCopper = par1IconRegister.registerIcon(IHLModInfo.MODID + ":copperWire16x");
+ this.thinIron = par1IconRegister.registerIcon(IHLModInfo.MODID + ":steelWire");
+ this.thickIron = par1IconRegister.registerIcon(IHLModInfo.MODID + ":steelWire16x");
+ this.insulatedIronRawruber = par1IconRegister.registerIcon(IHLModInfo.MODID + ":flexibleCableSteel2");
+ }
+
@Override
@SideOnly(Side.CLIENT)
- public IIcon getIcon(ItemStack stack, int i)
- {
- if(stack.stackTagCompound!=null)
- {
- if(this.getInsulationMaterial(stack).equals("null"))
- {
- if(this.getTransverseSection(stack)>=240)
- {
- if(yellowColoredWires.contains(this.getMaterial(stack)))
- {
+ public IIcon getIcon(ItemStack stack, int i) {
+ if (stack.stackTagCompound != null) {
+ if (this.getInsulationMaterial(stack).equals("null")) {
+ if (this.getTransverseSection(stack) >= 240) {
+ if (yellowColoredWires.contains(this.getMaterial(stack))) {
return this.thickCopper;
- }
- else
- {
+ } else {
return this.thickIron;
}
- }
- else
- {
- if(yellowColoredWires.contains(this.getMaterial(stack)))
- {
+ } else {
+ if (yellowColoredWires.contains(this.getMaterial(stack))) {
return this.itemIcon;
- }
- else
- {
+ } else {
return this.thinIron;
}
}
- }
- else
- {
+ } else {
return this.insulatedIronRawruber;
}
}
return this.itemIcon;
}
-
+
@Override
- public String getUnlocalizedName(ItemStack stack)
- {
- if(stack.stackTagCompound!=null && !this.getInsulationMaterial(stack).equals("null"))
- {
+ public String getUnlocalizedName(ItemStack stack) {
+ if (stack.stackTagCompound != null && !this.getInsulationMaterial(stack).equals("null")) {
return "cable";
}
return "wire";
}
@Override
- public boolean isSameWire(ItemStack stack1,ItemStack stack2)
- {
- if(stack1.getItem()==stack2.getItem() && stack1.getItemDamage()==stack2.getItemDamage())
- {
- if(stack1.stackTagCompound!=null && stack2.stackTagCompound!=null)
- {
- return this.getMaterial(stack1).equals(this.getMaterial(stack2)) &&
- this.getTransverseSection(stack1)==this.getTransverseSection(stack2) &&
- this.getInsulationMaterial(stack1).equals(this.getInsulationMaterial(stack2)) &&
- this.getInsulationThickness(stack1)==this.getInsulationThickness(stack2);
+ public boolean isSameWire(ItemStack stack1, ItemStack stack2) {
+ if (stack1.getItem() == stack2.getItem() && stack1.getItemDamage() == stack2.getItemDamage()) {
+ if (stack1.stackTagCompound != null && stack2.stackTagCompound != null) {
+ return this.getMaterial(stack1).equals(this.getMaterial(stack2))
+ && this.getTransverseSection(stack1) == this.getTransverseSection(stack2)
+ && this.getInsulationMaterial(stack1).equals(this.getInsulationMaterial(stack2))
+ && this.getInsulationThickness(stack1) == this.getInsulationThickness(stack2);
}
}
return false;
}
- public String getInsulationMaterial(ItemStack stack)
- {
- if(stack.stackTagCompound.hasKey("insulationMaterial"))
- {
- return stack.stackTagCompound.getString("insulationMaterial");
- }
+ public String getInsulationMaterial(ItemStack stack) {
+ if (stack.stackTagCompound.hasKey("insulationMaterial")) {
+ return stack.stackTagCompound.getString("insulationMaterial");
+ }
return "null";
}
-
- public int getInsulationThickness(ItemStack stack)
- {
- if(stack.stackTagCompound.hasKey("insulationThickness"))
- {
- return stack.stackTagCompound.getInteger("insulationThickness");
- }
+
+ public int getInsulationThickness(ItemStack stack) {
+ if (stack.stackTagCompound.hasKey("insulationThickness")) {
+ return stack.stackTagCompound.getInteger("insulationThickness");
+ }
return 0;
}
}
diff --git a/ihl/items_blocks/ItemSubstance.java b/ihl/items_blocks/ItemSubstance.java index 464878c..d934172 100644 --- a/ihl/items_blocks/ItemSubstance.java +++ b/ihl/items_blocks/ItemSubstance.java @@ -12,10 +12,8 @@ import ihl.utils.IHLUtils; import ihl.worldgen.ores.IHLFluid.IHLFluidType;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.List;
import java.util.Map;
-import java.util.Set;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.texture.IIconRegister;
@@ -274,7 +272,7 @@ public class ItemSubstance extends Item implements IItemHasMiniGUI{ CrushedPurifiedBauxite(126, "crushedPurifiedBauxite",true,"Al\u2082O\u2083\u00B7H\u2082O"),
CrushedBauxite(125, "crushedBauxite",true,"Al\u2082O\u2083�H\u2082O + SiO\u2082, Fe\u2082O\u2083"),
SodiumSulfide(124,"dustSodiumSulfide",true,"NaS"),
- SodiumSulfate(123,"dustSodiumSulfate",true,"NaSO\u2084"),
+ SodiumSulfate(123,"dustSodiumSulfate",true,"Na\u2082SO\u2084"),
dustWood(122,"dustWood",true),
Kenotron(121,"valveTube1C21P"),
HighVolatgeCapacitor(120,"highVoltageCapacitor"),
diff --git a/ihl/nei_integration/CryogenicDistillerRecipeHandler.java b/ihl/nei_integration/CryogenicDistillerRecipeHandler.java index 5b1a637..fe7caea 100644 --- a/ihl/nei_integration/CryogenicDistillerRecipeHandler.java +++ b/ihl/nei_integration/CryogenicDistillerRecipeHandler.java @@ -34,7 +34,7 @@ public class CryogenicDistillerRecipeHandler extends MachineRecipeHandler @Override
public void loadTransferRects()
{
- this.transferRects.add(new RecipeTransferRect(new Rectangle(102-5, 32-10, 18, 18), this.getRecipeId(), new Object[0]));
+ this.transferRects.add(new RecipeTransferRect(new Rectangle(57-5, 32-10, 63, 18), this.getRecipeId(), new Object[0]));
}
@Override
diff --git a/ihl/nei_integration/ExtruderRecipeHandler.java b/ihl/nei_integration/ExtruderRecipeHandler.java index 3dae277..a823ce6 100644 --- a/ihl/nei_integration/ExtruderRecipeHandler.java +++ b/ihl/nei_integration/ExtruderRecipeHandler.java @@ -1,73 +1,69 @@ package ihl.nei_integration;
+import java.awt.Rectangle;
import java.util.Map;
+import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect;
import ihl.processing.metallurgy.ExtruderGui;
import ihl.processing.metallurgy.ExtruderTileEntity;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
+public class ExtruderRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return ExtruderGui.class;
+ }
-public class ExtruderRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > getGuiClass()
- {
- return ExtruderGui.class;
- }
-
- @Override
- protected int[] getInputPosX()
- {
- return new int[]{39-5,57-5};
- }
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 39 - 5, 57 - 5 };
+ }
- @Override
- protected int[] getInputPosY()
- {
- return new int[]{32-11};
- }
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 32 - 11 };
+ }
- @Override
- protected int[] getOutputPosX()
- {
- return new int[]{92-5};
- }
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 92 - 5 };
+ }
- @Override
- protected int[] getOutputPosY()
- {
- return new int[]{32-11};
- }
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 32 - 11 };
+ }
- @Override
- public String getRecipeName()
- {
- return "Extruder";
- }
+ @Override
+ public String getRecipeName() {
+ return "Extruder";
+ }
- @Override
- public String getRecipeId()
- {
- return "ihl.extruder";
- }
+ @Override
+ public String getRecipeId() {
+ return "ihl.extruder";
+ }
- @Override
- public String getGuiTexture()
- {
- return "ihl:textures/gui/GUIExtruder.png";
- }
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUIExtruder.png";
+ }
- @Override
- public String getOverlayIdentifier()
- {
- return "extruder";
- }
+ @Override
+ public String getOverlayIdentifier() {
+ return "extruder";
+ }
- @Override
- public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
- {
- return ExtruderTileEntity.getRecipes();
- }
+ @Override
+ public void loadTransferRects() {
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(74 - 5, 31 - 10, 18, 18), this.getRecipeId(), new Object[0]));
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return ExtruderTileEntity.getRecipes();
+ }
}
diff --git a/ihl/nei_integration/InjectionMoldRecipeHandler.java b/ihl/nei_integration/InjectionMoldRecipeHandler.java index 106b41b..06bf3c1 100644 --- a/ihl/nei_integration/InjectionMoldRecipeHandler.java +++ b/ihl/nei_integration/InjectionMoldRecipeHandler.java @@ -1,5 +1,6 @@ package ihl.nei_integration;
+import java.awt.Rectangle;
import java.util.Map;
import ihl.processing.metallurgy.InjectionMoldTileEntity;
@@ -7,67 +8,62 @@ import ihl.recipes.UniversalRecipeInput; import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
+public class InjectionMoldRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return null;
+ }
-public class InjectionMoldRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > getGuiClass()
- {
- return null;
- }
-
- @Override
- protected int[] getInputPosX()
- {
- return new int[]{65-5};
- }
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 65 - 5 };
+ }
- @Override
- protected int[] getInputPosY()
- {
- return new int[]{15-11,51-11};
- }
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 15 - 11, 51 - 11 };
+ }
- @Override
- protected int[] getOutputPosX()
- {
- return new int[]{101-5};
- }
-
- @Override
- protected int[] getOutputPosY()
- {
- return new int[]{51-11};
- }
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 101 - 5 };
+ }
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 51 - 11 };
+ }
- @Override
- public String getRecipeName()
- {
- return "Injection mold";
- }
+ @Override
+ public String getRecipeName() {
+ return "Injection mold";
+ }
- @Override
- public String getRecipeId()
- {
- return "ihl.casting";
- }
+ @Override
+ public String getRecipeId() {
+ return "ihl.casting";
+ }
- @Override
- public String getGuiTexture()
- {
- return "ihl:textures/gui/GUICastingNEI.png";
- }
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUICastingNEI.png";
+ }
- @Override
- public String getOverlayIdentifier()
- {
- return "casting";
- }
+ @Override
+ public String getOverlayIdentifier() {
+ return "casting";
+ }
- @Override
- public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
- {
- return InjectionMoldTileEntity.getRecipes();
- }
+ @Override
+ public void loadTransferRects() {
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(64 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0]));
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(82 - 5, 50 - 10, 18, 18), this.getRecipeId(), new Object[0]));
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return InjectionMoldTileEntity.getRecipes();
+ }
}
diff --git a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java index 6948a31..ad40647 100644 --- a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java +++ b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java @@ -3,82 +3,68 @@ package ihl.nei_integration; import java.awt.Rectangle;
import java.util.Map;
-import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect;
import ihl.processing.chemistry.LabElectrolyzerGui;
import ihl.processing.chemistry.LabElectrolyzerTileEntity;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
+public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return LabElectrolyzerGui.class;
+ }
-public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > getGuiClass()
- {
- return LabElectrolyzerGui.class;
- }
-
- @Override
- protected int[] getInputPosX()
- {
- return new int[]{42-5,60-5,78-5};
- }
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 42 - 5, 60 - 5, 78 - 5 };
+ }
- @Override
- protected int[] getInputPosY()
- {
- return new int[]{15-11};
- }
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 15 - 11 };
+ }
- @Override
- protected int[] getOutputPosX()
- {
- return new int[]{8-5,87-5,106-5};
- }
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 8 - 5, 87 - 5, 106 - 5 };
+ }
- @Override
- protected int[] getOutputPosY()
- {
- return new int[]{15-11,51-11,15-11};
- }
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 15 - 11, 51 - 11, 15 - 11 };
+ }
+ @Override
+ public String getRecipeName() {
+ return "Lab electrolyzer";
+ }
- @Override
- public String getRecipeName()
- {
- return "Lab electrolyzer";
- }
+ @Override
+ public String getRecipeId() {
+ return "ihl.labElectrolyzer";
+ }
- @Override
- public String getRecipeId()
- {
- return "ihl.labElectrolyzer";
- }
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUILabElectrolyzer.png";
+ }
- @Override
- public String getGuiTexture()
- {
- return "ihl:textures/gui/GUILabElectrolyzer.png";
- }
-
- @Override
- public void loadTransferRects()
- {
- this.transferRects.add(new RecipeTransferRect(new Rectangle(7-5,32-10, 18, 18), this.getRecipeId(), new Object[0]));
- this.transferRects.add(new RecipeTransferRect(new Rectangle(86-5,32-10, 37, 18), this.getRecipeId(), new Object[0]));
- }
+ @Override
+ public void loadTransferRects() {
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(7 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0]));
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(86 - 5, 32 - 10, 37, 18), this.getRecipeId(), new Object[0]));
+ }
+ @Override
+ public String getOverlayIdentifier() {
+ return "labElectrolyzer";
+ }
- @Override
- public String getOverlayIdentifier()
- {
- return "labElectrolyzer";
- }
-
- @Override
- public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
- {
- return LabElectrolyzerTileEntity.getRecipes();
- }
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return LabElectrolyzerTileEntity.getRecipes();
+ }
}
diff --git a/ihl/nei_integration/PrecipitatorCondenserRecipeHandler.java b/ihl/nei_integration/PrecipitatorCondenserRecipeHandler.java index 530ebaf..1b771fc 100644 --- a/ihl/nei_integration/PrecipitatorCondenserRecipeHandler.java +++ b/ihl/nei_integration/PrecipitatorCondenserRecipeHandler.java @@ -1,5 +1,6 @@ package ihl.nei_integration;
+import java.awt.Rectangle;
import java.util.Map;
import ihl.processing.chemistry.PrecipitatorCondenserTileEntity;
@@ -7,67 +8,60 @@ import ihl.recipes.UniversalRecipeInput; import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
+public class PrecipitatorCondenserRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return null;
+ }
-public class PrecipitatorCondenserRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > getGuiClass()
- {
- return null;
- }
-
- @Override
- protected int[] getInputPosX()
- {
- return new int[]{6-5,6-5,106-5};
- }
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 6 - 5, 6 - 5, 106 - 5 };
+ }
- @Override
- protected int[] getInputPosY()
- {
- return new int[]{33-11,53-11};
- }
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 33 - 11, 53 - 11 };
+ }
- @Override
- protected int[] getOutputPosX()
- {
- return new int[]{75-5};
- }
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 75 - 5 };
+ }
- @Override
- protected int[] getOutputPosY()
- {
- return new int[]{53-11,31-11};
- }
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 53 - 11, 31 - 11 };
+ }
+ @Override
+ public String getRecipeName() {
+ return "Precipitator/Condenser";
+ }
- @Override
- public String getRecipeName()
- {
- return "Precipitator/Condenser";
- }
+ @Override
+ public String getRecipeId() {
+ return "ihl.precipitatorCondenser";
+ }
- @Override
- public String getRecipeId()
- {
- return "ihl.precipitatorCondenser";
- }
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUICondenserNEI.png";
+ }
- @Override
- public String getGuiTexture()
- {
- return "ihl:textures/gui/GUICondenserNEI.png";
- }
+ @Override
+ public String getOverlayIdentifier() {
+ return "condenser";
+ }
- @Override
- public String getOverlayIdentifier()
- {
- return "condenser";
- }
+ @Override
+ public void loadTransferRects() {
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(23 - 5, 10 - 10, 50, 58), this.getRecipeId(), new Object[0]));
+ }
- @Override
- public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
- {
- return PrecipitatorCondenserTileEntity.getRecipes();
- }
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return PrecipitatorCondenserTileEntity.getRecipes();
+ }
}
diff --git a/ihl/processing/chemistry/ChemicalReactorTileEntity.java b/ihl/processing/chemistry/ChemicalReactorTileEntity.java index cec4177..ea3427c 100644 --- a/ihl/processing/chemistry/ChemicalReactorTileEntity.java +++ b/ihl/processing/chemistry/ChemicalReactorTileEntity.java @@ -230,7 +230,7 @@ public class ChemicalReactorTileEntity extends BasicElectricMotorTileEntity impl if(te instanceof CryogenicDistillerTileEntity)
{
CryogenicDistillerTileEntity cgte = (CryogenicDistillerTileEntity)te;
- cgte.fill(ForgeDirection.getOrientation(this.getFacing()), recipeInput.getFluidInputs().get(1).getInputs().get(0), true);
+ cgte.fill(ForgeDirection.getOrientation(this.getFacing()).getOpposite(), recipeInput.getFluidInputs().get(0).getInputs().get(0), true);
}
}
this.fluidTank.drain(recipeInput.getFluidInputs(), true);
diff --git a/ihl/processing/chemistry/CryogenicDistillerGui.java b/ihl/processing/chemistry/CryogenicDistillerGui.java index 3fbbfa4..2bfd969 100644 --- a/ihl/processing/chemistry/CryogenicDistillerGui.java +++ b/ihl/processing/chemistry/CryogenicDistillerGui.java @@ -2,7 +2,9 @@ package ihl.processing.chemistry; import org.lwjgl.opengl.GL11;
+import ic2.core.IC2;
import ihl.utils.IHLRenderUtils;
+import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.ResourceLocation;
@@ -15,43 +17,55 @@ public class CryogenicDistillerGui extends GuiContainer { super(latheContainer);
container = latheContainer;
}
-
-
- @Override
- protected void drawGuiContainerForegroundLayer(int par1, int par2) {
- int xOffset = (this.width - xSize) / 2;
- int yOffset = (this.height - ySize) / 2;
-
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.renderEngine.bindTexture(tex);
- int i1;
- if (this.container.tileEntity.getEnergy() > 0D)
- {
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.9F);
- i1 = Math.min(this.container.tileEntity.getGUIEnergy(12),12);
- this.drawTexturedModalRect(9, 15 + 12 - i1, 176, 12 - i1, 14, i1 + 2);
- }
- if (this.container.tileEntity.progress > 0)
- {
- i1 = Math.min(this.container.tileEntity.gaugeProgressScaled(18),18);
- this.drawTexturedModalRect(81, 35, 198, 0, i1 + 1, 13);
- }
- if (this.container.tileEntity.fluidTankProducts.getFluid()!=null && this.container.tileEntity.fluidTankProducts.getFluidAmount() > 0)
- {
- IHLRenderUtils.instance.renderIHLFluidTank(this.container.tileEntity.fluidTankProducts, 125, 28, 137, 67, zLevel, par1, par2, xOffset, yOffset);
- }
- }
-
- @Override
- protected void drawGuiContainerBackgroundLayer(float par1, int par2,
- int par3) {
- //draw your Gui here, only thing you need to change is the path
- GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
- this.mc.renderEngine.bindTexture(tex);
- int x = (width - xSize) / 2;
- int y = (height - ySize) / 2;
- this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
- }
+
+ @SuppressWarnings("unchecked")
+ @Override
+ public void initGui() {
+ super.initGui();
+ int x = (width - xSize) / 2;
+ int y = (height - ySize) / 2;
+ this.buttonList.add(new GuiButton(0, x + 7, y + 49, 49, 20, "Empty"));
+ }
+
+ @Override
+ public void actionPerformed(GuiButton button) {
+ super.actionPerformed(button);
+ IC2.network.get().initiateClientTileEntityEvent(this.container.tileEntity, button.id);
+ }
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(int par1, int par2) {
+ int xOffset = (this.width - xSize) / 2;
+ int yOffset = (this.height - ySize) / 2;
+
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ this.mc.renderEngine.bindTexture(tex);
+ int i1;
+ if (this.container.tileEntity.getEnergy() > 0D) {
+ GL11.glEnable(GL11.GL_BLEND);
+ GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 0.9F);
+ i1 = Math.min(this.container.tileEntity.getGUIEnergy(12), 12);
+ this.drawTexturedModalRect(9, 15 + 12 - i1, 176, 12 - i1, 14, i1 + 2);
+ }
+ if (this.container.tileEntity.progress > 0) {
+ i1 = Math.min(this.container.tileEntity.gaugeProgressScaled(18), 18);
+ this.drawTexturedModalRect(81, 35, 198, 0, i1 + 1, 13);
+ }
+ if (this.container.tileEntity.fluidTankProducts.getFluid() != null
+ && this.container.tileEntity.fluidTankProducts.getFluidAmount() > 0) {
+ IHLRenderUtils.instance.renderIHLFluidTank(this.container.tileEntity.fluidTankProducts, 125, 28, 137, 67,
+ zLevel, par1, par2, xOffset, yOffset);
+ }
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
+ // draw your Gui here, only thing you need to change is the path
+ GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
+ this.mc.renderEngine.bindTexture(tex);
+ int x = (width - xSize) / 2;
+ int y = (height - ySize) / 2;
+ this.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
+ }
}
diff --git a/ihl/processing/chemistry/CryogenicDistillerTileEntity.java b/ihl/processing/chemistry/CryogenicDistillerTileEntity.java index 5a0194f..1ed4e36 100644 --- a/ihl/processing/chemistry/CryogenicDistillerTileEntity.java +++ b/ihl/processing/chemistry/CryogenicDistillerTileEntity.java @@ -1,9 +1,9 @@ package ihl.processing.chemistry;
import java.util.Arrays;
-import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import ic2.core.ContainerBase;
import ic2.core.block.invslot.InvSlot;
@@ -16,7 +16,6 @@ import ihl.recipes.UniversalRecipeManager; import ihl.recipes.UniversalRecipeOutput;
import ihl.utils.IHLFluidTank;
import ihl.utils.IHLUtils;
-import net.minecraft.block.Block;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
@@ -24,195 +23,154 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.Fluid;
-import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
-public class CryogenicDistillerTileEntity extends BasicElectricMotorTileEntity implements IFluidHandler{
+public class CryogenicDistillerTileEntity extends BasicElectricMotorTileEntity implements IFluidHandler {
- public final InvSlotConsumableLiquidIHL fillInputSlotInput;
- public final InvSlotOutput fluidItemsSlot;
- public final InvSlotConsumableLiquidIHL fillInputSlotProducts;
+ public final InvSlotConsumableLiquidIHL fillInputSlotInput;
+ public final InvSlotOutput fluidItemsSlot;
+ public final InvSlotConsumableLiquidIHL fillInputSlotProducts;
- private int processTimer=0;
private IHLFluidTank fluidTankInput = new IHLFluidTank(8000);
public IHLFluidTank fluidTankProducts = new IHLFluidTank(8000);
protected static final UniversalRecipeManager recipeManager = new UniversalRecipeManager("cryogenicdistiller");
- public CryogenicDistillerTileEntity()
- {
+ public CryogenicDistillerTileEntity() {
super();
- this.fillInputSlotInput = new InvSlotConsumableLiquidIHL(this, "fillInputSlotInput", -1, InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
- this.fillInputSlotProducts = new InvSlotConsumableLiquidIHL(this, "fillInputSlotProducts", -1, InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
+ this.fillInputSlotInput = new InvSlotConsumableLiquidIHL(this, "fillInputSlotInput", -1, InvSlot.Access.I, 1,
+ InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
+ this.fillInputSlotProducts = new InvSlotConsumableLiquidIHL(this, "fillInputSlotProducts", -1, InvSlot.Access.I,
+ 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
this.fluidItemsSlot = new InvSlotOutput(this, "fluidCellsOutput", 2, 2);
}
-
+
@Override
public String getInventoryName() {
return "CryogenicDistiller";
}
-
- @Override
- public void updateEntityServer()
- {
- super.updateEntityServer();
- ForgeDirection dir = ForgeDirection.getOrientation(getFacing());
- if(this.processTimer++>20 && this.energy>=this.energyConsume)
- {
- this.energy-=this.energyConsume;
- this.processTimer=0;
- dir = dir.getOpposite();
- Block block = worldObj.getBlock(xCoord+dir.offsetX,yCoord+dir.offsetY,zCoord+dir.offsetZ);
- if(block!=null && block.isAir(worldObj, xCoord+dir.offsetX,yCoord+dir.offsetY,zCoord+dir.offsetZ) && this.fluidTankInput.getFluidAmount()<1000)
- {
- if(this.fluidTankInput.getFluid()==null || (this.fluidTankInput.getNumberOfFluids()<=1 && this.fluidTankInput.getFluid().getFluid()==FluidRegistry.getFluid("air")))
- {
- this.fluidTankInput.fill(IHLUtils.getFluidStackWithSize("air", 1000-(this.fluidTankInput.getFluid()!=null?this.fluidTankInput.getFluid().amount:0)),true);
- }
- }
- TileEntity teOnTop = worldObj.getTileEntity(xCoord, yCoord+1, zCoord);
- if(teOnTop instanceof IFluidHandler && this.fluidTankProducts.getLigthestFluid()!=null)
- {
- IFluidHandler topFH = (IFluidHandler)teOnTop;
- if(topFH.canFill(ForgeDirection.DOWN, this.fluidTankProducts.getLigthestFluid().getFluid()))
- {
- FluidStack fsToDrain = this.fluidTankProducts.getLigthestFluid().copy();
- fsToDrain.amount=topFH.fill(ForgeDirection.DOWN, fsToDrain, true);
- this.fluidTankProducts.drain(fsToDrain, true);
- }
- }
- ForgeDirection orientation = ForgeDirection.getOrientation(this.getFacing());
- TileEntity teOnFront = worldObj.getTileEntity(xCoord+orientation.offsetX, yCoord, zCoord+orientation.offsetZ);
- if(teOnFront instanceof IFluidHandler && this.fluidTankProducts.getFluid()!=null)
- {
- IFluidHandler frontFH = (IFluidHandler)teOnFront;
- if(frontFH.canFill(orientation, this.fluidTankProducts.getFluid().getFluid()))
- {
- FluidStack fsToDrain = this.fluidTankProducts.getFluid().copy();
- fsToDrain.amount=frontFH.fill(orientation, fsToDrain, true);
- this.fluidTankProducts.drain(fsToDrain, true);
- }
- }
- }
- IHLUtils.handleFluidSlotsBehaviour(fillInputSlotProducts, null, fluidItemsSlot, fluidTankProducts);
- }
-
+
+ @Override
+ public void updateEntityServer() {
+ super.updateEntityServer();
+ IHLUtils.handleFluidSlotsBehaviour(fillInputSlotProducts, null, fluidItemsSlot, fluidTankProducts);
+ }
+
@Override
- public ItemStack getWrenchDrop(EntityPlayer player)
- {
+ public ItemStack getWrenchDrop(EntityPlayer player) {
return IHLUtils.getThisModItemStack("cryogenicDistiller");
}
-
+
@Override
@SideOnly(Side.CLIENT)
public GuiScreen getGui(EntityPlayer player, boolean arg1) {
return new CryogenicDistillerGui(new CryogenicDistillerContainer(player, this));
}
-
+
@Override
public ContainerBase<?> getGuiContainer(EntityPlayer player) {
return new CryogenicDistillerContainer(player, this);
}
-
- @Override
- public void operate()
- {
- if (!this.fillInputSlotInput.isEmpty() && this.fluidTankInput.getFluid().getFluid()==FluidRegistry.getFluid("air"))
- {
- IHLUtils.handleFluidSlotsBehaviour(fillInputSlotInput, null, fluidItemsSlot, fluidTankInput);
- }
- else
- {
- UniversalRecipeInput ri = CryogenicDistillerTileEntity.recipeManager.getRecipeInput(getInput());
- Iterator<FluidStack> listFluidOutputsIterator = getOutput().getFluidOutputs().iterator();
- while(listFluidOutputsIterator.hasNext())
- {
- this.fluidTankProducts.fill(listFluidOutputsIterator.next(), true);
- }
- this.fluidTankInput.drain(ri.getFluidInputs().get(0), true);
- }
- }
-
- public UniversalRecipeOutput getOutput()
- {
- return CryogenicDistillerTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
- }
-
+
+ @Override
+ public void operate() {
+ UniversalRecipeInput ri = CryogenicDistillerTileEntity.recipeManager.getRecipeInput(getInput());
+ this.fluidTankProducts.fill(getOutput().getFluidOutputs(), true);
+ this.fluidTankInput.drain(ri.getFluidInputs().get(0), true);
+ TileEntity teOnTop = worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
+ if (teOnTop instanceof IFluidHandler && this.fluidTankProducts.getLigthestFluid() != null) {
+ IFluidHandler topFH = (IFluidHandler) teOnTop;
+ if (topFH.canFill(ForgeDirection.DOWN, this.fluidTankProducts.getLigthestFluid().getFluid())) {
+ FluidStack fsToDrain = this.fluidTankProducts.getLigthestFluid().copy();
+ fsToDrain.amount = topFH.fill(ForgeDirection.DOWN, fsToDrain, true);
+ this.fluidTankProducts.drain(fsToDrain, true);
+ }
+ }
+ ForgeDirection orientation = ForgeDirection.getOrientation(this.getFacing());
+ TileEntity teOnFront = worldObj.getTileEntity(xCoord + orientation.offsetX, yCoord,
+ zCoord + orientation.offsetZ);
+ if (teOnFront instanceof IFluidHandler && this.fluidTankProducts.getFluid() != null) {
+ IFluidHandler frontFH = (IFluidHandler) teOnFront;
+ if (frontFH.canFill(orientation, this.fluidTankProducts.getFluid().getFluid())) {
+ FluidStack fsToDrain = this.fluidTankProducts.getFluid().copy();
+ fsToDrain.amount = frontFH.fill(orientation, fsToDrain, true);
+ this.fluidTankProducts.drain(fsToDrain, true);
+ }
+ }
+ }
+
+ public UniversalRecipeOutput getOutput() {
+ return CryogenicDistillerTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
+ }
+
@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
- public List[] getInput()
- {
- return new List [] {Arrays.asList(new FluidStack [] {this.fluidTankInput.getLigthestFluid()}),null};
+ public List[] getInput() {
+ return new List[] {Arrays.asList(new FluidStack[] {this.fluidTankInput.getLigthestFluid()}), null };
}
-
+
@Override
- public boolean canOperate()
- {
- return this.getOutput()!=null;
+ public boolean canOperate() {
+ return this.getOutput() != null;
}
@Override
- public void onGuiClosed(EntityPlayer arg0) {}
-
+ public void onGuiClosed(EntityPlayer arg0) {
+ }
+
@Override
- public void readFromNBT(NBTTagCompound nbttagcompound)
- {
- super.readFromNBT(nbttagcompound);
- this.fluidTankInput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankInput"));
- this.fluidTankProducts.readFromNBT(nbttagcompound.getCompoundTag("fluidTankProducts"));
- }
+ public void readFromNBT(NBTTagCompound nbttagcompound) {
+ super.readFromNBT(nbttagcompound);
+ this.fluidTankInput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankInput"));
+ this.fluidTankProducts.readFromNBT(nbttagcompound.getCompoundTag("fluidTankProducts"));
+ }
@Override
- public void writeToNBT(NBTTagCompound nbttagcompound)
- {
- super.writeToNBT(nbttagcompound);
- NBTTagCompound fluidTankInputTag = new NBTTagCompound();
- this.fluidTankInput.writeToNBT(fluidTankInputTag);
- nbttagcompound.setTag("fluidTankInput", fluidTankInputTag);
- NBTTagCompound fluidTankProductsTag = new NBTTagCompound();
- this.fluidTankProducts.writeToNBT(fluidTankProductsTag);
- nbttagcompound.setTag("fluidTankProducts", fluidTankProductsTag);
- }
+ public void writeToNBT(NBTTagCompound nbttagcompound) {
+ super.writeToNBT(nbttagcompound);
+ NBTTagCompound fluidTankInputTag = new NBTTagCompound();
+ this.fluidTankInput.writeToNBT(fluidTankInputTag);
+ nbttagcompound.setTag("fluidTankInput", fluidTankInputTag);
+ NBTTagCompound fluidTankProductsTag = new NBTTagCompound();
+ this.fluidTankProducts.writeToNBT(fluidTankProductsTag);
+ nbttagcompound.setTag("fluidTankProducts", fluidTankProductsTag);
+ }
- public static void addRecipe(FluidStack input, FluidStack output, FluidStack output2, boolean specialCondition)
- {
- if(output2!=null)
- {
- recipeManager.addRecipe(new UniversalRecipeInput(new FluidStack[] {input},null), new UniversalRecipeOutput(new FluidStack[] {output,output2},null,20,specialCondition));
- }
- else
- {
- recipeManager.addRecipe(new UniversalRecipeInput(new FluidStack[] {input},null), new UniversalRecipeOutput(new FluidStack[] {output},null,20,specialCondition));
+ public static void addRecipe(FluidStack input, FluidStack output, FluidStack output2, boolean specialCondition) {
+ if (output2 != null) {
+ recipeManager.addRecipe(new UniversalRecipeInput(new FluidStack[] { input }, null),
+ new UniversalRecipeOutput(new FluidStack[] { output, output2 }, null, 20, specialCondition));
+ } else {
+ recipeManager.addRecipe(new UniversalRecipeInput(new FluidStack[] { input }, null),
+ new UniversalRecipeOutput(new FluidStack[] { output }, null, 20, specialCondition));
}
}
-
public static Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipes() {
return recipeManager.getRecipes();
}
-
- public boolean canProcess()
- {
- return this.energy>=this.maxStorage && this.fluidTankInput.getFluidAmount()<1000;
+
+ public boolean canProcess() {
+ return this.energy >= this.energyConsume;
}
@Override
public boolean canDrain(ForgeDirection dir, Fluid arg1) {
- return dir.getOpposite().equals(ForgeDirection.getOrientation(this.getFacing())) || dir.equals(ForgeDirection.UP);
+ return dir.equals(ForgeDirection.getOrientation(this.getFacing()))
+ || dir.equals(ForgeDirection.UP);
}
@Override
public boolean canFill(ForgeDirection dir, Fluid fluid) {
- return dir.equals(ForgeDirection.getOrientation(this.getFacing()));
+ return dir.equals(ForgeDirection.getOrientation(this.getFacing()).getOpposite());
}
@Override
public FluidStack drain(ForgeDirection dir, FluidStack fstack, boolean doDrain) {
- if(this.canDrain(dir, null))
- {
+ if (this.canDrain(dir, null)) {
return this.fluidTankProducts.drain(fstack, doDrain);
}
return null;
@@ -220,10 +178,8 @@ public class CryogenicDistillerTileEntity extends BasicElectricMotorTileEntity i @Override
public FluidStack drain(ForgeDirection dir, int amount, boolean doDrain) {
- if(this.canDrain(dir, null))
- {
- if(dir.equals(ForgeDirection.UP))
- {
+ if (this.canDrain(dir, null)) {
+ if (dir.equals(ForgeDirection.UP)) {
return this.fluidTankProducts.drainLightest(amount, doDrain);
}
return this.fluidTankProducts.drain(amount, doDrain);
@@ -232,20 +188,25 @@ public class CryogenicDistillerTileEntity extends BasicElectricMotorTileEntity i }
@Override
- public int fill(ForgeDirection dir, FluidStack fstack, boolean doFill)
- {
- if(fstack!=null && fstack.getFluid()!=null && this.canFill(dir, fstack.getFluid()))
- {
- this.fluidTankInput.drain(IHLUtils.getFluidStackWithSize("air", this.fluidTankInput.getCapacity()), true);
+ public int fill(ForgeDirection dir, FluidStack fstack, boolean doFill) {
+ if (fstack != null && fstack.getFluid() != null && this.canFill(dir, fstack.getFluid())) {
return this.fluidTankInput.fill(fstack, doFill);
}
return 0;
}
@Override
- public FluidTankInfo[] getTankInfo(ForgeDirection dir)
- {
- return new FluidTankInfo[] {this.fluidTankInput.getInfo(),this.fluidTankProducts.getInfo()};
+ public FluidTankInfo[] getTankInfo(ForgeDirection dir) {
+ return new FluidTankInfo[] { this.fluidTankInput.getInfo(), this.fluidTankProducts.getInfo() };
}
-
+
+ @Override
+ public void onNetworkEvent(EntityPlayer player, int event) {
+ switch (event) {
+ case 0:
+ this.fluidTankProducts.setEmpty();
+ break;
+ }
+ }
+
}
diff --git a/ihl/processing/chemistry/LabElectrolyzerTileEntity.java b/ihl/processing/chemistry/LabElectrolyzerTileEntity.java index 10feef6..f8c00ad 100644 --- a/ihl/processing/chemistry/LabElectrolyzerTileEntity.java +++ b/ihl/processing/chemistry/LabElectrolyzerTileEntity.java @@ -29,105 +29,102 @@ import ihl.recipes.UniversalRecipeOutput; import ihl.utils.IHLFluidTank;
import ihl.utils.IHLUtils;
-public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity implements IFluidHandler
-{
+public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity implements IFluidHandler {
private final static UniversalRecipeManager recipeManager = new UniversalRecipeManager("labelectrolyzer");
- public final IHLInvSlotOutput outputSlot;
- public final InvSlotConsumableLiquidIHL drainInputSlot;
- public final InvSlotConsumableLiquidIHL fillInputSlot;
- public final InvSlotConsumableLiquidIHL fillInputSlotAnodeOutput;
- public final InvSlotConsumableLiquidIHL fillInputSlotCathodeOutput;
- public final InvSlotOutput emptyFluidItemsSlot;
+ public final IHLInvSlotOutput outputSlot;
+ public final InvSlotConsumableLiquidIHL drainInputSlot;
+ public final InvSlotConsumableLiquidIHL fillInputSlot;
+ public final InvSlotConsumableLiquidIHL fillInputSlotAnodeOutput;
+ public final InvSlotConsumableLiquidIHL fillInputSlotCathodeOutput;
+ public final InvSlotOutput emptyFluidItemsSlot;
private final IHLFluidTank fluidTank = new IHLFluidTank(2000);
public final IHLFluidTank fluidTankAnodeOutput = new IHLFluidTank(8000);
public final IHLFluidTank fluidTankCathodeOutput = new IHLFluidTank(8000);
- public short temperature=20;
-
+ public short temperature = 20;
+
public LabElectrolyzerTileEntity() {
super();
- this.outputSlot = new IHLInvSlotOutput(this, "output", 0, 2);
- this.drainInputSlot = new InvSlotConsumableLiquidIHL(this, "drainInput", -1, InvSlot.Access.I, 1, InvSlot.InvSide.TOP, InvSlotConsumableLiquid.OpType.Drain);
- this.fillInputSlot = new InvSlotConsumableLiquidIHL(this, "fillInput", -1, InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
- this.fillInputSlotAnodeOutput = new InvSlotConsumableLiquidIHL(this, "fillInputAnodeOutput", -1, InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
- this.fillInputSlotCathodeOutput = new InvSlotConsumableLiquidIHL(this, "fillInputCathodeOutput", -1, InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
+ this.energyConsume *= 10;
+ this.outputSlot = new IHLInvSlotOutput(this, "output", 0, 2);
+ this.drainInputSlot = new InvSlotConsumableLiquidIHL(this, "drainInput", -1, InvSlot.Access.I, 1,
+ InvSlot.InvSide.TOP, InvSlotConsumableLiquid.OpType.Drain);
+ this.fillInputSlot = new InvSlotConsumableLiquidIHL(this, "fillInput", -1, InvSlot.Access.I, 1,
+ InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
+ this.fillInputSlotAnodeOutput = new InvSlotConsumableLiquidIHL(this, "fillInputAnodeOutput", -1,
+ InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
+ this.fillInputSlotCathodeOutput = new InvSlotConsumableLiquidIHL(this, "fillInputCathodeOutput", -1,
+ InvSlot.Access.I, 1, InvSlot.InvSide.BOTTOM, InvSlotConsumableLiquid.OpType.Fill);
this.emptyFluidItemsSlot = new InvSlotOutput(this, "fluidCellsOutput", 2, 3);
}
-
- @Override
- public void readFromNBT(NBTTagCompound nbttagcompound)
- {
- super.readFromNBT(nbttagcompound);
- this.fluidTank.readFromNBT(nbttagcompound.getCompoundTag("fluidTank"));
- this.fluidTankAnodeOutput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankAnodeOutput"));
- this.fluidTankCathodeOutput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankCathodeOutput"));
- }
-
- @Override
- public void writeToNBT(NBTTagCompound nbttagcompound)
- {
- super.writeToNBT(nbttagcompound);
- NBTTagCompound fluidTankTag = new NBTTagCompound();
- this.fluidTank.writeToNBT(fluidTankTag);
- nbttagcompound.setTag("fluidTank", fluidTankTag);
-
- NBTTagCompound fluidTankAnodeTag = new NBTTagCompound();
- this.fluidTankAnodeOutput.writeToNBT(fluidTankAnodeTag);
- nbttagcompound.setTag("fluidTankAnodeOutput", fluidTankAnodeTag);
-
- NBTTagCompound fluidTankCathodeTag = new NBTTagCompound();
- this.fluidTankCathodeOutput.writeToNBT(fluidTankCathodeTag);
- nbttagcompound.setTag("fluidTankCathodeOutput", fluidTankCathodeTag);
- }
-
+
+ @Override
+ public void readFromNBT(NBTTagCompound nbttagcompound) {
+ super.readFromNBT(nbttagcompound);
+ this.fluidTank.readFromNBT(nbttagcompound.getCompoundTag("fluidTank"));
+ this.fluidTankAnodeOutput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankAnodeOutput"));
+ this.fluidTankCathodeOutput.readFromNBT(nbttagcompound.getCompoundTag("fluidTankCathodeOutput"));
+ }
+
+ @Override
+ public void writeToNBT(NBTTagCompound nbttagcompound) {
+ super.writeToNBT(nbttagcompound);
+ NBTTagCompound fluidTankTag = new NBTTagCompound();
+ this.fluidTank.writeToNBT(fluidTankTag);
+ nbttagcompound.setTag("fluidTank", fluidTankTag);
+
+ NBTTagCompound fluidTankAnodeTag = new NBTTagCompound();
+ this.fluidTankAnodeOutput.writeToNBT(fluidTankAnodeTag);
+ nbttagcompound.setTag("fluidTankAnodeOutput", fluidTankAnodeTag);
+
+ NBTTagCompound fluidTankCathodeTag = new NBTTagCompound();
+ this.fluidTankCathodeOutput.writeToNBT(fluidTankCathodeTag);
+ nbttagcompound.setTag("fluidTankCathodeOutput", fluidTankCathodeTag);
+ }
+
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
- return this.getFacing()!=side;
+ return this.getFacing() != side;
}
-
+
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
return IHLUtils.getThisModItemStack("labElectrolyzer");
}
-
- @Override
- public boolean enableUpdateEntity()
- {
- return IC2.platform.isSimulating();
- }
-
-
- @Override
- public void updateEntityServer()
- {
- super.updateEntityServer();
- IHLUtils.handleFluidSlotsBehaviour(fillInputSlot, drainInputSlot, emptyFluidItemsSlot, fluidTank);
- IHLUtils.handleFluidSlotsBehaviour(fillInputSlotAnodeOutput, null, emptyFluidItemsSlot, fluidTankAnodeOutput);
- IHLUtils.handleFluidSlotsBehaviour(fillInputSlotCathodeOutput, null, emptyFluidItemsSlot, fluidTankCathodeOutput);
- }
-
- @Override
- public FluidStack drain(ForgeDirection direction, int amount, boolean doDrain)
- {
- if(this.canDrain(direction, null))
- {
- if(direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.UP)))
- {
- return this.fluidTankAnodeOutput.drain(amount, doDrain);
- }
- if(direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.DOWN)))
- {
- return this.fluidTankCathodeOutput.drain(amount, doDrain);
- }
+
+ @Override
+ public boolean enableUpdateEntity() {
+ return IC2.platform.isSimulating();
+ }
+
+ @Override
+ public void updateEntityServer() {
+ super.updateEntityServer();
+ IHLUtils.handleFluidSlotsBehaviour(fillInputSlot, drainInputSlot, emptyFluidItemsSlot, fluidTank);
+ IHLUtils.handleFluidSlotsBehaviour(fillInputSlotAnodeOutput, null, emptyFluidItemsSlot, fluidTankAnodeOutput);
+ IHLUtils.handleFluidSlotsBehaviour(fillInputSlotCathodeOutput, null, emptyFluidItemsSlot,
+ fluidTankCathodeOutput);
+ }
+
+ @Override
+ public FluidStack drain(ForgeDirection direction, int amount, boolean doDrain) {
+ if (this.canDrain(direction, null)) {
+ if (direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.UP))) {
+ return this.fluidTankAnodeOutput.drain(amount, doDrain);
+ }
+ if (direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.DOWN))) {
+ return this.fluidTankCathodeOutput.drain(amount, doDrain);
+ }
return this.fluidTank.drain(amount, doDrain);
- }
- return null;
- }
+ }
+ return null;
+ }
-
- //1.7.10 API
+ // 1.7.10 API
@Override
public boolean canDrain(ForgeDirection direction, Fluid arg1) {
- return direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.UP))||direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.DOWN))||direction.equals(ForgeDirection.DOWN);
+ return direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.UP))
+ || direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.DOWN))
+ || direction.equals(ForgeDirection.DOWN);
}
@Override
@@ -139,12 +136,11 @@ public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity impl public String getInventoryName() {
return "labElectrolizer";
}
-
- @Override
- public int gaugeProgressScaled(int i)
- {
- return this.progress * i / operationLength;
- }
+
+ @Override
+ public int gaugeProgressScaled(int i) {
+ return this.progress * i / operationLength;
+ }
@Override
@SideOnly(Side.CLIENT)
@@ -153,64 +149,58 @@ public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity impl }
@Override
- public ContainerBase<?> getGuiContainer(EntityPlayer player)
- {
+ public ContainerBase<?> getGuiContainer(EntityPlayer player) {
this.fluidTank.sortFluidsByDensity();
return new LabElectrolyzerContainer(player, this);
}
@Override
- public void onGuiClosed(EntityPlayer player) {}
-
- @Override
- public boolean canOperate()
- {
- UniversalRecipeOutput output = getOutput();
- if(output!=null)
- {
- if(getOutput().getItemOutputs()!=null && !getOutput().getItemOutputs().isEmpty() && getOutput().getItemOutputs().get(0)!=null)
- {
- return this.outputSlot.canAdd(getOutput().getItemOutputs());
- }
- else
- {
- return this.fluidTankAnodeOutput.getFluidAmount()<this.fluidTankAnodeOutput.getCapacity() && this.fluidTankAnodeOutput.getFluidAmount()<this.fluidTankCathodeOutput.getCapacity();
- }
- }
- return false;
- }
-
- public UniversalRecipeOutput getOutput()
- {
- return LabElectrolyzerTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
- }
+ public void onGuiClosed(EntityPlayer player) {
+ }
+
+ @Override
+ public boolean canOperate() {
+ UniversalRecipeOutput output = getOutput();
+ if (output != null) {
+ if (getOutput().getItemOutputs() != null && !getOutput().getItemOutputs().isEmpty()
+ && getOutput().getItemOutputs().get(0) != null) {
+ return this.outputSlot.canAdd(getOutput().getItemOutputs());
+ } else {
+ return this.fluidTankAnodeOutput.getFluidAmount() < this.fluidTankAnodeOutput.getCapacity()
+ && this.fluidTankAnodeOutput.getFluidAmount() < this.fluidTankCathodeOutput.getCapacity();
+ }
+ }
+ return false;
+ }
+
+ public UniversalRecipeOutput getOutput() {
+ return LabElectrolyzerTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
+ }
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
- public List[] getInput()
- {
- return new List[]{Arrays.asList(new FluidStack[]{fluidTank.getFluid()}),null};
+ public List[] getInput() {
+ return new List[] { Arrays.asList(new FluidStack[] { fluidTank.getFluid() }), null };
}
-
+
@Override
- public void operate()
- {
+ public void operate() {
UniversalRecipeInput recipeInput = LabElectrolyzerTileEntity.recipeManager.getRecipeInput(getInput());
UniversalRecipeOutput output1 = getOutput();
this.fluidTank.drain(recipeInput.getFluidInputs().get(0), true);
- if(output1.getFluidOutputs().size()>0)this.fluidTankAnodeOutput.fill(output1.getFluidOutputs().get(0).copy(), true);
- if(output1.getFluidOutputs().size()>1)this.fluidTankCathodeOutput.fill(output1.getFluidOutputs().get(1).copy(), true);
- if(!output1.getItemOutputs().isEmpty() && output1.getItemOutputs().get(0)!=null)this.outputSlot.add(output1.getItemOutputs());
+ if (output1.getFluidOutputs().size() > 0)
+ this.fluidTankAnodeOutput.fill(output1.getFluidOutputs().get(0).copy(), true);
+ if (output1.getFluidOutputs().size() > 1)
+ this.fluidTankCathodeOutput.fill(output1.getFluidOutputs().get(1).copy(), true);
+ if (!output1.getItemOutputs().isEmpty() && output1.getItemOutputs().get(0) != null)
+ this.outputSlot.add(output1.getItemOutputs());
}
@Override
- public FluidStack drain(ForgeDirection arg0, FluidStack fluidStack, boolean doDrain) {
- if(this.fluidTankAnodeOutput.getFluid().containsFluid(fluidStack))
- {
+ public FluidStack drain(ForgeDirection direction, FluidStack fluidStack, boolean doDrain) {
+ if (this.fluidTankAnodeOutput.getFluid().containsFluid(fluidStack)) {
return this.fluidTankAnodeOutput.drain(fluidStack.amount, doDrain);
- }
- if(this.fluidTankCathodeOutput.getFluid().containsFluid(fluidStack))
- {
+ } else if (this.fluidTankCathodeOutput.getFluid().containsFluid(fluidStack)) {
return this.fluidTankCathodeOutput.drain(fluidStack.amount, doDrain);
}
return null;
@@ -222,36 +212,39 @@ public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity impl }
@Override
- public FluidTankInfo[] getTankInfo(ForgeDirection arg0) {
- return new FluidTankInfo[] {this.fluidTank.getInfo()};
+ public FluidTankInfo[] getTankInfo(ForgeDirection direction) {
+ if (direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.UP))) {
+ return new FluidTankInfo[] { this.fluidTankAnodeOutput.getInfo() };
+ }
+ if (direction.equals(ForgeDirection.getOrientation(this.getFacing()).getRotation(ForgeDirection.DOWN))) {
+ return new FluidTankInfo[] { this.fluidTankCathodeOutput.getInfo() };
+ }
+ return new FluidTankInfo[] { this.fluidTank.getInfo() };
+
+ }
+
+ public boolean needsFluid() {
+ return this.fluidTank.getFluidAmount() <= this.fluidTank.getCapacity();
+ }
+
+ public FluidStack getFluidStackfromTank() {
+ return this.fluidTank.getFluid();
}
-
- public boolean needsFluid()
- {
- return this.fluidTank.getFluidAmount() <= this.fluidTank.getCapacity();
- }
-
- public FluidStack getFluidStackfromTank()
- {
- return this.fluidTank.getFluid();
- }
-
- public int getTankAmount()
- {
+
+ public int getTankAmount() {
return this.fluidTank.getFluidAmount();
}
-
- public int gaugeLiquidScaled(int i, int index)
- {
- return this.fluidTank.getFluidAmount() <= 0 ? 0 : this.fluidTank.getFluidAmount(index) * i / this.fluidTank.getCapacity();
- }
- public static void addRecipe(UniversalRecipeInput input, UniversalRecipeOutput output)
- {
+
+ public int gaugeLiquidScaled(int i, int index) {
+ return this.fluidTank.getFluidAmount() <= 0 ? 0
+ : this.fluidTank.getFluidAmount(index) * i / this.fluidTank.getCapacity();
+ }
+
+ public static void addRecipe(UniversalRecipeInput input, UniversalRecipeOutput output) {
recipeManager.addRecipe(input, output);
}
- public int getNumberOfFluidsInTank()
- {
+ public int getNumberOfFluidsInTank() {
return this.fluidTank.getNumberOfFluids();
}
@@ -259,20 +252,20 @@ public class LabElectrolyzerTileEntity extends BasicElectricMotorTileEntity impl return recipeManager.getRecipes();
}
- public static void addRecipe(FluidStack fluidStackInput1, FluidStack fluidStackOutputAnode, FluidStack fluidStackOutputCathode, ItemStack itemStackOutput1)
- {
- if(itemStackOutput1!=null)
- {
- addRecipe(new UniversalRecipeInput((new FluidStack[] {fluidStackInput1}), null), new UniversalRecipeOutput((new FluidStack[] {fluidStackOutputAnode, fluidStackOutputCathode}), (new ItemStack[] {itemStackOutput1}),200));
- }
- else
- {
- addRecipe(new UniversalRecipeInput((new FluidStack[] {fluidStackInput1}), null), new UniversalRecipeOutput((new FluidStack[] {fluidStackOutputAnode, fluidStackOutputCathode}), null,200));
+ public static void addRecipe(FluidStack fluidStackInput1, FluidStack fluidStackOutputAnode,
+ FluidStack fluidStackOutputCathode, ItemStack itemStackOutput1) {
+ if (itemStackOutput1 != null) {
+ addRecipe(new UniversalRecipeInput((new FluidStack[] { fluidStackInput1 }), null),
+ new UniversalRecipeOutput((new FluidStack[] { fluidStackOutputAnode, fluidStackOutputCathode }),
+ (new ItemStack[] { itemStackOutput1 }), 200));
+ } else {
+ addRecipe(new UniversalRecipeInput((new FluidStack[] { fluidStackInput1 }), null),
+ new UniversalRecipeOutput((new FluidStack[] { fluidStackOutputAnode, fluidStackOutputCathode }),
+ null, 200));
}
}
- public IHLFluidTank getFluidTank()
- {
+ public IHLFluidTank getFluidTank() {
return this.fluidTank;
}
diff --git a/ihl/processing/metallurgy/AchesonFurnanceTileEntity.java b/ihl/processing/metallurgy/AchesonFurnanceTileEntity.java index 0c1b75f..5709cb9 100644 --- a/ihl/processing/metallurgy/AchesonFurnanceTileEntity.java +++ b/ihl/processing/metallurgy/AchesonFurnanceTileEntity.java @@ -20,28 +20,28 @@ import net.minecraft.item.ItemStack; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
-public class AchesonFurnanceTileEntity extends MachineBaseTileEntity{
+public class AchesonFurnanceTileEntity extends MachineBaseTileEntity {
- public final ApparatusProcessableInvSlot inputElectrode;
+ public final ApparatusProcessableInvSlot inputElectrode;
protected static UniversalRecipeManager recipeManager = new UniversalRecipeManager("achesonfurnace");
- private final RecipeInputOreDict[] validElectrodeTypes=new RecipeInputOreDict[] {new RecipeInputOreDict("stickCoal"),new RecipeInputOreDict("stickGraphite"),new RecipeInputOreDict("plateCoal"),new RecipeInputOreDict("plateGraphite")};
-
- public AchesonFurnanceTileEntity()
- {
+ private final RecipeInputOreDict[] validElectrodeTypes = new RecipeInputOreDict[] {
+ new RecipeInputOreDict("stickCoal"), new RecipeInputOreDict("stickGraphite"),
+ new RecipeInputOreDict("plateCoal"), new RecipeInputOreDict("plateGraphite") };
+
+ public AchesonFurnanceTileEntity() {
super(2);
inputElectrode = new ApparatusProcessableInvSlot(this, "inputElectrode", 1, Access.IO, 2, 1);
}
-
- public static void addRecipe(IRecipeInput input1, IRecipeInput input2, String output1)
- {
- recipeManager.addRecipe(new UniversalRecipeInput(null,new IRecipeInput [] {input1,input2}),new UniversalRecipeOutput(null,new ItemStack [] {IHLUtils.getThisModItemStack(output1)},20));
+
+ public static void addRecipe(IRecipeInput input1, IRecipeInput input2, String output1) {
+ recipeManager.addRecipe(new UniversalRecipeInput(null, new IRecipeInput[] { input1, input2 }),
+ new UniversalRecipeOutput(null, new ItemStack[] { IHLUtils.getThisModItemStack(output1) }, 20));
}
@Override
- public String getStartSoundFile()
- {
- return "Machines/Electro Furnace/ElectroFurnaceLoop.ogg";
- }
+ public String getStartSoundFile() {
+ return "Machines/Electro Furnace/ElectroFurnaceLoop.ogg";
+ }
@Override
public String getLoopSoundFile() {
@@ -68,80 +68,63 @@ public class AchesonFurnanceTileEntity extends MachineBaseTileEntity{ public ContainerBase<?> getGuiContainer(EntityPlayer player) {
return new AchesonFurnanceContainer(player, this);
}
-
+
@Override
- public void operate()
- {
- List<RecipeOutputItemStack> output = AchesonFurnanceTileEntity.recipeManager.getOutputFor(getInput(), true, true).getItemOutputs();
- for(int i=0; i<this.inputElectrode.size();i++)
- {
+ public void operate() {
+ List<RecipeOutputItemStack> output = AchesonFurnanceTileEntity.recipeManager
+ .getOutputFor(getInput(), true, true).getItemOutputs();
+ for (int i = 0; i < this.inputElectrode.size(); i++) {
ItemStack electrodeIS = this.inputElectrode.get(i);
- if(this.validElectrodeTypes[0].matches(electrodeIS))
- {
+ if (this.validElectrodeTypes[0].matches(electrodeIS)) {
this.inputElectrode.put(i, IHLUtils.getThisModItemStack("stickGraphite"));
- }
- else if(this.validElectrodeTypes[2].matches(electrodeIS))
- {
+ } else if (this.validElectrodeTypes[2].matches(electrodeIS)) {
this.inputElectrode.put(i, IHLUtils.getThisModItemStack("plateGraphite"));
}
}
- for(int i=0; i<this.input.size();i++)
- {
- if(output.size()>i)
- {
+ for (int i = 0; i < this.input.size(); i++) {
+ if (output.size() > i) {
ItemStack stack = output.get(i).itemStack.copy();
- stack.stackSize=Math.round(output.get(i).quantity);
- this.input.put(i,stack);
+ stack.stackSize = Math.round(output.get(i).quantity);
+ this.input.put(i, stack);
}
- if(this.input.get(i)!=null && this.input.get(i).stackSize<=0)
- {
+ if (this.input.get(i) != null && this.input.get(i).stackSize <= 0) {
this.input.put(i, null);
}
}
- ItemStack crucible = input.getItemStack(IHLMod.crucible);
- if(crucible!=null)
- {
- ((Crucible)crucible.getItem()).processContent(crucible, this);
- }
+ ItemStack crucible = input.getItemStack(IHLMod.crucible);
+ if (crucible != null) {
+ ((Crucible) crucible.getItem()).processContent(crucible, this);
+ }
}
-
+
@Override
- public boolean canOperate()
- {
- return this.isValidElectrode(this.inputElectrode.get(0)) &&
- this.isValidElectrode(this.inputElectrode.get(1)) &&
- this.getOutput()!=null;
+ public boolean canOperate() {
+ return this.isValidElectrode(this.inputElectrode.get(0)) && this.isValidElectrode(this.inputElectrode.get(1))
+ && this.getOutput() != null;
}
-
+
@Override
- public List<?>[] getInput()
- {
- return new List[] {null, this.input.getItemStackList()};
+ public List<?>[] getInput() {
+ return new List[] { null, this.input.getItemStackList() };
}
-
public static Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipes() {
return recipeManager.getRecipes();
}
-
- @Override
- public UniversalRecipeOutput getOutput()
- {
- return AchesonFurnanceTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
- }
-
- private boolean isValidElectrode(ItemStack stack)
- {
- if(stack!=null)
- {
- for(int i=0;i<this.validElectrodeTypes.length;i++)
- {
- if(validElectrodeTypes[i].matches(stack))
- {
- return true;
- }
- }
- }
- return false;
- }
+
+ @Override
+ public UniversalRecipeOutput getOutput() {
+ return AchesonFurnanceTileEntity.recipeManager.getOutputFor(this.getInput(), false, false);
+ }
+
+ private boolean isValidElectrode(ItemStack stack) {
+ if (stack != null) {
+ for (int i = 0; i < this.validElectrodeTypes.length; i++) {
+ if (validElectrodeTypes[i].matches(stack)) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
}
diff --git a/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java b/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java index 47cfda9..a2fa219 100644 --- a/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java +++ b/ihl/processing/metallurgy/BasicElectricMotorTileEntity.java @@ -21,125 +21,116 @@ import net.minecraft.util.AxisAlignedBB; import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
-public abstract class BasicElectricMotorTileEntity extends FlexibleCableHolderBaseTileEntity implements IHasGui, INetworkClientTileEntityEventListener, IEnergySink{
+public abstract class BasicElectricMotorTileEntity extends FlexibleCableHolderBaseTileEntity
+ implements IHasGui, INetworkClientTileEntityEventListener, IEnergySink {
- public final IHLInvSlotDischarge dischargeSlot;
+ public final IHLInvSlotDischarge dischargeSlot;
public short progress;
- protected short operationLength=600;
- protected final double energyConsume=0.1D;
- public double energy;
- public int maxStorage=128;
- private boolean addedToEnergyNet=false;
-
- public BasicElectricMotorTileEntity()
- {
+ protected short operationLength = 600;
+ protected double energyConsume = 1d;
+ public double energy;
+ public int maxStorage = 128;
+ private boolean addedToEnergyNet = false;
+
+ public BasicElectricMotorTileEntity() {
super();
dischargeSlot = new IHLInvSlotDischarge(this, 1, Access.IO, 4, InvSlot.InvSide.BOTTOM);
}
-
@Override
public String getInventoryName() {
return "Lathe";
}
-
- public boolean enableUpdateEntity()
- {
- return IC2.platform.isSimulating();
- }
-
- @Override
- public void onLoaded()
- {
- super.onLoaded();
- if (IC2.platform.isSimulating()&&!this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
- this.addedToEnergyNet = true;
- }
- }
-
- @Override
- public void onUnloaded()
- {
- if (IC2.platform.isSimulating()&&this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
- this.addedToEnergyNet = false;
- }
-
- super.onUnloaded();
- }
-
-
+
+ public boolean enableUpdateEntity() {
+ return IC2.platform.isSimulating();
+ }
+
+ @Override
+ public void onLoaded() {
+ super.onLoaded();
+ if (IC2.platform.isSimulating() && !this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
+ this.addedToEnergyNet = true;
+ }
+ }
+
+ @Override
+ public void onUnloaded() {
+ if (IC2.platform.isSimulating() && this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
+ this.addedToEnergyNet = false;
+ }
+
+ super.onUnloaded();
+ }
+
@SuppressWarnings("unchecked")
@Override
- public void setFacing(short facing1)
- {
+ public void setFacing(short facing1) {
short facing2 = (short) Math.max(facing1, 2);
- double d=0.3D;
- double f=-0.1D;
- if (IC2.platform.isSimulating()&&this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
- this.addedToEnergyNet = false;
- }
+ double d = 0.3D;
+ double f = -0.1D;
+ if (IC2.platform.isSimulating() && this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
+ this.addedToEnergyNet = false;
+ }
double range = 2D;
- AxisAlignedBB searchArea = AxisAlignedBB.getBoundingBox(connectionX-range,connectionY-range,connectionZ-range,connectionX+range,connectionY+range,connectionZ+range);
+ AxisAlignedBB searchArea = AxisAlignedBB.getBoundingBox(connectionX - range, connectionY - range,
+ connectionZ - range, connectionX + range, connectionY + range, connectionZ + range);
List<NodeEntity> nodeList = worldObj.getEntitiesWithinAABB(NodeEntity.class, searchArea);
super.setFacing(facing2);
- switch(getFacing())
- {
- case 4:
- setConnectionX(this.xCoord+0.5D);
- setConnectionY(this.yCoord+d);
- setConnectionZ(this.zCoord+1D-f);
- break;
- case 5:
- setConnectionX(this.xCoord+0.5D);
- setConnectionY(this.yCoord+d);
- setConnectionZ(this.zCoord+f);
- break;
- case 2:
- setConnectionX(this.xCoord+1D-f);
- setConnectionY(this.yCoord+d);
- setConnectionZ(this.zCoord+0.5D);
- break;
- case 3:
- setConnectionX(this.xCoord+f);
- setConnectionY(this.yCoord+d);
- setConnectionZ(this.zCoord+0.5D);
- break;
- default:
- setConnectionX(this.xCoord+1D-f);
- setConnectionY(this.yCoord+d);
- setConnectionZ(this.zCoord+0.5D);
- break;
-
+ switch (getFacing()) {
+ case 4:
+ setConnectionX(this.xCoord + 0.5D);
+ setConnectionY(this.yCoord + d);
+ setConnectionZ(this.zCoord + 1D - f);
+ break;
+ case 5:
+ setConnectionX(this.xCoord + 0.5D);
+ setConnectionY(this.yCoord + d);
+ setConnectionZ(this.zCoord + f);
+ break;
+ case 2:
+ setConnectionX(this.xCoord + 1D - f);
+ setConnectionY(this.yCoord + d);
+ setConnectionZ(this.zCoord + 0.5D);
+ break;
+ case 3:
+ setConnectionX(this.xCoord + f);
+ setConnectionY(this.yCoord + d);
+ setConnectionZ(this.zCoord + 0.5D);
+ break;
+ default:
+ setConnectionX(this.xCoord + 1D - f);
+ setConnectionY(this.yCoord + d);
+ setConnectionZ(this.zCoord + 0.5D);
+ break;
+
}
- if(!nodeList.isEmpty())
- {
+ if (!nodeList.isEmpty()) {
Iterator<NodeEntity> ei = nodeList.iterator();
- while(ei.hasNext())
- {
- NodeEntity ne= ei.next();
- if((ne.prevAnchorEntity==null||ne.nextAnchorEntity==null) && this.cableListContains(ne.getChainUniqueID()))
- {
- ne.setVirtualNodePos(connectionX,connectionY,connectionZ);
- }
- }
+ while (ei.hasNext()) {
+ NodeEntity ne = ei.next();
+ if ((ne.prevAnchorEntity == null || ne.nextAnchorEntity == null)
+ && this.cableListContains(ne.getChainUniqueID())) {
+ ne.setVirtualNodePos(connectionX, connectionY, connectionZ);
+ }
+ }
+ }
+ if (IC2.platform.isSimulating() && !this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
+ this.addedToEnergyNet = true;
}
- if (IC2.platform.isSimulating()&&!this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
- this.addedToEnergyNet = true;
- }
}
-
+
@Override
- public double getDemandedEnergy()
- {
- return this.maxStorage-this.energy;
+ public double getDemandedEnergy() {
+ if(this.maxStorage - this.energy <= 1d)
+ {
+ return 0d;
+ }
+ return this.maxStorage - this.energy;
}
@Override
@@ -148,154 +139,126 @@ public abstract class BasicElectricMotorTileEntity extends FlexibleCableHolderBa }
@Override
- public double injectEnergy(ForgeDirection directionFrom, double amount,
- double voltage) {
- if(this.energy<this.maxStorage)
- {
- this.energy+=amount;
- return 0.0D;
- }
- else
- {
- return amount;
- }
+ public double injectEnergy(ForgeDirection directionFrom, double amount, double voltage) {
+ if (this.energy < this.maxStorage) {
+ this.energy += amount;
+ return 0.0D;
+ } else {
+ return amount;
+ }
}
-
+
@Override
- public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side)
- {
- return this.getFacing()!=(short)side;
+ public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
+ return this.getFacing() != (short) side;
}
-
@Override
public void writeToNBT(NBTTagCompound nbt) {
- super.writeToNBT(nbt);
- nbt.setShort("progress", this.progress);
- nbt.setDouble("energy", this.energy);
+ super.writeToNBT(nbt);
+ nbt.setShort("progress", this.progress);
+ nbt.setDouble("energy", this.energy);
}
@Override
public void readFromNBT(NBTTagCompound nbt) {
- super.readFromNBT(nbt);
- this.progress = nbt.getShort("progress");
- this.energy=nbt.getDouble("energy");
+ super.readFromNBT(nbt);
+ this.progress = nbt.getShort("progress");
+ this.energy = nbt.getDouble("energy");
}
@Override
- public void onNetworkEvent(EntityPlayer player, int event)
- {
- switch(event)
- {
+ public void onNetworkEvent(EntityPlayer player, int event) {
+ switch (event) {
case 0:
break;
- }
+ }
}
-
+
public abstract void operate();
-
- @Override
- public void updateEntityServer()
- {
- if(this.getDemandedEnergy() > 1.0D)
- {
- double amount = this.dischargeSlot.discharge(this.getDemandedEnergy(), false);
- this.energy += amount;
- }
- if(this.gridID!=-1 && this.getGrid().energy>0D && this.energy<this.maxStorage)
- {
- this.energy+=energyConsume*10D;
- this.getGrid().drawEnergy(energyConsume*10D, this);
- }
- if (this.canOperate() && this.energy>=this.energyConsume)
- {
- this.energy-=this.energyConsume;
- if (this.progress == 0)
- {
- IC2.network.get().initiateTileEntityEvent(this, 0, true);
- }
- ++this.progress;
- if (this.progress >= this.operationLength)
- {
- this.operate();
- this.progress = 0;
- IC2.network.get().initiateTileEntityEvent(this, 2, true);
- }
- }
- else
- {
- if (this.progress != 0 && this.getActive())
- {
- IC2.network.get().initiateTileEntityEvent(this, 1, true);
- }
- if (!this.canOperate())
- {
- this.progress = 0;
- }
- }
-
- }
-
+
+ @Override
+ public void updateEntityServer() {
+ if (this.getDemandedEnergy() > 1.0D) {
+ double amount = this.dischargeSlot.discharge(this.getDemandedEnergy(), false);
+ this.energy += amount;
+ }
+ if (this.gridID != -1 && this.getGrid().energy > 0D && this.energy < this.maxStorage) {
+ this.energy += energyConsume * 10D;
+ this.getGrid().drawEnergy(energyConsume * 10D, this);
+ }
+ if (this.canOperate() && this.energy >= this.energyConsume) {
+ this.energy -= this.energyConsume;
+ if (this.progress == 0) {
+ IC2.network.get().initiateTileEntityEvent(this, 0, true);
+ }
+ ++this.progress;
+ if (this.progress >= this.operationLength) {
+ this.operate();
+ this.progress = 0;
+ IC2.network.get().initiateTileEntityEvent(this, 2, true);
+ }
+ } else {
+ if (this.progress != 0 && this.getActive()) {
+ IC2.network.get().initiateTileEntityEvent(this, 1, true);
+ }
+ if (!this.canOperate()) {
+ this.progress = 0;
+ }
+ }
+
+ }
+
public abstract List<?>[] getInput();
+
public abstract boolean canOperate();
- @Override
- public void onGuiClosed(EntityPlayer arg0) {}
- public int getEnergy()
- {
- return (int)this.energy;
+ @Override
+ public void onGuiClosed(EntityPlayer arg0) {
}
+ public int getEnergy() {
+ return (int) this.energy;
+ }
public int getGUIEnergy(int i) {
- if(this.energy<Float.MAX_VALUE)
- {
- return Math.round((float)this.energy/this.maxStorage*i);
- }
- else
- {
- return Math.round((float)(this.energy/this.maxStorage)*i);
- }
+ if (this.energy < Float.MAX_VALUE) {
+ return Math.round((float) this.energy / this.maxStorage * i);
+ } else {
+ return Math.round((float) (this.energy / this.maxStorage) * i);
+ }
}
-
- public int gaugeProgressScaled(int i)
- {
- return this.progress * i / this.operationLength;
- }
-
- public void setEnergy(int value)
- {
- this.energy=value;
+ public int gaugeProgressScaled(int i) {
+ return this.progress * i / this.operationLength;
}
+ public void setEnergy(int value) {
+ this.energy = value;
+ }
@Override
public boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction) {
return true;
}
-
+
@Override
- public double getMaxAllowableVoltage()
- {
+ public double getMaxAllowableVoltage() {
return 64000D;
}
-
+
@Override
- public double getEnergyAmountThisNodeWant()
- {
- return this.energy-this.maxStorage;
+ public double getEnergyAmountThisNodeWant() {
+ return this.energy - this.maxStorage;
}
-
- public double drawEnergyToGrid(double amount)
- {
+
+ public double drawEnergyToGrid(double amount) {
return 0d;
}
-
+
@Override
- public void injectEnergyInThisNode(double amount, double voltage)
- {
- this.energy+=amount;
+ public void injectEnergyInThisNode(double amount, double voltage) {
+ this.energy += amount;
}
}
diff --git a/ihl/processing/metallurgy/VulcanizationExtrudingMoldTileEntity.java b/ihl/processing/metallurgy/VulcanizationExtrudingMoldTileEntity.java index 40d44e4..e052ad7 100644 --- a/ihl/processing/metallurgy/VulcanizationExtrudingMoldTileEntity.java +++ b/ihl/processing/metallurgy/VulcanizationExtrudingMoldTileEntity.java @@ -9,6 +9,8 @@ import ic2.api.energy.event.EnergyTileLoadEvent; import ic2.api.energy.event.EnergyTileUnloadEvent;
import ic2.api.energy.tile.IEnergySink;
import ic2.api.network.INetworkDataProvider;
+import ic2.api.recipe.IRecipeInput;
+import ic2.api.recipe.RecipeInputItemStack;
import ic2.api.tile.IWrenchable;
import ic2.core.IC2;
import ihl.items_blocks.FlexibleCableItem;
@@ -28,144 +30,127 @@ import net.minecraftforge.fluids.FluidTank; import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
-public class VulcanizationExtrudingMoldTileEntity extends TileEntity implements IWrenchable, INetworkDataProvider, IEnergySink, IProductionLine, IFluidHandler{
+public class VulcanizationExtrudingMoldTileEntity extends TileEntity
+ implements IWrenchable, INetworkDataProvider, IEnergySink, IProductionLine, IFluidHandler {
- private short facing=2;
- private short lastFacing=2;
- public double energy;
- public int maxStorage=64;
- private double energyConsume=16D;
- private boolean addedToEnergyNet=false;
+ private short facing = 2;
+ private short lastFacing = 2;
+ public double energy;
+ public int maxStorage = 64;
+ private double energyConsume = 16D;
+ private boolean addedToEnergyNet = false;
private FluidTank fluidTank = new FluidTank(5000);
- protected static final UniversalRecipeManager recipeManager = new UniversalRecipeManager("vulcanizationextrudingmold");
+ protected static final UniversalRecipeManager recipeManager = new UniversalRecipeManager(
+ "vulcanizationextrudingmold");
- public VulcanizationExtrudingMoldTileEntity()
- {
+ public VulcanizationExtrudingMoldTileEntity() {
super();
}
-
- public static void addRecipe(FluidStack inputFluid,ItemStack input,ItemStack output1)
- {
- recipeManager.addRecipe(new UniversalRecipeInput((new FluidStack[] {inputFluid}),(new ItemStack[] {input})),new UniversalRecipeOutput(null,(new ItemStack[] {output1}),200));
- }
-
- public boolean enableUpdateEntity()
- {
- return IC2.platform.isSimulating();
- }
-
- @Override
- public void invalidate()
- {
- if (IC2.platform.isSimulating()&&this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
- this.addedToEnergyNet = false;
- }
- super.invalidate();
- }
-
+
+ public static void addRecipe(FluidStack inputFluid, ItemStack input, ItemStack output1) {
+ recipeManager.addRecipe(
+ new UniversalRecipeInput((new FluidStack[] { inputFluid }),
+ (new IRecipeInput[] { new RecipeInputItemStack(input) })),
+ new UniversalRecipeOutput(null, (new ItemStack[] { output1 }), 200));
+ }
+
+ public boolean enableUpdateEntity() {
+ return IC2.platform.isSimulating();
+ }
+
+ @Override
+ public void invalidate() {
+ if (IC2.platform.isSimulating() && this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
+ this.addedToEnergyNet = false;
+ }
+ super.invalidate();
+ }
+
@Override
- public List<String> getNetworkedFields()
- {
- List<String> fields = new ArrayList();
+ public List<String> getNetworkedFields() {
+ List<String> fields = new ArrayList<String>();
fields.add("facing");
return fields;
- }
-
- @Override
- public void updateEntity()
- {
- super.updateEntity();
- if (IC2.platform.isSimulating()&&!this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
- this.addedToEnergyNet = true;
- }
-
- if(lastFacing!=facing)
- {
+ }
+
+ @Override
+ public void updateEntity() {
+ super.updateEntity();
+ if (IC2.platform.isSimulating() && !this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
+ this.addedToEnergyNet = true;
+ }
+
+ if (lastFacing != facing) {
IC2.network.get().updateTileEntityField(this, "facing");
- lastFacing=facing;
- }
- }
-
+ lastFacing = facing;
+ }
+ }
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
- return this.getFacing()!=side;
+ return this.getFacing() != side;
}
-
@Override
public short getFacing() {
return this.facing;
}
-
@Override
- public void setFacing(short facing1)
- {
- if (IC2.platform.isSimulating()&&this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
- this.addedToEnergyNet = false;
- }
- facing=(short) Math.max(2,facing1);
- if(IC2.platform.isSimulating())
- {
+ public void setFacing(short facing1) {
+ if (IC2.platform.isSimulating() && this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
+ this.addedToEnergyNet = false;
+ }
+ facing = (short) Math.max(2, facing1);
+ if (IC2.platform.isSimulating()) {
IC2.network.get().updateTileEntityField(this, "facing");
- lastFacing=facing;
+ lastFacing = facing;
+ }
+ if (IC2.platform.isSimulating() && !this.addedToEnergyNet) {
+ MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
+ this.addedToEnergyNet = true;
}
- if (IC2.platform.isSimulating()&&!this.addedToEnergyNet)
- {
- MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
- this.addedToEnergyNet = true;
- }
}
-
@Override
public boolean wrenchCanRemove(EntityPlayer entityPlayer) {
return true;
}
-
@Override
public float getWrenchDropRate() {
return 1F;
}
-
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer) {
return IHLUtils.getThisModItemStack("vulcanizationExtrudingMold");
}
-
+
@Override
- public void readFromNBT(NBTTagCompound nbttagcompound)
- {
- super.readFromNBT(nbttagcompound);
- this.fluidTank.readFromNBT(nbttagcompound.getCompoundTag("fluidTank"));
- facing=nbttagcompound.getShort("facing");
- energy=nbttagcompound.getDouble("energy");
- }
+ public void readFromNBT(NBTTagCompound nbttagcompound) {
+ super.readFromNBT(nbttagcompound);
+ this.fluidTank.readFromNBT(nbttagcompound.getCompoundTag("fluidTank"));
+ facing = nbttagcompound.getShort("facing");
+ energy = nbttagcompound.getDouble("energy");
+ }
@Override
- public void writeToNBT(NBTTagCompound nbttagcompound)
- {
- super.writeToNBT(nbttagcompound);
- NBTTagCompound fluidTankTag = new NBTTagCompound();
- this.fluidTank.writeToNBT(fluidTankTag);
- nbttagcompound.setTag("fluidTank", fluidTankTag);
- nbttagcompound.setShort("facing", facing);
- nbttagcompound.setDouble("energy", this.energy);
- }
-
+ public void writeToNBT(NBTTagCompound nbttagcompound) {
+ super.writeToNBT(nbttagcompound);
+ NBTTagCompound fluidTankTag = new NBTTagCompound();
+ this.fluidTank.writeToNBT(fluidTankTag);
+ nbttagcompound.setTag("fluidTank", fluidTankTag);
+ nbttagcompound.setShort("facing", facing);
+ nbttagcompound.setDouble("energy", this.energy);
+ }
+
@Override
- public double getDemandedEnergy()
- {
- return this.maxStorage-this.energy;
+ public double getDemandedEnergy() {
+ return this.maxStorage - this.energy;
}
@Override
@@ -174,57 +159,52 @@ public class VulcanizationExtrudingMoldTileEntity extends TileEntity implements }
@Override
- public double injectEnergy(ForgeDirection directionFrom, double amount,
- double voltage) {
- if(this.energy<this.maxStorage)
- {
- this.energy+=amount;
- return 0.0D;
- }
- else
- {
- return amount;
- }
+ public double injectEnergy(ForgeDirection directionFrom, double amount, double voltage) {
+ if (this.energy < this.maxStorage) {
+ this.energy += amount;
+ return 0.0D;
+ } else {
+ return amount;
+ }
}
@Override
- public boolean acceptsEnergyFrom(TileEntity emitter,
- ForgeDirection direction)
- {
+ public boolean acceptsEnergyFrom(TileEntity emitter, ForgeDirection direction) {
return true;
}
private ItemStack processWire(ItemStack wire, boolean doProcess) {
- UniversalRecipeOutput rOutput = VulcanizationExtrudingMoldTileEntity.recipeManager.getOutputFor(Arrays.asList(new FluidStack[] {this.fluidTank.getFluid()}),Arrays.asList(new ItemStack[] {wire}), false, false);
- if(rOutput==null || !(wire.getItem() instanceof FlexibleCableItem) || this.energy<this.energyConsume)
- {
+ UniversalRecipeOutput rOutput = VulcanizationExtrudingMoldTileEntity.recipeManager.getOutputFor(
+ Arrays.asList(new FluidStack[] { this.fluidTank.getFluid() }), Arrays.asList(new ItemStack[] { wire }),
+ false, false);
+ if (rOutput == null || this.energy < this.energyConsume) {
return wire;
}
- UniversalRecipeInput rInput = VulcanizationExtrudingMoldTileEntity.recipeManager.getRecipeInput(Arrays.asList(new FluidStack[] {this.fluidTank.getFluid()}),Arrays.asList(new ItemStack[] {wire}));
+ UniversalRecipeInput rInput = VulcanizationExtrudingMoldTileEntity.recipeManager.getRecipeInput(
+ Arrays.asList(new FluidStack[] { this.fluidTank.getFluid() }), Arrays.asList(new ItemStack[] { wire }));
ItemStack cableAsRO = rOutput.getItemOutputs().get(0).itemStack;
ItemStack cable = wire.copy();
FlexibleCableItem fci = (FlexibleCableItem) cableAsRO.getItem();
cable.stackTagCompound.setString("insulationMaterial", fci.getInsulationMaterial(cableAsRO));
cable.stackTagCompound.setInteger("insulationThickness", fci.getInsulationThickness(cableAsRO));
- cable.stackTagCompound.setInteger("maxVoltage", IHLUtils.getInsulationMaxVoltage(fci.getInsulationMaterial(cableAsRO), fci.getInsulationThickness(cableAsRO)));
- if(doProcess)
- {
- this.energy-=this.energyConsume;
- this.fluidTank.drain(rInput.getFluidInputs().get(0).getAmount()*IHLUtils.getWireLength(cable), true);
+ cable.stackTagCompound.setInteger("maxVoltage", IHLUtils
+ .getInsulationMaxVoltage(fci.getInsulationMaterial(cableAsRO), fci.getInsulationThickness(cableAsRO)));
+ if (doProcess) {
+ this.energy -= this.energyConsume;
+ this.fluidTank.drain(rInput.getFluidInputs().get(0).getAmount() * IHLUtils.getWireLength(cable), true);
}
return cable;
}
-
+
@Override
public boolean canProcess(ItemStack wire) {
- ItemStack cable = this.processWire(wire,false);
+ ItemStack cable = this.processWire(wire, false);
ForgeDirection dir = ForgeDirection.getOrientation(getFacing()).getRotation(ForgeDirection.UP);
- TileEntity te = worldObj.getTileEntity(xCoord+dir.offsetX,yCoord+dir.offsetY,zCoord+dir.offsetZ);
- if(te instanceof IProductionLine)
- {
- if(ForgeDirection.getOrientation(((IProductionLine)te).getFacing()).equals(dir.getRotation(ForgeDirection.DOWN)))
- {
- return ((IProductionLine)te).canProcess(cable);
+ TileEntity te = worldObj.getTileEntity(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ);
+ if (te instanceof IProductionLine) {
+ if (ForgeDirection.getOrientation(((IProductionLine) te).getFacing())
+ .equals(dir.getRotation(ForgeDirection.DOWN))) {
+ return ((IProductionLine) te).canProcess(cable);
}
}
return false;
@@ -232,12 +212,12 @@ public class VulcanizationExtrudingMoldTileEntity extends TileEntity implements @Override
public void process(ItemStack wire) {
- ItemStack cable = this.processWire(wire,true);
+ ItemStack cable = this.processWire(wire, true);
ForgeDirection dir = ForgeDirection.getOrientation(getFacing()).getRotation(ForgeDirection.UP);
- TileEntity te = worldObj.getTileEntity(xCoord+dir.offsetX,yCoord+dir.offsetY,zCoord+dir.offsetZ);
- if(te instanceof IProductionLine && ForgeDirection.getOrientation(((IProductionLine)te).getFacing()).equals(dir.getRotation(ForgeDirection.DOWN)))
- {
- ((IProductionLine)te).process(cable);
+ TileEntity te = worldObj.getTileEntity(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ);
+ if (te instanceof IProductionLine && ForgeDirection.getOrientation(((IProductionLine) te).getFacing())
+ .equals(dir.getRotation(ForgeDirection.DOWN))) {
+ ((IProductionLine) te).process(cable);
}
}
@@ -248,7 +228,7 @@ public class VulcanizationExtrudingMoldTileEntity extends TileEntity implements @Override
public boolean canFill(ForgeDirection arg0, Fluid arg1) {
- return ForgeDirection.getOrientation(this.facing)==arg0;
+ return ForgeDirection.getOrientation(this.facing) == arg0;
}
@Override
@@ -268,12 +248,10 @@ public class VulcanizationExtrudingMoldTileEntity extends TileEntity implements @Override
public FluidTankInfo[] getTankInfo(ForgeDirection arg0) {
- // TODO Auto-generated method stub
- return null;
+ return new FluidTankInfo[] {this.fluidTank.getInfo()};
}
- public static Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipes()
- {
+ public static Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipes() {
return recipeManager.getRecipes();
}
}
diff --git a/ihl/processing/metallurgy/WoodenRollingMachinePart1TileEntity.java b/ihl/processing/metallurgy/WoodenRollingMachinePart1TileEntity.java index 31b6386..5c786c5 100644 --- a/ihl/processing/metallurgy/WoodenRollingMachinePart1TileEntity.java +++ b/ihl/processing/metallurgy/WoodenRollingMachinePart1TileEntity.java @@ -4,6 +4,8 @@ import java.util.List; import java.util.Map;
import ic2.api.recipe.IRecipeInput;
+import ic2.api.recipe.RecipeInputItemStack;
+import ic2.api.recipe.RecipeInputOreDict;
import ic2.core.ContainerBase;
import ic2.core.IC2;
import ic2.core.block.invslot.InvSlot.Access;
@@ -132,9 +134,9 @@ public class WoodenRollingMachinePart1TileEntity extends BasicElectricMotorTileE @Override
public void onGuiClosed(EntityPlayer arg0) {}
- public static void addRecipe(ItemStack input, ItemStack input2, ItemStack input3, ItemStack output)
+ public static void addRecipe(RecipeInputItemStack recipeInputItemStack, RecipeInputItemStack recipeInputItemStack2, RecipeInputOreDict recipeInputOreDict, ItemStack output)
{
- recipeManager.addRecipe(new UniversalRecipeInput(null, (new ItemStack[] {input,input2,input3})), new UniversalRecipeOutput(null,(new ItemStack[] {output}),20));
+ recipeManager.addRecipe(new UniversalRecipeInput(null, (new IRecipeInput[] {recipeInputItemStack,recipeInputItemStack2,recipeInputOreDict})), new UniversalRecipeOutput(null,(new ItemStack[] {output}),20));
}
@@ -142,9 +144,9 @@ public class WoodenRollingMachinePart1TileEntity extends BasicElectricMotorTileE return recipeManager.getRecipes();
}
- public static void addRecipe(ItemStack input, ItemStack input3, ItemStack output)
+ public static void addRecipe(RecipeInputOreDict recipeInputOreDict, RecipeInputOreDict recipeInputOreDict2, ItemStack output)
{
- recipeManager.addRecipe(new UniversalRecipeInput(null, (new ItemStack[] {input,input3})), new UniversalRecipeOutput(null,(new ItemStack[] {output}),20));
+ recipeManager.addRecipe(new UniversalRecipeInput(null, (new IRecipeInput[] {recipeInputOreDict,recipeInputOreDict2})), new UniversalRecipeOutput(null,(new ItemStack[] {output}),20));
}
@Override
diff --git a/ihl/recipes/RecipeInputWire.java b/ihl/recipes/RecipeInputWire.java index 720fe1b..0bf2855 100644 --- a/ihl/recipes/RecipeInputWire.java +++ b/ihl/recipes/RecipeInputWire.java @@ -14,12 +14,12 @@ public class RecipeInputWire implements IRecipeInput public final ItemStack input;
public final int amount;
- public RecipeInputWire(ItemStack aInput)
+ public RecipeInputWire(final ItemStack aInput)
{
this(aInput, IHLUtils.getWireLength(aInput));
}
- public RecipeInputWire(ItemStack aInput, int aAmount)
+ public RecipeInputWire(final ItemStack aInput, int aAmount)
{
if (aInput.getItem() == null || !(aInput.getItem() instanceof IWire))
{
@@ -27,7 +27,7 @@ public class RecipeInputWire implements IRecipeInput }
else
{
- this.input = aInput.copy();
+ this.input = aInput;
this.amount = aAmount;
}
}
diff --git a/ihl/recipes/UniversalRecipeInput.java b/ihl/recipes/UniversalRecipeInput.java index 1d2b06c..62d6c87 100644 --- a/ihl/recipes/UniversalRecipeInput.java +++ b/ihl/recipes/UniversalRecipeInput.java @@ -13,74 +13,55 @@ import java.util.List; import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
-public class UniversalRecipeInput{
+public class UniversalRecipeInput {
- private final List<IRecipeInputFluid> fluidInputs=new ArrayList<IRecipeInputFluid>();
- private final List<IRecipeInput> itemInputs=new ArrayList<IRecipeInput>();
- private int multiplier=Integer.MAX_VALUE;
-
- public UniversalRecipeInput(Object[] fluidStacks, Object[] iRecipeInputs)
- {
- if(fluidStacks!=null)
- {
- for(Object material:fluidStacks)
- {
- if(material==null)
- {
- throw new NullPointerException("Recipe input cannot be null!");
- }
- if(material instanceof FluidStack)
- {
- fluidInputs.add(new RecipeInputFluidStack((FluidStack)material));
- }
- else
- {
- fluidInputs.add((IRecipeInputFluid) material);
- }
- }
- }
- if(iRecipeInputs!=null)
- {
- for(Object material:iRecipeInputs)
- {
- if(material==null)
- {
- throw new NullPointerException("Recipe input cannot be null!");
- }
- if(material instanceof ItemStack)
- {
- ItemStack stack = (ItemStack)material;
- String oreDictName = IHLUtils.getFirstOreDictNameExcludingTagAny(stack);
- if(stack.getItem() instanceof IWire)
- {
- itemInputs.add(new RecipeInputWire(stack));
- }
- else if(!oreDictName.isEmpty() && oreDictName.length()>3)
- {
- itemInputs.add(new RecipeInputOreDict(oreDictName,stack.stackSize));
- }
- else
- {
- itemInputs.add(new RecipeInputItemStack(stack));
- }
- }
- else
- {
- itemInputs.add((IRecipeInput) material);
- }
- }
- }
- }
+ private final List<IRecipeInputFluid> fluidInputs = new ArrayList<IRecipeInputFluid>();
+ private final List<IRecipeInput> itemInputs = new ArrayList<IRecipeInput>();
+ private int multiplier = Integer.MAX_VALUE;
- public boolean matches(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1)
- {
+ public UniversalRecipeInput(Object[] fluidStacks, Object[] iRecipeInputs) {
+ if (fluidStacks != null) {
+ for (Object material : fluidStacks) {
+ if (material == null) {
+ throw new NullPointerException("Recipe input cannot be null!");
+ }
+ if (material instanceof FluidStack) {
+ fluidInputs.add(new RecipeInputFluidStack((FluidStack) material));
+ } else {
+ fluidInputs.add((IRecipeInputFluid) material);
+ }
+ }
+ }
+ if (iRecipeInputs != null) {
+ for (Object material : iRecipeInputs) {
+ if (material == null) {
+ throw new NullPointerException("Recipe input cannot be null!");
+ }
+ if (material instanceof ItemStack) {
+ ItemStack stack = (ItemStack) material;
+ String oreDictName = IHLUtils.getFirstOreDictNameExcludingTagAny(stack);
+ if (stack.getItem() instanceof IWire) {
+ itemInputs.add(new RecipeInputWire(stack));
+ } else if (!oreDictName.isEmpty() && oreDictName.length() > 3) {
+ itemInputs.add(new RecipeInputOreDict(oreDictName, stack.stackSize));
+ } else {
+ itemInputs.add(new RecipeInputItemStack(stack));
+ }
+ } else {
+ itemInputs.add((IRecipeInput) material);
+ }
+ }
+ }
+ }
+
+ public boolean matches(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1) {
return this.adjustAmounts(fluidInputs1, itemInputs1, false, false);
}
public List<IRecipeInputFluid> getFluidInputs() {
return fluidInputs;
}
-
+
public List<IRecipeInput> getItemInputs() {
return itemInputs;
}
@@ -89,119 +70,91 @@ public class UniversalRecipeInput{ List<IRecipeInput> rInputs = input.getItemInputs();
Iterator<IRecipeInput> ii = rInputs.iterator();
List<ItemStack> rInputsItems = new ArrayList<ItemStack>();
- while(ii.hasNext())
- {
+ while (ii.hasNext()) {
IRecipeInput is = ii.next();
rInputsItems.add(is.getInputs().get(0));
}
List<FluidStack> rInputsFluids = new ArrayList<FluidStack>();
List<IRecipeInputFluid> rInputsF = input.getFluidInputs();
Iterator<IRecipeInputFluid> iiF = rInputsF.iterator();
- while(iiF.hasNext())
- {
+ while (iiF.hasNext()) {
IRecipeInputFluid is = iiF.next();
rInputsFluids.add(is.getInputs().get(0));
}
return this.matches(rInputsFluids, rInputsItems);
}
-
- public boolean adjustAmounts(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1, boolean doCheckAmounts, boolean doAdjustAmounts)
- {
- this.multiplier=Integer.MAX_VALUE;
- if(incorrectInputAmount(fluidInputs1, itemInputs1))
- {
+
+ public boolean adjustAmounts(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1, boolean doCheckAmounts,
+ boolean doAdjustAmounts) {
+ this.multiplier = Integer.MAX_VALUE;
+ if (incorrectInputAmount(fluidInputs1, itemInputs1)) {
return false;
}
- if(fluidInputs1!=null)
- {
- Iterator<IRecipeInputFluid> fi = fluidInputs.iterator();
- while(fi.hasNext())
- {
- IRecipeInputFluid fs = fi.next();
- FluidStack fs1 = getMatchedFluidStack(fs,fluidInputs1);
- if(fs1==null || !fs.matches(fs1))
- {
- multiplier=0;
- return false;
- }
- else if(doCheckAmounts && fs1.amount<fs.getAmount())
- {
- multiplier=0;
- return false;
- }
- else if(doAdjustAmounts)
- {
- if(fs.getAmount()>0)
- {
- int multiplier1=fs1.amount/fs.getAmount();
- if(multiplier1<multiplier)
- {
- multiplier=multiplier1;
+ if (fluidInputs1 != null) {
+ Iterator<IRecipeInputFluid> fi = fluidInputs.iterator();
+ while (fi.hasNext()) {
+ IRecipeInputFluid fs = fi.next();
+ FluidStack fs1 = getMatchedFluidStack(fs, fluidInputs1);
+ if (fs1 == null || !fs.matches(fs1)) {
+ multiplier = 0;
+ return false;
+ } else if (doCheckAmounts && fs1.amount < fs.getAmount()) {
+ multiplier = 0;
+ return false;
+ } else if (doAdjustAmounts) {
+ if (fs.getAmount() > 0) {
+ int multiplier1 = fs1.amount / fs.getAmount();
+ if (multiplier1 < multiplier) {
+ multiplier = multiplier1;
+ }
}
+ fs1.amount -= fs.getAmount();
+ if (fs1.amount <= 0)
+ fs1 = null;
}
- fs1.amount-=fs.getAmount();
- if(fs1.amount<=0)fs1=null;
}
}
- }
- if(itemInputs1!=null)
- {
- Iterator<IRecipeInput> ii = itemInputs.iterator();
- while(ii.hasNext())
- {
- IRecipeInput is = ii.next();
- ItemStack is1 = getMatchedItemStack(is, itemInputs1);
- if(is1==null || !is.matches(is1))
- {
- multiplier=0;
- return false;
- }
- else if(doCheckAmounts && is1.stackSize<is.getAmount())
- {
- multiplier=0;
- return false;
- }
- else if(doAdjustAmounts)
- {
- if(is.getAmount()>0)
- {
- int multiplier1=is1.stackSize/is.getAmount();
- if(multiplier1<multiplier)
- {
- multiplier=multiplier1;
+ if (itemInputs1 != null) {
+ Iterator<IRecipeInput> ii = itemInputs.iterator();
+ while (ii.hasNext()) {
+ IRecipeInput is = ii.next();
+ ItemStack is1 = getMatchedItemStack(is, itemInputs1);
+ if (is1 == null || !is.matches(is1)) {
+ multiplier = 0;
+ return false;
+ } else if (doCheckAmounts && is1.stackSize < is.getAmount()) {
+ multiplier = 0;
+ return false;
+ } else if (doAdjustAmounts) {
+ if (is.getAmount() > 0) {
+ int multiplier1 = is1.stackSize / is.getAmount();
+ if (multiplier1 < multiplier) {
+ multiplier = multiplier1;
+ }
+ }
+ if (IHLUtils.reduceItemStackAmountUsingIRecipeInput(is, is1)) {
+ is1 = null;
}
- }
- if(IHLUtils.reduceItemStackAmountUsingIRecipeInput(is, is1))
- {
- is1=null;
}
}
}
- }
return true;
}
- private ItemStack getMatchedItemStack(IRecipeInput is, List<ItemStack> itemInputs1)
- {
- for(ItemStack is1:itemInputs1)
- {
- if(is1!=null)
- {
- if(is.matches(is1))
- {
+ private ItemStack getMatchedItemStack(IRecipeInput is, List<ItemStack> itemInputs1) {
+ for (ItemStack is1 : itemInputs1) {
+ if (is1 != null) {
+ if (is.matches(is1)) {
return is1;
}
- }
+ }
}
return null;
}
- private FluidStack getMatchedFluidStack(IRecipeInputFluid fs, List<FluidStack> fluidInputs1)
- {
- for(FluidStack fs1:fluidInputs1)
- {
- if(fs.matches(fs1))
- {
+ private FluidStack getMatchedFluidStack(IRecipeInputFluid fs, List<FluidStack> fluidInputs1) {
+ for (FluidStack fs1 : fluidInputs1) {
+ if (fs.matches(fs1)) {
return fs1;
}
}
@@ -212,79 +165,62 @@ public class UniversalRecipeInput{ List<IRecipeInput> rInputs = input.getItemInputs();
Iterator<IRecipeInput> ii = rInputs.iterator();
List<ItemStack> rInputsItems = new ArrayList<ItemStack>();
- while(ii.hasNext())
- {
+ while (ii.hasNext()) {
IRecipeInput is = ii.next();
rInputsItems.add(is.getInputs().get(0));
}
List<FluidStack> rInputsFluids = new ArrayList<FluidStack>();
List<IRecipeInputFluid> rInputsF = input.getFluidInputs();
Iterator<IRecipeInputFluid> iiF = rInputsF.iterator();
- while(iiF.hasNext())
- {
+ while (iiF.hasNext()) {
IRecipeInputFluid is = iiF.next();
rInputsFluids.add(is.getInputs().get(0));
}
return this.adjustAmounts(rInputsFluids, rInputsItems, true, doAdjustAmounts);
}
- public int getMultiplierAndAdjustAmounts(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1)
- {
- if(this.adjustAmounts(fluidInputs1, itemInputs1, true, true))
- {
- if(multiplier<Integer.MAX_VALUE)
- {
+ public int getMultiplierAndAdjustAmounts(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1) {
+ if (this.adjustAmounts(fluidInputs1, itemInputs1, true, true)) {
+ if (multiplier < Integer.MAX_VALUE) {
return multiplier;
- }
- else return 1;
- }
- else
- {
+ } else
+ return 1;
+ } else {
return 0;
}
}
- public boolean containItemStack(ItemStack ingredient)
- {
- if(itemInputs==null || itemInputs.isEmpty())
- {
+ public boolean containItemStack(ItemStack ingredient) {
+ if (itemInputs == null || itemInputs.isEmpty()) {
return false;
}
Iterator<IRecipeInput> ii = itemInputs.iterator();
- while(ii.hasNext())
- {
+ while (ii.hasNext()) {
IRecipeInput is = ii.next();
- if(is.matches(ingredient))
- {
+ if (is.matches(ingredient)) {
return true;
}
}
return false;
}
- public boolean containFluidStack(FluidStack fluidStack)
- {
- if(fluidInputs==null || fluidInputs.isEmpty())
- {
+ public boolean containFluidStack(FluidStack fluidStack) {
+ if (fluidInputs == null || fluidInputs.isEmpty()) {
return false;
}
Iterator<IRecipeInputFluid> ii = fluidInputs.iterator();
- while(ii.hasNext())
- {
+ while (ii.hasNext()) {
IRecipeInputFluid is = ii.next();
- if(is!=null && is.matches(fluidStack))
- {
+ if (is != null && is.matches(fluidStack)) {
return true;
}
}
return false;
}
-
- private boolean incorrectInputAmount(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1)
- {
- return (fluidInputs.size()>0 && fluidInputs1==null)||
- (itemInputs.size()>0 && itemInputs1==null)||
- (fluidInputs1!=null && fluidInputs.size()>fluidInputs1.size())||
- (itemInputs1!=null && itemInputs.size()>itemInputs1.size());
+
+ private boolean incorrectInputAmount(List<FluidStack> fluidInputs1, List<ItemStack> itemInputs1) {
+ return (fluidInputs.size() > 0 && fluidInputs1 == null) || (itemInputs.size() > 0 && itemInputs1 == null)
+ || (fluidInputs1 != null && fluidInputs.size() > fluidInputs1.size())
+ || (itemInputs1 != null && itemInputs.size() > itemInputs1.size());
}
}
diff --git a/ihl/utils/IHLFluidTank.java b/ihl/utils/IHLFluidTank.java index 21eb5b7..6ffd2bf 100644 --- a/ihl/utils/IHLFluidTank.java +++ b/ihl/utils/IHLFluidTank.java @@ -92,7 +92,7 @@ public class IHLFluidTank implements IFluidTank {
if(this.fluidList.isEmpty())
{
- return null;
+ return IHLUtils.getFluidStackWithSize("air", this.capacity);
}
return this.fluidList.get(this.fluidList.size()-1);
}
diff --git a/ihl/utils/IHLUtils.java b/ihl/utils/IHLUtils.java index 5099727..cba20b5 100644 --- a/ihl/utils/IHLUtils.java +++ b/ihl/utils/IHLUtils.java @@ -915,7 +915,6 @@ public class IHLUtils is.stackTagCompound.setBoolean("firstConnection",false);
is.stackTagCompound.setInteger("fullLength", length);
is.stackTagCompound.setInteger("length", length);
- is.stackTagCompound.setBoolean("firstConnection", false);
is.stackTagCompound.setString("material", material);
is.stackTagCompound.setInteger("transverseSection",transverseSection);
return is;
diff --git a/ihl/worldgen/ores/DebugScannerTileEntity.java b/ihl/worldgen/ores/DebugScannerTileEntity.java index 99778a9..df027d5 100644 --- a/ihl/worldgen/ores/DebugScannerTileEntity.java +++ b/ihl/worldgen/ores/DebugScannerTileEntity.java @@ -11,6 +11,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.fluids.FluidContainerRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.IFluidContainerItem;
import net.minecraftforge.oredict.OreDictionary;
@@ -20,142 +21,137 @@ import ic2.core.IHasGui; import ic2.core.block.TileEntityInventory;
import ic2.core.block.invslot.InvSlot;
-public class DebugScannerTileEntity extends TileEntityInventory implements IHasGui
-{
- public final InvSlot itemsSlot;
- private ItemStack lastItem;
- public List<String> oreDictionaryEntries = new ArrayList<String>();
-
- public DebugScannerTileEntity()
- {
- this.itemsSlot = new InvSlot(this, "drainInput", 0, InvSlot.Access.I, 2);
- }
-
+public class DebugScannerTileEntity extends TileEntityInventory implements IHasGui {
+ public final InvSlot itemsSlot;
+ private ItemStack lastItem;
+ public List<String> oreDictionaryEntries = new ArrayList<String>();
+
+ public DebugScannerTileEntity() {
+ this.itemsSlot = new InvSlot(this, "drainInput", 0, InvSlot.Access.I, 2);
+ }
+
@Override
public boolean wrenchCanSetFacing(EntityPlayer entityPlayer, int side) {
- return this.getFacing()!=(short)side && side!=0 && side!=1;
+ return this.getFacing() != (short) side && side != 0 && side != 1;
}
-
- @Override
- public void updateEntityClient()
- {
- if(IC2.platform.isRendering())
- {
- if(this.itemsSlot.get(0)!=null && this.itemsSlot.get(0)!=lastItem)
- {
- this.oreDictionaryEntries.clear();
- int[] ids = OreDictionary.getOreIDs(this.itemsSlot.get());
- String itemNameFromIR = Item.itemRegistry.getNameForObject(this.itemsSlot.get().getItem());
- this.oreDictionaryEntries.add("ItemRegistry entry:");
- this.oreDictionaryEntries.add(" "+itemNameFromIR);
- this.oreDictionaryEntries.add("Item damage: " + this.itemsSlot.get().getItemDamage());
- this.oreDictionaryEntries.add("Item class:");
- this.oreDictionaryEntries.add(" "+this.itemsSlot.get().getItem().getClass().getCanonicalName());
- if(this.itemsSlot.get().stackTagCompound!=null)
- {
- this.oreDictionaryEntries.add("NBT keys:");
- Iterator<?> iterator = this.itemsSlot.get().stackTagCompound.func_150296_c().iterator();
- while(iterator.hasNext())
- {
- String entry = (String) iterator.next();
- if(this.itemsSlot.get().stackTagCompound.getTag(entry) instanceof NBTTagCompound)
- {
- this.oreDictionaryEntries.add(" "+entry);
- NBTTagCompound ct = this.itemsSlot.get().stackTagCompound.getCompoundTag(entry);
- if(ct!=null && ct.func_150296_c()!=null && !ct.func_150296_c().isEmpty())
- {
- this.oreDictionaryEntries.add(" -NBT compound tag subkeys:");
- Iterator<?> stIterator = ct.func_150296_c().iterator();
- while(stIterator.hasNext())
- {
- String entry2 = (String) stIterator.next();
- this.oreDictionaryEntries.add(" "+entry2+"="+ct.getString(entry2));
- }
- }
- }
- else
- {
- this.oreDictionaryEntries.add(" "+entry+"="+this.itemsSlot.get().stackTagCompound.getString(entry));
- }
- }
- }
- if(ids.length>0)
- {
- this.oreDictionaryEntries.add("Ore dict. entries:");
- for(int i=0;i<ids.length;i++)
- {
- this.oreDictionaryEntries.add(" "+OreDictionary.getOreName(ids[i]));
- }
- }
- lastItem=this.itemsSlot.get(0);
- }
- if(this.itemsSlot.get(1)!=null && this.itemsSlot.get(1)!=lastItem)
- {
- this.oreDictionaryEntries.clear();
- if(this.itemsSlot.get(1).getItem() instanceof IFluidContainerItem)
- {
- FluidStack fluid = ((IFluidContainerItem)this.itemsSlot.get(1).getItem()).getFluid(this.itemsSlot.get(1));
- if(fluid!=null)
- {
- this.oreDictionaryEntries.add("Internal fluid name:");
- this.oreDictionaryEntries.add(" "+fluid.getFluid().getName());
- this.oreDictionaryEntries.add("Fluid class:");
- this.oreDictionaryEntries.add(" "+fluid.getFluid().getClass().getName());
- this.oreDictionaryEntries.add("Fluid id:");
- this.oreDictionaryEntries.add(" "+fluid.getFluid().getID());
- this.oreDictionaryEntries.add("Fluid still icon:");
- if(fluid.getFluid().getStillIcon()!=null)
- {
- this.oreDictionaryEntries.add(" "+fluid.getFluid().getStillIcon().getIconName());
- }
- else
- {
- this.oreDictionaryEntries.add(" <missing icon> ");
- }
- this.oreDictionaryEntries.add("Fluid flowing icon:");
- if(fluid.getFluid().getFlowingIcon()!=null)
- {
- this.oreDictionaryEntries.add(" "+fluid.getFluid().getFlowingIcon().getIconName());
- }
- else
- {
- this.oreDictionaryEntries.add(" <missing icon> ");
- }
- }
- }
- lastItem=this.itemsSlot.get(1);
- }
- }
- }
-
- /**
- * Returns the name of the inventory
- */
- @Override
- public String getInventoryName()
- {
- return "debugScanner";
- }
- @Override
- public ContainerBase<?> getGuiContainer(EntityPlayer entityPlayer)
- {
- return new DebugScannerContainer(entityPlayer, this);
- }
-
- @Override
- @SideOnly(Side.CLIENT)
- public GuiScreen getGui(EntityPlayer entityPlayer, boolean isAdmin)
- {
- return new DebugScannerGui(new DebugScannerContainer(entityPlayer, this));
- }
+ @Override
+ public void updateEntityClient() {
+ if (IC2.platform.isRendering()) {
+ if (this.itemsSlot.get(0) != null && this.itemsSlot.get(0) != lastItem) {
+ this.oreDictionaryEntries.clear();
+ int[] ids = OreDictionary.getOreIDs(this.itemsSlot.get());
+ String itemNameFromIR = Item.itemRegistry.getNameForObject(this.itemsSlot.get().getItem());
+ this.oreDictionaryEntries.add("ItemRegistry entry:");
+ this.oreDictionaryEntries.add(" " + itemNameFromIR);
+ this.oreDictionaryEntries.add("Item damage: " + this.itemsSlot.get().getItemDamage());
+ this.oreDictionaryEntries.add("Item class:");
+ this.oreDictionaryEntries.add(" " + this.itemsSlot.get().getItem().getClass().getCanonicalName());
+ if (this.itemsSlot.get().stackTagCompound != null) {
+ this.oreDictionaryEntries.add("NBT keys:");
+ Iterator<?> iterator = this.itemsSlot.get().stackTagCompound.func_150296_c().iterator();
+ while (iterator.hasNext()) {
+ String entry = (String) iterator.next();
+ if (this.itemsSlot.get().stackTagCompound.getTag(entry) instanceof NBTTagCompound) {
+ this.oreDictionaryEntries.add(" " + entry);
+ NBTTagCompound ct = this.itemsSlot.get().stackTagCompound.getCompoundTag(entry);
+ if (ct != null && ct.func_150296_c() != null && !ct.func_150296_c().isEmpty()) {
+ this.oreDictionaryEntries.add(" -NBT compound tag subkeys:");
+ Iterator<?> stIterator = ct.func_150296_c().iterator();
+ while (stIterator.hasNext()) {
+ String entry2 = (String) stIterator.next();
+ this.oreDictionaryEntries.add(" " + entry2 + "=" + ct.getString(entry2));
+ }
+ }
+ } else {
+ this.oreDictionaryEntries
+ .add(" " + entry + "=" + this.itemsSlot.get().stackTagCompound.getString(entry));
+ }
+ }
+ }
+ if (ids.length > 0) {
+ this.oreDictionaryEntries.add("Ore dict. entries:");
+ for (int i = 0; i < ids.length; i++) {
+ this.oreDictionaryEntries.add(" " + OreDictionary.getOreName(ids[i]));
+ }
+ }
+ lastItem = this.itemsSlot.get(0);
+ }
+ if (this.itemsSlot.get(1) != null && this.itemsSlot.get(1) != lastItem) {
+ this.oreDictionaryEntries.clear();
+ FluidStack fluid = null;
+ this.oreDictionaryEntries.add("Fluid related item type:");
+ if (this.itemsSlot.get(1).getItem() instanceof IFluidContainerItem) {
+ this.oreDictionaryEntries.add(" IFluidContainerItem");
+ fluid = ((IFluidContainerItem) this.itemsSlot.get(1).getItem()).getFluid(this.itemsSlot.get(1));
+ } else if (FluidContainerRegistry.isContainer(this.itemsSlot.get(1))) {
+ this.oreDictionaryEntries.add(" FluidContainerRegistry entry");
+ if (FluidContainerRegistry.isBucket(this.itemsSlot.get(1))) {
+ this.oreDictionaryEntries.add("This is bucket.");
+ } else {
+ this.oreDictionaryEntries.add("This is not a bucket.");
+ }
+ ItemStack emptyContainer = FluidContainerRegistry.drainFluidContainer(this.itemsSlot.get(1));
+ if (emptyContainer != null) {
+ this.oreDictionaryEntries.add("This container could return empty container:");
+ this.oreDictionaryEntries.add(" " + emptyContainer.getDisplayName());
+ } else {
+ this.oreDictionaryEntries.add("This container has no empty version.");
+ }
+ fluid = FluidContainerRegistry.getFluidForFilledItem(this.itemsSlot.get(1));
+ } else {
+ this.oreDictionaryEntries.add(" none");
+ }
+ if (fluid != null) {
+ this.oreDictionaryEntries.add("Internal fluid name:");
+ this.oreDictionaryEntries.add(" " + fluid.getFluid().getName());
+ this.oreDictionaryEntries.add("Fluid class:");
+ this.oreDictionaryEntries.add(" " + fluid.getFluid().getClass().getName());
+ this.oreDictionaryEntries.add("Fluid id:");
+ this.oreDictionaryEntries.add(" " + fluid.getFluid().getID());
+ this.oreDictionaryEntries.add("Fluid still icon:");
+ if (fluid.getFluid().getStillIcon() != null) {
+ this.oreDictionaryEntries.add(" " + fluid.getFluid().getStillIcon().getIconName());
+ } else {
+ this.oreDictionaryEntries.add(" <missing icon> ");
+ }
+ this.oreDictionaryEntries.add("Fluid flowing icon:");
+ if (fluid.getFluid().getFlowingIcon() != null) {
+ this.oreDictionaryEntries.add(" " + fluid.getFluid().getFlowingIcon().getIconName());
+ } else {
+ this.oreDictionaryEntries.add(" <missing icon> ");
+ }
+ }
+ lastItem = this.itemsSlot.get(1);
+ }
+ }
+ }
+
+ /**
+ * Returns the name of the inventory
+ */
+ @Override
+ public String getInventoryName() {
+ return "debugScanner";
+ }
- @Override
- public void onGuiClosed(EntityPlayer entityPlayer) {}
+ @Override
+ public ContainerBase<?> getGuiContainer(EntityPlayer entityPlayer) {
+ return new DebugScannerContainer(entityPlayer, this);
+ }
+ @Override
+ @SideOnly(Side.CLIENT)
+ public GuiScreen getGui(EntityPlayer entityPlayer, boolean isAdmin) {
+ return new DebugScannerGui(new DebugScannerContainer(entityPlayer, this));
+ }
- public boolean getGui(EntityPlayer player)
- {
- return this instanceof IHasGui ? (IC2.platform.isSimulating() ? IC2.platform.launchGui(player, this) : true) : false;
- }
- }
\ No newline at end of file + @Override
+ public void onGuiClosed(EntityPlayer entityPlayer) {
+ }
+
+ public boolean getGui(EntityPlayer player) {
+ return this instanceof IHasGui ? (IC2.platform.isSimulating() ? IC2.platform.launchGui(player, this) : true)
+ : false;
+ }
+}
\ No newline at end of file diff --git a/ihl/worldgen/ores/IHLFluid.java b/ihl/worldgen/ores/IHLFluid.java index beab11b..11f1414 100644 --- a/ihl/worldgen/ores/IHLFluid.java +++ b/ihl/worldgen/ores/IHLFluid.java @@ -17,6 +17,7 @@ import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material;
import net.minecraft.block.material.MaterialLiquid;
import net.minecraft.client.renderer.texture.TextureMap;
+import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBucket;
import net.minecraft.item.ItemStack;
@@ -25,8 +26,7 @@ import net.minecraftforge.fluids.FluidContainerRegistry; import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
-public class IHLFluid extends Fluid
-{
+public class IHLFluid extends Fluid {
private IHLFluidType type;
private static List<Fluid> fluidInstances = new ArrayList<Fluid>();
private static Map<String, IHLFluidType> localFluidRegistry = new HashMap<String, IHLFluidType>();
@@ -34,266 +34,270 @@ public class IHLFluid extends Fluid private static Map<String, String> condensationMap = new HashMap<String, String>();
private static Map<String, List<String>> solutionMap = new HashMap<String, List<String>>();
public static final int maxGaseousStateVapoursDensity = 40;
-
+
public IHLFluid(IHLFluidType type1) {
super(type1.fluidRegistryName);
- type=type1;
+ type = type1;
this.setTemperature(type.temperature);
this.setDensity(Math.round(type.density));
realDensityMap.put(type1.fluidRegistryName, type.density);
this.setUnlocalizedName(type.fluidRegistryName.replaceFirst("fluid", ""));
this.setGaseous(type.isGaseous);
Fluid instance = this;
- if (!FluidRegistry.registerFluid(instance))
- {
- instance = FluidRegistry.getFluid(type.fluidRegistryName);
- }
- if(instance.getBlock()==null && !type.noBlock)
- {
- instance.setBlock(new IHLFluidBlock(instance, type.blockMaterial, type.textureName, "fluid"+type.fluidName.replaceFirst("fluid", "")).setFlammable(type.flammable).setBlockName("block"+type.fluidName).setCreativeTab(IHLCreativeTab.tab));
+ if (!FluidRegistry.registerFluid(instance)) {
+ instance = FluidRegistry.getFluid(type.fluidRegistryName);
+ }
+ if (instance.getBlock() == null && !type.noBlock) {
+ instance.setBlock(new IHLFluidBlock(instance, type.blockMaterial, type.textureName,
+ "fluid" + type.fluidName.replaceFirst("fluid", "")).setFlammable(type.flammable)
+ .setBlockName("block" + type.fluidName).setCreativeTab(IHLCreativeTab.tab));
}
instance.setGaseous(type.isGaseous);
- if(type.haveBucket)
- {
- Item bucket = new ItemBucket(block).setTextureName(IHLModInfo.MODID+":bucket_"+type.fluidName).setUnlocalizedName("bucket_"+type.fluidName).setCreativeTab(IHLCreativeTab.tab);
- GameRegistry.registerItem(bucket, "bucket_"+type.fluidName);
- FluidContainerRegistry.registerFluidContainer(instance, new ItemStack(bucket), FluidContainerRegistry.EMPTY_BUCKET);
+ if (type.haveBucket) {
+ Item bucket = new ItemBucket(block).setTextureName(IHLModInfo.MODID + ":bucket_" + type.fluidName)
+ .setUnlocalizedName("bucket_" + type.fluidName).setCreativeTab(IHLCreativeTab.tab);
+ GameRegistry.registerItem(bucket, "bucket_" + type.fluidName);
+ FluidContainerRegistry.registerFluidContainer(instance, new ItemStack(bucket),
+ FluidContainerRegistry.EMPTY_BUCKET);
+ bucket.setContainerItem(Items.bucket);
}
- type.fluid=instance;
- localFluidRegistry.put(type1.fluidRegistryName, type);
+ type.fluid = instance;
+ localFluidRegistry.put(type1.fluidRegistryName, type);
fluidInstances.add(this);
}
-
- public static void init()
- {
+
+ public static void init() {
IHLFluidType[] var1 = IHLFluidType.values();
- for(int i=0;i<var1.length;i++)
- {
+ for (int i = 0; i < var1.length; i++) {
new IHLFluid(var1[i]);
}
condensationMap.put("steam", "ic2distilledwater");
condensationMap.put("ic2steam", "ic2distilledwater");
condensationMap.put("ic2superheatedsteam", "ic2distilledwater");
condensationMap.put("vapour.sulfuricacid", "sulfuricacid");
- solutionMap.put("water", Arrays.asList(new String [] {"aquaregia","sulfuricacid","solution.nickelsulfate","solution.bluevitriol"}));
- solutionMap.put("ic2distilledwater", Arrays.asList(new String [] {"aquaregia","sulfuricacid","solution.nickelsulfate","solution.bluevitriol"}));
+ solutionMap.put("water", Arrays.asList(
+ new String[] { "aquaregia", "sulfuricacid", "solution.nickelsulfate", "solution.bluevitriol" }));
+ solutionMap.put("ic2distilledwater", Arrays.asList(
+ new String[] { "aquaregia", "sulfuricacid", "solution.nickelsulfate", "solution.bluevitriol" }));
}
-
- public static void registerIcons(TextureMap iconRegistry)
- {
+
+ public static void registerIcons(TextureMap iconRegistry) {
Iterator<Fluid> ii = fluidInstances.iterator();
- while(ii.hasNext())
- {
+ while (ii.hasNext()) {
Fluid instance = ii.next();
IHLFluidType instanceType = localFluidRegistry.get(instance.getName());
- instance.setIcons(
- iconRegistry.registerIcon(IHLModInfo.MODID + ":" + instanceType.textureName + "Still")
- ,iconRegistry.registerIcon(IHLModInfo.MODID + ":" + instanceType.textureName + "Flowing")
- );
+ instance.setIcons(iconRegistry.registerIcon(IHLModInfo.MODID + ":" + instanceType.textureName + "Still"),
+ iconRegistry.registerIcon(IHLModInfo.MODID + ":" + instanceType.textureName + "Flowing"));
}
}
-
- public static ItemStack getCell(String fluidname1)
- {
- ItemStack filledCell = FluidContainerRegistry.fillFluidContainer(new FluidStack(FluidRegistry.getFluid(fluidname1), FluidContainerRegistry.BUCKET_VOLUME),Ic2Items.cell.copy());
+
+ public static ItemStack getCell(String fluidname1) {
+ ItemStack filledCell = FluidContainerRegistry.fillFluidContainer(
+ new FluidStack(FluidRegistry.getFluid(fluidname1), FluidContainerRegistry.BUCKET_VOLUME),
+ Ic2Items.cell.copy());
return filledCell;
}
-
- public static Block getBlock(String fluidname)
- {
+
+ public static Block getBlock(String fluidname) {
return localFluidRegistry.get(fluidname).fluid.getBlock();
}
-
- public static int getMeltingPoint(Fluid fluid)
- {
- if(localFluidRegistry.get(fluid.getName())!=null)
- {
+
+ public static int getMeltingPoint(Fluid fluid) {
+ if (localFluidRegistry.get(fluid.getName()) != null) {
IHLFluidType type = localFluidRegistry.get(fluid.getName());
return type.meltingPoint;
- }
- else
- {
- if(fluid.isGaseous())
- {
- return fluid.getTemperature()>100?fluid.getTemperature()-100:0;
- }
- else
- {
+ } else {
+ if (fluid.isGaseous()) {
+ return fluid.getTemperature() > 100 ? fluid.getTemperature() - 100 : 0;
+ } else {
return fluid.getTemperature();
}
}
}
-
- public static int getBoilingPoint(Fluid fluid)
- {
- if(localFluidRegistry.containsKey(fluid.getName()))
- {
+
+ public static int getBoilingPoint(Fluid fluid) {
+ if (localFluidRegistry.containsKey(fluid.getName())) {
IHLFluidType type = localFluidRegistry.get(fluid.getName());
return type.boilingPoint;
- }
- else
- {
- if(fluid.getName()=="steam" || fluid.getName()=="ic2steam" || fluid.getName()=="ic2superheatedsteam")
- {
+ } else {
+ if (fluid.getName() == "steam" || fluid.getName() == "ic2steam"
+ || fluid.getName() == "ic2superheatedsteam") {
return 373;
- }
- else if(fluid.isGaseous())
- {
+ } else if (fluid.isGaseous()) {
return fluid.getTemperature();
- }
- else
- {
- return fluid.getTemperature()+100;
+ } else {
+ return fluid.getTemperature() + 100;
}
}
}
- public enum IHLFluidType
- {
- //Methane("Methane","fluidAcetylene",10047, 293, 249, 373, 1150, "methane", Material.water, false, false, false, false),
- Ammonia("Ammonia", 10051, 273, 273-78, 273-33, 0.772F, "ammonia", new MaterialLiquid(MapColor.airColor), false, false, true),
- Acetaldehyde("Acetaldehyde",10050, 273, 273-123, 294, 784, "acetaldehyde", Material.water, false, false, false),
- Formaldehyde("Formaldehyde",10049, 254, 273-118, 254, 815, "formaldehyde", Material.water, false, false, false),
- TarWater("TarWater",10048, 293, 176, 338, 1032, "tarwater", Material.water, false, false, false),
- Methanol("Methanol",10047, 293, 176, 338, 792, "methanol", Material.water, true, false, false),
- LithiumChloride("LithiumChlorideDissolvedInWater",10046, 293, 249, 373, 1530, "solution.lithiumchloride", Material.water, false, false, false),
- CalciumChloride("CalciumChlorideDissolvedInWater",10045, 293, 249, 373, 1630, "solution.calciumchloride", Material.water, false, false, false),
- ZeolitePulp("ZeolitePulp","fluidPulpZeolite",10044, 293, 249, 373, 1150, "pulp.sodiumzeolite", Material.water, false, false, false),
- MoltenTarPitch("MoltenTarPitch","fluidOil",10043, 373, 373, 800, 1250, "molten.tarpitch", Material.lava, false, false, false),
- CrackingGas("CrackingGas","fluidAcetylene",10042, 293, 135, 273, 2.27f, "crackinggas",new MaterialLiquid(MapColor.blackColor), false, false, false),
- Trichlorosilane("Trichlorosilane","fluidHydrogenChloride", 10041, 293, 147, 305, 1342, "trichlorosilane", new MaterialLiquid(MapColor.greenColor), true, false, false),
- SiliconTetrachloride("SiliconTetrachloride","fluidChlorine", 10040, 293, 204, 330, 584, "silicontetrachloride", new MaterialLiquid(MapColor.cyanColor), true, false, false),
+ public enum IHLFluidType {
+ // Methane("Methane","fluidAcetylene",10047, 293, 249, 373, 1150,
+ // "methane", Material.water, false, false, false, false),
+ Ammonia("Ammonia", 10051, 273, 273 - 78, 273
+ - 33, 0.772F, "ammonia", new MaterialLiquid(MapColor.airColor), false, false, true),
+ Acetaldehyde("Acetaldehyde", 10050, 273, 273
+ - 123, 294, 784, "acetaldehyde", Material.water, false, false, false),
+ Formaldehyde("Formaldehyde", 10049, 254, 273
+ - 118, 254, 815, "formaldehyde", Material.water, false, false, false),
+ TarWater("TarWater", 10048, 293, 176, 338, 1032, "tarwater", Material.water, false, false, false),
+ Methanol("Methanol", 10047, 293, 176, 338, 792, "methanol", Material.water, true, false, false),
+ LithiumChloride("LithiumChlorideDissolvedInWater", 10046, 293, 249, 373, 1530, "solution.lithiumchloride", Material.water, false, false, false),
+ CalciumChloride("CalciumChlorideDissolvedInWater", 10045, 293, 249, 373, 1630, "solution.calciumchloride", Material.water, false, false, false),
+ ZeolitePulp("ZeolitePulp", "fluidPulpZeolite", 10044, 293, 249, 373, 1150, "pulp.sodiumzeolite", Material.water, false, false, false),
+ MoltenTarPitch("MoltenTarPitch", "fluidOil", 10043, 373, 373, 800, 1250, "molten.tarpitch", Material.lava, false, false, false),
+ CrackingGas("CrackingGas", "fluidAcetylene", 10042, 293, 135, 273, 2.27f, "crackinggas", new MaterialLiquid(
+ MapColor.blackColor), false, false, false),
+ Trichlorosilane("Trichlorosilane", "fluidHydrogenChloride", 10041, 293, 147, 305, 1342, "trichlorosilane", new MaterialLiquid(
+ MapColor.greenColor), true, false, false),
+ SiliconTetrachloride("SiliconTetrachloride", "fluidChlorine", 10040, 293, 204, 330, 584, "silicontetrachloride", new MaterialLiquid(
+ MapColor.cyanColor), true, false, false),
Chlorine("Chlorine", 10039, 293, 172, 238, 3.21F),
- BoricAcid("BoricAcid",10038, 373, 249, 373, 1275, "boricacid", Material.water, false, false, false),
- MicaPulp("PulpMica",10037, 293, 249, 373, 1150, "pulp.mica", Material.water, false, false, false),
- CellulosePulp("PulpCellulose",10036, 293, 249, 373, 1075, "pulp.cellulose", Material.water, false, false, false),
+ BoricAcid("BoricAcid", 10038, 373, 249, 373, 1275, "boricacid", Material.water, false, false, false),
+ MicaPulp("PulpMica", 10037, 293, 249, 373, 1150, "pulp.mica", Material.water, false, false, false),
+ CellulosePulp("PulpCellulose", 10036, 293, 249, 373, 1075, "pulp.cellulose", Material.water, false, false, false),
Fuel("Fuel", 10035, 293, 268, 633, 840, "fuel", Material.water, true, false, true),
MineralOil("MineralOil", 10034, 293, 238, 704, 845, "mineraloil", Material.water, true, false, true),
FuelOil("FuelOil", 10033, 293, 293, 693, 991, "fueloil", Material.water, true, false, true),
- Oil("Oil","fluidOil", 10032, 293, 284, 773, 850f, "oil", Material.water, true, false, true, false),
+ Oil("Oil", "fluidOil", 10032, 293, 284, 773, 850f, "oil", Material.water, true, false, true, false),
Mercury("Mercury", 10031, 293, 234, 630, 13546),
- VapourMercury("VapourMercury",10030, 630, 234, 630, 9.229F, "vapour.mercury", new MaterialLiquid(MapColor.cyanColor), false, false, false),
- Hydrogen("Hydrogen", 10029, 293, 14, 20, 0.046F, "hydrogen", new MaterialLiquid(MapColor.blueColor), true, false, true),
- SaltWater("SaltWater","fluidSaltWater", 10028, 293, 253, 373, 1360f,"saltwater", Material.water, true, false, false, false),
- HydrogenChloride("HydrogenChloride", 10027, 293, 159, 188, 1.477F, "hydrogenchloride", new MaterialLiquid(MapColor.yellowColor), true, false, true),
- NatriumTungstate("NatriumTungstateDissolvedInWater",10026, 293, 249, 373, 1730, "solution.natriumtungstate", Material.water, true, false, false),
- Turpentine("Turpentine",10025, 293, 217, 453, 1470, "turpentine", Material.water, true, false, true),
+ VapourMercury("VapourMercury", 10030, 630, 234, 630, 9.229F, "vapour.mercury", new MaterialLiquid(
+ MapColor.cyanColor), false, false, false),
+ Hydrogen("Hydrogen", 10029, 293, 14, 20, 0.046F, "hydrogen", new MaterialLiquid(
+ MapColor.blueColor), true, false, true),
+ SaltWater("SaltWater", "fluidSaltWater", 10028, 293, 253, 373, 1360f, "saltwater", Material.water, true, false, false, false),
+ HydrogenChloride("HydrogenChloride", 10027, 293, 159, 188, 1.477F, "hydrogenchloride", new MaterialLiquid(
+ MapColor.yellowColor), true, false, true),
+ NatriumTungstate("NatriumTungstateDissolvedInWater", 10026, 293, 249, 373, 1730, "solution.natriumtungstate", Material.water, true, false, false),
+ Turpentine("Turpentine", 10025, 293, 217, 453, 1470, "turpentine", Material.water, true, false, true),
Air("Air", 293, 55, 93, 1.292F, Ic2Items.airCell),
- Nitrogen("Nitrogen", 10024, 92, 56, 92, 1.251F, "nitrogen", new MaterialLiquid(MapColor.airColor), true, false, true),
+ Nitrogen("Nitrogen", 10024, 92, 56, 92, 1.251F, "nitrogen", new MaterialLiquid(
+ MapColor.airColor), true, false, true),
Acetylene("Acetylene", 10023, 293, 17, 190, 1.173F, "acetylene", Material.water, true, false, true),
Oxygen("Oxygen", 10022, 93, 55, 93, 1.429F, "oxygen", new MaterialLiquid(MapColor.airColor), true, false, true),
- NatriumHydroxide("NatriumHydroxideDissolvedInWater",10021, 293, 249, 373, 1525, "solution.natriumhydroxide", Material.water, true, false, false),
- LiquidGlass("LiquidGlass",10020, 293, 253, 373, 2400),
- fluidRubberTreeSap("fluidRubberTreeSap",10019, 293, 273, 393, 1200, "fluidrubbertreesap", Material.water, true, true, false),
- SpruceResin("SpruceResin",10018, 293, 273, 533, 1080, "spruceresin", Material.water, true, true, true),
- CablingColophony("CablingColophony",10017, 363, 363, 533, 1070, "cablingcolophony", Material.water, true, false, true),
- Glyceryl("Glyceryl",10016, 293, 291, 583, 1261, "glyceryl", Material.water, true, false, true),
- SeedOil("SeedOil",10015, 293, 256, 583, 920, "seedoil", Material.water, true, false, true),
- AquaRegia("AquaRegia",10014, 293, 231, 356, 1060),
- SodiumPeroxide("SodiumPeroxide",10013, 950, 950, 2223, 1800),
- OsmiumTetroxide("OsmiumTetroxide",10012, 313, 313, 403, 9),
- OleicAcid("OleicAcid",10011, 293, 288, 633, 895, "oleicacid", Material.water, true, false, true),
- Limemilk("Limemilk",10010, 293, 250, 373, 1020),
- NickelSulfateDissolvedInWater("NickelSulfateDissolvedInWater",10009, 293, 253, 373, 1220, "solution.nickelsulfate", Material.water, true, false, false),
- BlueVitriolDissolvedInWater("BlueVitriolDissolvedInWater",10008, 293, 253, 373, 1180, "solution.bluevitriol", Material.water, true, false, false),
- MoltenRubberWithSulfur("MoltenRubberWithSulfur",10007, 600, 600, 1000, 1200, "molten.rubber", Material.lava, false, false, true),
- MoltenPotassium("MoltenPotassium","fluidMolten",10042, 336, 336, 1047, 856, "molten.potassium", Material.lava, false, false, false, true),
- MoltenLithium("MoltenLithium","fluidMolten",10042, 454, 454, 1613, 512, "molten.lithium", Material.lava, false, false, false),
- MoltenPotassiumChloride("MoltenPotassiumChloride","fluidMolten",10006, 776+273, 776+273, 1407+273, 1556, "molten.potassiumchloride", Material.lava, false, false, false, true),
- MoltenSodiumChloride("MoltenSodiumChloride","fluidMolten",10006, 1273, 1273, 1740, 1556, "molten.sodiumchloride", Material.lava, false, false, false),
- MoltenGlass("MoltenGlass","fluidMolten",10048, 600, 600, 1950, 2270, "molten.glass", Material.lava, false, false, false, true),
- MoltenMagnesium("MoltenMagnesium","fluidMolten",10006, 923, 923, 1623, 1584, "molten.magnesium", Material.lava, false, false, false),
- MoltenSteel("MoltenSteel","fluidMolten",10006, 1800, 1800, 3134, 6980, "molten.steel", Material.lava, false, false, false),
- MoltenCopper("MoltenCopper","fluidMolten",10048, 1356, 1356, 2840, 8920, "molten.copper", Material.lava, false, false, false),
- MoltenBronze("MoltenBronze",10005, 940, 940, 2840, 8000, "molten.bronze", Material.lava, false, false, false),
- MoltenGold("MoltenGold",10005, 1337, 1337, 3129, 17310, "molten.gold", Material.lava, false, false, false),
- VapourSulfuricAcid("VapourSulfuricAcid",10004, 610, 283, 610, 4.522F, "vapour.sulfuricacid", new MaterialLiquid(MapColor.redColor), false, false, false),
- SulfuricAnhydride("SulfuricAnhydride",10003, 45, 17, 45, 2, "sulfuricanhydride", new MaterialLiquid(MapColor.redColor), true, false, false),
- SulfuricAcid("SulfuricAcid",10002, 293, 283, 610, 1836),
- NitricAcid("NitricAcid",10001, 293, 231, 356, 1100);
- IHLFluidType(String fluidName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1, float density1)
- {
- fluidName=fluidName1;
- fluidRegistryName=fluidName.toLowerCase();
- textureName="fluid"+fluidName.replaceFirst("fluid", "");
- temperature=temperature1;
- density=density1;
- cellName="itemCell"+fluidName;
- haveBucket=false;
- isGaseous=density1<maxGaseousStateVapoursDensity;
- boilingPoint=boilingPoint1;
- meltingPoint=meltingPoint1;
- damage=celldamage;
+ NatriumHydroxide("NatriumHydroxideDissolvedInWater", 10021, 293, 249, 373, 1525, "solution.natriumhydroxide", Material.water, true, false, false),
+ LiquidGlass("LiquidGlass", 10020, 293, 253, 373, 2400),
+ fluidRubberTreeSap("fluidRubberTreeSap", "fluidRubberTreeSap", 10019, 293, 273, 393, 1200f, "fluidrubbertreesap", Material.water, true, true, false, false),
+ SpruceResin("SpruceResin", 10018, 293, 273, 533, 1080, "spruceresin", Material.water, true, true, true),
+ CablingColophony("CablingColophony", 10017, 363, 363, 533, 1070, "cablingcolophony", Material.water, true, false, true),
+ Glyceryl("Glyceryl", 10016, 293, 291, 583, 1261, "glyceryl", Material.water, true, false, true),
+ SeedOil("SeedOil", 10015, 293, 256, 583, 920, "seedoil", Material.water, true, false, true),
+ AquaRegia("AquaRegia", 10014, 293, 231, 356, 1060),
+ SodiumPeroxide("SodiumPeroxide", 10013, 950, 950, 2223, 1800),
+ OsmiumTetroxide("OsmiumTetroxide", 10012, 313, 313, 403, 9),
+ OleicAcid("OleicAcid", 10011, 293, 288, 633, 895, "oleicacid", Material.water, true, false, true),
+ Limemilk("Limemilk", 10010, 293, 250, 373, 1020),
+ NickelSulfateDissolvedInWater("NickelSulfateDissolvedInWater", 10009, 293, 253, 373, 1220, "solution.nickelsulfate", Material.water, true, false, false),
+ BlueVitriolDissolvedInWater("BlueVitriolDissolvedInWater", 10008, 293, 253, 373, 1180, "solution.bluevitriol", Material.water, true, false, false),
+ MoltenRubberWithSulfur("MoltenRubberWithSulfur", 10007, 600, 600, 1000, 1200, "molten.rubber", Material.lava, false, false, true),
+ MoltenPotassium("MoltenPotassium", "fluidMolten", 10042, 336, 336, 1047, 856, "molten.potassium", Material.lava, false, false, false, true),
+ MoltenLithium("MoltenLithium", "fluidMolten", 10042, 454, 454, 1613, 512, "molten.lithium", Material.lava, false, false, false),
+ MoltenPotassiumChloride("MoltenPotassiumChloride", "fluidMolten", 10006, 776 + 273, 776 + 273, 1407
+ + 273, 1556, "molten.potassiumchloride", Material.lava, false, false, false, true),
+ MoltenSodiumChloride("MoltenSodiumChloride", "fluidMolten", 10006, 1273, 1273, 1740, 1556, "molten.sodiumchloride", Material.lava, false, false, false),
+ MoltenGlass("MoltenGlass", "fluidMolten", 10048, 600, 600, 1950, 2270, "molten.glass", Material.lava, false, false, false, true),
+ MoltenMagnesium("MoltenMagnesium", "fluidMolten", 10006, 923, 923, 1623, 1584, "molten.magnesium", Material.lava, false, false, false),
+ MoltenSteel("MoltenSteel", "fluidMolten", 10006, 1800, 1800, 3134, 6980, "molten.steel", Material.lava, false, false, false),
+ MoltenCopper("MoltenCopper", "fluidMolten", 10048, 1356, 1356, 2840, 8920, "molten.copper", Material.lava, false, false, false),
+ MoltenBronze("MoltenBronze", 10005, 940, 940, 2840, 8000, "molten.bronze", Material.lava, false, false, false),
+ MoltenGold("MoltenGold", 10005, 1337, 1337, 3129, 17310, "molten.gold", Material.lava, false, false, false),
+ VapourSulfuricAcid("VapourSulfuricAcid", 10004, 610, 283, 610, 4.522F, "vapour.sulfuricacid", new MaterialLiquid(
+ MapColor.redColor), false, false, false),
+ SulfuricAnhydride("SulfuricAnhydride", 10003, 45, 17, 45, 2, "sulfuricanhydride", new MaterialLiquid(
+ MapColor.redColor), true, false, false),
+ SulfuricAcid("SulfuricAcid", 10002, 293, 283, 610, 1836),
+ NitricAcid("NitricAcid", 10001, 293, 231, 356, 1100);
+
+ IHLFluidType(String fluidName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1,
+ float density1) {
+ fluidName = fluidName1;
+ fluidRegistryName = fluidName.toLowerCase();
+ textureName = "fluid" + fluidName.replaceFirst("fluid", "");
+ temperature = temperature1;
+ density = density1;
+ cellName = "itemCell" + fluidName;
+ haveBucket = false;
+ isGaseous = density1 < maxGaseousStateVapoursDensity;
+ boilingPoint = boilingPoint1;
+ meltingPoint = meltingPoint1;
+ damage = celldamage;
}
- IHLFluidType(String fluidName1, int temperature1, int meltingPoint1, int boilingPoint1, float density1, ItemStack cell1)
- {
- fluidName=fluidName1;
- fluidRegistryName=fluidName.toLowerCase();
- textureName="fluid"+fluidName.replaceFirst("fluid", "");
- temperature=temperature1;
- density=density1;
- cellName="itemCell"+fluidName;
- haveBucket=false;
- isGaseous=density1<maxGaseousStateVapoursDensity;
- boilingPoint=boilingPoint1;
- meltingPoint=meltingPoint1;
- damage=99999;
- hasCell=false;
- cell=cell1;
+
+ IHLFluidType(String fluidName1, int temperature1, int meltingPoint1, int boilingPoint1, float density1,
+ ItemStack cell1) {
+ fluidName = fluidName1;
+ fluidRegistryName = fluidName.toLowerCase();
+ textureName = "fluid" + fluidName.replaceFirst("fluid", "");
+ temperature = temperature1;
+ density = density1;
+ cellName = "itemCell" + fluidName;
+ haveBucket = false;
+ isGaseous = density1 < maxGaseousStateVapoursDensity;
+ boilingPoint = boilingPoint1;
+ meltingPoint = meltingPoint1;
+ damage = 99999;
+ hasCell = false;
+ cell = cell1;
}
- IHLFluidType(String fluidName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1, float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1, boolean haveBucket1, boolean flammable1)
- {
- fluidName=fluidName1;
- fluidRegistryName=fluidRegistryName1;
- textureName="fluid"+fluidName.replaceFirst("fluid", "");
- temperature=temperature1;
- density=density1;
- cellName="itemCell"+fluidName;
- haveBucket=haveBucket1;
- flammable=flammable1;
- isGaseous=density1<maxGaseousStateVapoursDensity;
- blockMaterial=blockMaterial1;
- boilingPoint=boilingPoint1;
- meltingPoint=meltingPoint1;
- hasCell=hasCell1;
- damage=celldamage;
+ IHLFluidType(String fluidName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1,
+ float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1,
+ boolean haveBucket1, boolean flammable1) {
+ fluidName = fluidName1;
+ fluidRegistryName = fluidRegistryName1;
+ textureName = "fluid" + fluidName.replaceFirst("fluid", "");
+ temperature = temperature1;
+ density = density1;
+ cellName = "itemCell" + fluidName;
+ haveBucket = haveBucket1;
+ flammable = flammable1;
+ isGaseous = density1 < maxGaseousStateVapoursDensity;
+ blockMaterial = blockMaterial1;
+ boilingPoint = boilingPoint1;
+ meltingPoint = meltingPoint1;
+ hasCell = hasCell1;
+ damage = celldamage;
}
- IHLFluidType(String fluidName1, String textureName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1, float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1, boolean haveBucket1, boolean flammable1)
- {
- fluidName=fluidName1;
- fluidRegistryName=fluidRegistryName1;
- textureName=textureName1;
- temperature=temperature1;
- density=density1;
- cellName="itemCell"+fluidName;
- haveBucket=haveBucket1;
- flammable=flammable1;
- isGaseous=density1<maxGaseousStateVapoursDensity;
- blockMaterial=blockMaterial1;
- boilingPoint=boilingPoint1;
- meltingPoint=meltingPoint1;
- hasCell=hasCell1;
- damage=celldamage;
+
+ IHLFluidType(String fluidName1, String textureName1, int celldamage, int temperature1, int meltingPoint1,
+ int boilingPoint1, float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1,
+ boolean haveBucket1, boolean flammable1) {
+ fluidName = fluidName1;
+ fluidRegistryName = fluidRegistryName1;
+ textureName = textureName1;
+ temperature = temperature1;
+ density = density1;
+ cellName = "itemCell" + fluidName;
+ haveBucket = haveBucket1;
+ flammable = flammable1;
+ isGaseous = density1 < maxGaseousStateVapoursDensity;
+ blockMaterial = blockMaterial1;
+ boilingPoint = boilingPoint1;
+ meltingPoint = meltingPoint1;
+ hasCell = hasCell1;
+ damage = celldamage;
}
- IHLFluidType(String fluidName1, String textureName1, int celldamage, int temperature1, int meltingPoint1, int boilingPoint1, float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1, boolean haveBucket1, boolean flammable1, boolean noBlock1)
- {
- noBlock=noBlock1;
- fluidName=fluidName1;
- fluidRegistryName=fluidRegistryName1;
- textureName=textureName1;
- temperature=temperature1;
- density=density1;
- cellName="itemCell"+fluidName;
- haveBucket=haveBucket1;
- flammable=flammable1;
- isGaseous=density1<maxGaseousStateVapoursDensity;
- blockMaterial=blockMaterial1;
- boilingPoint=boilingPoint1;
- meltingPoint=meltingPoint1;
- hasCell=hasCell1;
- damage=celldamage;
+
+ IHLFluidType(String fluidName1, String textureName1, int celldamage, int temperature1, int meltingPoint1,
+ int boilingPoint1, float density1, String fluidRegistryName1, Material blockMaterial1, boolean hasCell1,
+ boolean haveBucket1, boolean flammable1, boolean noBlock1) {
+ noBlock = noBlock1;
+ fluidName = fluidName1;
+ fluidRegistryName = fluidRegistryName1;
+ textureName = textureName1;
+ temperature = temperature1;
+ density = density1;
+ cellName = "itemCell" + fluidName;
+ haveBucket = haveBucket1;
+ flammable = flammable1;
+ isGaseous = density1 < maxGaseousStateVapoursDensity;
+ blockMaterial = blockMaterial1;
+ boilingPoint = boilingPoint1;
+ meltingPoint = meltingPoint1;
+ hasCell = hasCell1;
+ damage = celldamage;
}
+
public String fluidName;
public String fluidRegistryName;
public String cellName;
@@ -301,71 +305,60 @@ public class IHLFluid extends Fluid int temperature;
float density;
boolean isGaseous;
- boolean flammable=false;
- boolean noBlock=true;
+ boolean flammable = false;
+ boolean noBlock = true;
boolean haveBucket;
Material blockMaterial = Material.water;
int meltingPoint;
int boilingPoint;
- public boolean hasCell=true;
+ public boolean hasCell = true;
public ItemStack cell;
public Fluid fluid;
public final int damage;
}
@SuppressWarnings("deprecation")
- public static FluidStack getCondensationResult(FluidStack condensatedGas)
- {
+ public static FluidStack getCondensationResult(FluidStack condensatedGas) {
String fluidname = condensationMap.get(condensatedGas.getFluid().getName());
Fluid fluid = FluidRegistry.getFluid(fluidname);
- if(fluid!=null)
- {
- int quantity=Math.round(condensatedGas.amount*getCondensationConversionRate(condensatedGas.getFluid()));
- if(quantity>0)
- {
- return new FluidStack(fluid.getID(),quantity);
+ if (fluid != null) {
+ int quantity = Math.round(condensatedGas.amount * getCondensationConversionRate(condensatedGas.getFluid()));
+ if (quantity > 0) {
+ return new FluidStack(fluid.getID(), quantity);
}
}
return null;
}
- public static float getCondensationConversionRate(Fluid gas)
- {
+
+ public static float getCondensationConversionRate(Fluid gas) {
String fluidname = condensationMap.get(gas.getName());
Fluid fluid = FluidRegistry.getFluid(fluidname);
- if(fluid!=null)
- {
- float rate = (float)gas.getDensity()/(float)fluid.getDensity();
- if(gas.getDensity()<0)
- {
- //IC2 steam density -800, 100 mb steam from 1 mb water
- rate=(-8000F/gas.getDensity())/fluid.getDensity();
+ if (fluid != null) {
+ float rate = (float) gas.getDensity() / (float) fluid.getDensity();
+ if (gas.getDensity() < 0) {
+ // IC2 steam density -800, 100 mb steam from 1 mb water
+ rate = (-8000F / gas.getDensity()) / fluid.getDensity();
}
- return rate;
+ return rate;
}
return 0F;
}
-
- public static boolean canBeDissolvedIn(FluidStack solvent, String impurity)
- {
+
+ public static boolean canBeDissolvedIn(FluidStack solvent, String impurity) {
return solutionMap.get(solvent.getFluid().getName()).contains(impurity);
}
- public static float getRealDensity(Fluid gas)
- {
- if(realDensityMap.containsKey(gas.getName()))
- {
+ public static float getRealDensity(Fluid gas) {
+ if (realDensityMap.containsKey(gas.getName())) {
return realDensityMap.get(gas.getName());
- }
- else
- {
+ } else {
float density = gas.getDensity();
- if(gas.getDensity()<0)
- {
- //IC2 steam density -800, 100 mb steam from 1 mb water
- density=-8000F/gas.getDensity();
+ if (gas.getDensity() < 0) {
+ // IC2 steam density -800, 100 mb steam from 1 mb water
+ density = -8000F / gas.getDensity();
}
return density;
}
}
-
+
}
|
