From 6b80bc2d1cb91bc377a0e549bfffaf3fe7ae08c1 Mon Sep 17 00:00:00 2001 From: Blood Asp Date: Fri, 24 Apr 2015 23:47:25 +0200 Subject: Many bugfixes --- .../loaders/oreprocessing/ProcessingAll.java | 55 ++- .../loaders/oreprocessing/ProcessingArrows.java | 102 +++--- .../loaders/oreprocessing/ProcessingBattery.java | 62 ++-- .../loaders/oreprocessing/ProcessingBeans.java | 56 ++- .../loaders/oreprocessing/ProcessingBlock.java | 175 ++++----- .../loaders/oreprocessing/ProcessingBolt.java | 59 ++-- .../loaders/oreprocessing/ProcessingCell.java | 218 ++++++------ .../oreprocessing/ProcessingCellPlasma.java | 70 ++-- .../loaders/oreprocessing/ProcessingCircuit.java | 89 +++-- .../oreprocessing/ProcessingCompressed.java | 63 ++-- .../loaders/oreprocessing/ProcessingCrafting.java | 152 ++++---- .../loaders/oreprocessing/ProcessingCrop.java | 133 +++---- .../ProcessingCrushedCentrifuged.java | 59 ++-- .../oreprocessing/ProcessingCrushedPurified.java | 63 ++-- .../oreprocessing/ProcessingCrystallized.java | 61 ++-- .../loaders/oreprocessing/ProcessingDirty.java | 93 +++-- .../loaders/oreprocessing/ProcessingDust.java | 389 +++++++++------------ .../oreprocessing/ProcessingDustImpure.java | 163 ++++----- .../loaders/oreprocessing/ProcessingDustSmall.java | 83 +++-- .../loaders/oreprocessing/ProcessingDustTiny.java | 96 +++-- .../loaders/oreprocessing/ProcessingDye.java | 80 +++-- .../loaders/oreprocessing/ProcessingFoil.java | 53 ++- .../loaders/oreprocessing/ProcessingFood.java | 94 +++-- .../loaders/oreprocessing/ProcessingGear.java | 62 ++-- .../loaders/oreprocessing/ProcessingGearSmall.java | 58 ++- .../loaders/oreprocessing/ProcessingGem.java | 140 ++++---- .../oreprocessing/ProcessingGemChipped.java | 63 ++-- .../oreprocessing/ProcessingGemExquisite.java | 65 ++-- .../loaders/oreprocessing/ProcessingGemFlawed.java | 65 ++-- .../oreprocessing/ProcessingGemFlawless.java | 65 ++-- .../loaders/oreprocessing/ProcessingIngot1.java | 147 ++++---- .../loaders/oreprocessing/ProcessingIngot2.java | 64 ++-- .../loaders/oreprocessing/ProcessingIngot3.java | 64 ++-- .../loaders/oreprocessing/ProcessingIngot4.java | 61 ++-- .../loaders/oreprocessing/ProcessingIngot5.java | 61 ++-- .../loaders/oreprocessing/ProcessingIngotHot.java | 55 ++- .../loaders/oreprocessing/ProcessingItem.java | 158 ++++----- .../loaders/oreprocessing/ProcessingLeaves.java | 42 ++- .../loaders/oreprocessing/ProcessingLens.java | 62 ++-- .../loaders/oreprocessing/ProcessingLog.java | 196 +++++------ .../loaders/oreprocessing/ProcessingNugget.java | 80 ++--- .../loaders/oreprocessing/ProcessingOre.java | 273 +++++++-------- .../loaders/oreprocessing/ProcessingOrePoor.java | 94 +++-- .../oreprocessing/ProcessingOreSmelting.java | 111 +++--- .../loaders/oreprocessing/ProcessingPipeLarge.java | 62 ++-- .../oreprocessing/ProcessingPipeMedium.java | 62 ++-- .../oreprocessing/ProcessingPipeRestrictive.java | 60 ++-- .../loaders/oreprocessing/ProcessingPipeSmall.java | 62 ++-- .../loaders/oreprocessing/ProcessingPlank.java | 136 ++++--- .../loaders/oreprocessing/ProcessingPlate1.java | 174 ++++----- .../loaders/oreprocessing/ProcessingPlate2.java | 94 +++-- .../loaders/oreprocessing/ProcessingPlate3.java | 94 +++-- .../loaders/oreprocessing/ProcessingPlate4.java | 89 ++--- .../loaders/oreprocessing/ProcessingPlate5.java | 85 ++--- .../loaders/oreprocessing/ProcessingPlate9.java | 57 ++- .../oreprocessing/ProcessingPlateAlloy.java | 81 ++--- .../loaders/oreprocessing/ProcessingPure.java | 63 ++-- .../loaders/oreprocessing/ProcessingRecycling.java | 61 ++-- .../loaders/oreprocessing/ProcessingSand.java | 67 ++-- .../loaders/oreprocessing/ProcessingSaplings.java | 59 ++-- .../loaders/oreprocessing/ProcessingShaping.java | 267 ++++++-------- .../loaders/oreprocessing/ProcessingSlab.java | 59 ++-- .../loaders/oreprocessing/ProcessingStick.java | 68 ++-- .../loaders/oreprocessing/ProcessingStickLong.java | 65 ++-- .../loaders/oreprocessing/ProcessingStone.java | 160 ++++----- .../oreprocessing/ProcessingStoneCobble.java | 68 ++-- .../oreprocessing/ProcessingStoneVarious.java | 78 ++--- .../oreprocessing/ProcessingToolHeadArrow.java | 58 ++- .../oreprocessing/ProcessingToolHeadAxe.java | 52 ++- .../oreprocessing/ProcessingToolHeadBuzzSaw.java | 60 ++-- .../oreprocessing/ProcessingToolHeadChainsaw.java | 72 ++-- .../oreprocessing/ProcessingToolHeadDrill.java | 80 +++-- .../oreprocessing/ProcessingToolHeadFile.java | 62 ++-- .../oreprocessing/ProcessingToolHeadHammer.java | 95 +++-- .../oreprocessing/ProcessingToolHeadHoe.java | 52 ++- .../oreprocessing/ProcessingToolHeadPickaxe.java | 52 ++- .../oreprocessing/ProcessingToolHeadPlow.java | 52 ++- .../oreprocessing/ProcessingToolHeadSaw.java | 52 ++- .../oreprocessing/ProcessingToolHeadSense.java | 52 ++- .../oreprocessing/ProcessingToolHeadShovel.java | 52 ++- .../oreprocessing/ProcessingToolHeadSword.java | 52 ++- .../ProcessingToolHeadUniversalSpade.java | 54 ++- .../oreprocessing/ProcessingToolHeadWrench.java | 80 +++-- .../oreprocessing/ProcessingTransforming.java | 107 +++--- .../loaders/oreprocessing/ProcessingWax.java | 55 ++- .../loaders/oreprocessing/ProcessingWire01.java | 84 +++-- .../loaders/oreprocessing/ProcessingWire02.java | 65 ++-- .../loaders/oreprocessing/ProcessingWire04.java | 65 ++-- .../loaders/oreprocessing/ProcessingWire08.java | 65 ++-- .../loaders/oreprocessing/ProcessingWire12.java | 65 ++-- .../loaders/oreprocessing/ProcessingWire16.java | 58 ++- 91 files changed, 3696 insertions(+), 4370 deletions(-) (limited to 'main/java/gregtech/loaders/oreprocessing') diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java b/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java index 0098e1c7d9..ed312676b6 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java @@ -1,32 +1,25 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.Materials; -/* 4: */ import gregtech.api.enums.OrePrefixes; -/* 5: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 6: */ import net.minecraft.item.Item; -/* 7: */ import net.minecraft.item.ItemBlock; -/* 8: */ import net.minecraft.item.ItemStack; -/* 9: */ -/* 10: */ public class ProcessingAll -/* 11: */ implements IOreRecipeRegistrator -/* 12: */ { -/* 13: */ public ProcessingAll() -/* 14: */ { -/* 15:12 */ for (OrePrefixes tPrefix : OrePrefixes.values()) { -/* 16:12 */ tPrefix.add(this); -/* 17: */ } -/* 18: */ } -/* 19: */ -/* 20: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 21: */ { -/* 22:17 */ if (((aStack.getItem() instanceof ItemBlock)) && (aPrefix.mDefaultStackSize < aStack.getItem().getItemStackLimit(aStack))) { -/* 23:17 */ aStack.getItem().setMaxStackSize(aPrefix.mDefaultStackSize); -/* 24: */ } -/* 25: */ } -/* 26: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingAll - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import net.minecraft.item.Item; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingAll implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingAll() +/* */ { +/* 12 */ for (OrePrefixes tPrefix : OrePrefixes.values()) tPrefix.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 17 */ if (((aStack.getItem() instanceof net.minecraft.item.ItemBlock)) && (aPrefix.mDefaultStackSize < aStack.getItem().getItemStackLimit(aStack))) aStack.getItem().setMaxStackSize(aPrefix.mDefaultStackSize); +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingAll.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java b/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java index 00d1d8762a..c2bcdb5b8c 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java @@ -1,55 +1,49 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enchants.Enchantment_EnderDamage; -/* 4: */ import gregtech.api.enums.GT_Values; -/* 5: */ import gregtech.api.enums.Materials; -/* 6: */ import gregtech.api.enums.OrePrefixes; -/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 9: */ import gregtech.api.util.GT_Utility; -/* 10: */ import gregtech.api.util.GT_Utility.ItemNBT; -/* 11: */ import net.minecraft.enchantment.Enchantment; -/* 12: */ import net.minecraft.enchantment.EnchantmentHelper; -/* 13: */ import net.minecraft.item.ItemStack; -/* 14: */ -/* 15: */ public class ProcessingArrows -/* 16: */ implements IOreRecipeRegistrator -/* 17: */ { -/* 18: */ public ProcessingArrows() -/* 19: */ { -/* 20:17 */ for (OrePrefixes tPrefix : OrePrefixes.values()) { -/* 21:17 */ if (tPrefix.name().startsWith("arrowGt")) { -/* 22:17 */ tPrefix.add(this); -/* 23: */ } -/* 24: */ } -/* 25: */ } -/* 26: */ -/* 27: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 28: */ { -/* 29:23 */ ItemStack tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); -/* 30:24 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.smite, EnchantmentHelper.getEnchantmentLevel(Enchantment.smite.effectId, tOutput) + 3); -/* 31:25 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.HolyWater.getFluid(25L), tOutput, null, null, null, 100, 2); -/* 32: */ -/* 33:27 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); -/* 34:28 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 3); -/* 35:29 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.FierySteel.getFluid(25L), tOutput, null, null, null, 100, 2); -/* 36: */ -/* 37:31 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); -/* 38:32 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 1); -/* 39:33 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Blaze.getMolten(18L), tOutput, null, null, null, 100, 2); -/* 40: */ -/* 41:35 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); -/* 42:36 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.knockback, EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, tOutput) + 1); -/* 43:37 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Rubber.getMolten(18L), tOutput, null, null, null, 100, 2); -/* 44: */ -/* 45:39 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); -/* 46:40 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment_EnderDamage.INSTANCE, EnchantmentHelper.getEnchantmentLevel(Enchantment_EnderDamage.INSTANCE.effectId, tOutput) + 1); -/* 47:41 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Mercury.getFluid(25L), tOutput, null, null, null, 100, 2); -/* 48: */ } -/* 49: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingArrows - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; +/* */ import gregtech.api.util.GT_Utility; +/* */ import gregtech.api.util.GT_Utility.ItemNBT; +/* */ import net.minecraft.enchantment.Enchantment; +/* */ import net.minecraft.enchantment.EnchantmentHelper; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingArrows implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingArrows() +/* */ { +/* 17 */ for (OrePrefixes tPrefix : OrePrefixes.values()) if (tPrefix.name().startsWith("arrowGt")) { tPrefix.add(this); +/* */ } +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 23 */ ItemStack tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); +/* 24 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.smite, EnchantmentHelper.getEnchantmentLevel(Enchantment.smite.effectId, tOutput) + 3); +/* 25 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.HolyWater.getFluid(25L), tOutput, null, null, null, 100, 2); +/* */ +/* 27 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); +/* 28 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 3); +/* 29 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.FierySteel.getFluid(25L), tOutput, null, null, null, 100, 2); +/* */ +/* 31 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); +/* 32 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 1); +/* 33 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Blaze.getMolten(18L), tOutput, null, null, null, 100, 2); +/* */ +/* 35 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); +/* 36 */ GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.knockback, EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, tOutput) + 1); +/* 37 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Rubber.getMolten(18L), tOutput, null, null, null, 100, 2); +/* */ +/* 39 */ tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); +/* 40 */ GT_Utility.ItemNBT.addEnchantment(tOutput, gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE, EnchantmentHelper.getEnchantmentLevel(gregtech.api.enchants.Enchantment_EnderDamage.INSTANCE.effectId, tOutput) + 1); +/* 41 */ GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Mercury.getFluid(25L), tOutput, null, null, null, 100, 2); +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingArrows.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingBattery.java b/main/java/gregtech/loaders/oreprocessing/ProcessingBattery.java index 491fc8ed85..a00a887612 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingBattery.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingBattery.java @@ -1,33 +1,31 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.GT_Values; -/* 4: */ import gregtech.api.enums.ItemList; -/* 5: */ import gregtech.api.enums.Materials; -/* 6: */ import gregtech.api.enums.OrePrefixes; -/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 9: */ import gregtech.api.util.GT_ModHandler; -/* 10: */ import gregtech.api.util.GT_Utility; -/* 11: */ import net.minecraft.item.ItemStack; -/* 12: */ -/* 13: */ public class ProcessingBattery -/* 14: */ implements IOreRecipeRegistrator -/* 15: */ { -/* 16: */ public ProcessingBattery() -/* 17: */ { -/* 18:16 */ OrePrefixes.battery.add(this); -/* 19: */ } -/* 20: */ -/* 21: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 22: */ { -/* 23:21 */ if (aMaterial == Materials.Lithium) { -/* 24:22 */ GT_Values.RA.addAssemblerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_ModHandler.getIC2Item("cropnalyzer", 1L, 32767), ItemList.Tool_Scanner.getAlmostBroken(1L, new Object[0]), 12800, 16); -/* 25: */ } -/* 26: */ } -/* 27: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingBattery - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.ItemList; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; +/* */ import gregtech.api.util.GT_ModHandler; +/* */ import gregtech.api.util.GT_Utility; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingBattery implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingBattery() +/* */ { +/* 16 */ OrePrefixes.battery.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 21 */ if (aMaterial == Materials.Lithium) { +/* 22 */ GT_Values.RA.addAssemblerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_ModHandler.getIC2Item("cropnalyzer", 1L, 32767), ItemList.Tool_Scanner.getAlmostBroken(1L, new Object[0]), 12800, 16); +/* */ } +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingBattery.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java b/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java index 0db3ea72f0..426d7bc0d0 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingBeans.java @@ -1,31 +1,27 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.Materials; -/* 4: */ import gregtech.api.enums.OrePrefixes; -/* 5: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 6: */ import gregtech.api.util.GT_ModHandler; -/* 7: */ import gregtech.api.util.GT_OreDictUnificator; -/* 8: */ import gregtech.api.util.GT_Utility; -/* 9: */ import net.minecraft.item.ItemStack; -/* 10: */ -/* 11: */ public class ProcessingBeans -/* 12: */ implements IOreRecipeRegistrator -/* 13: */ { -/* 14: */ public ProcessingBeans() -/* 15: */ { -/* 16:14 */ OrePrefixes.beans.add(this); -/* 17: */ } -/* 18: */ -/* 19: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 20: */ { -/* 21:19 */ if (aOreDictName.equals("beansCocoa")) { -/* 22:19 */ GT_ModHandler.addPulverisationRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); -/* 23: */ } -/* 24: */ } -/* 25: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingBeans - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.util.GT_ModHandler; +/* */ import gregtech.api.util.GT_OreDictUnificator; +/* */ import gregtech.api.util.GT_Utility; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingBeans implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingBeans() +/* */ { +/* 14 */ OrePrefixes.beans.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 19 */ if (aOreDictName.equals("beansCocoa")) GT_ModHandler.addPulverisationRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cocoa, 1L)); +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingBeans.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java b/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java index 041899799a..9d01a4986d 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingBlock.java @@ -1,103 +1,74 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.GregTech_API; -import gregtech.api.enums.ConfigCategories; -/* 4: */ import gregtech.api.enums.ConfigCategories.Recipes; -/* 5: */ import gregtech.api.enums.GT_Values; -/* 6: */ import gregtech.api.enums.ItemList; -/* 7: */ import gregtech.api.enums.Materials; -/* 8: */ import gregtech.api.enums.OrePrefixes; -/* 9: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 10: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 11: */ import gregtech.api.util.GT_Config; -/* 12: */ import gregtech.api.util.GT_ModHandler; -/* 13: */ import gregtech.api.util.GT_OreDictUnificator; -/* 14: */ import gregtech.api.util.GT_Utility; - -/* 15: */ import java.io.PrintStream; - -/* 16: */ import net.minecraft.item.ItemStack; -/* 17: */ -/* 18: */ public class ProcessingBlock -/* 19: */ implements IOreRecipeRegistrator -/* 20: */ { -/* 21: */ public ProcessingBlock() -/* 22: */ { -/* 23:19 */ OrePrefixes.block.add(this); -/* 24: */ } -/* 25: */ -/* 26: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 27: */ { -/* 28:24 */ GT_Values.RA.addCutterRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), null, (int)Math.max(aMaterial.getMass() * 10L, 1L), 30); -/* 29: */ -/* 30:26 */ ItemStack tStack1 = GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L);ItemStack tStack2 = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L);ItemStack tStack3 = GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L); -/* 31: */ -/* 32:28 */ GT_ModHandler.removeRecipe(new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { aStack }) }); -/* 33:30 */ if (tStack1 != null) { -/* 34:30 */ GT_ModHandler.removeRecipe(new ItemStack[] { tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1 }); -/* 35: */ } -/* 36:31 */ if (tStack2 != null) { -/* 37:31 */ GT_ModHandler.removeRecipe(new ItemStack[] { tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2 }); -/* 38: */ } -/* 39:32 */ if (tStack3 != null) { -/* 40:32 */ GT_ModHandler.removeRecipe(new ItemStack[] { tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3 }); -/* 41: */ } -/* 42:34 */ if (aMaterial.mStandardMoltenFluid != null) { -/* 43:34 */ GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Block.get(0L, new Object[0]), aMaterial.getMolten(1296L), GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), 288, 8); -/* 44: */ } -/* 45:36 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.storageblockcrafting, OrePrefixes.block.get(aMaterial).toString(), false)) -/* 46: */ { -/* 47:37 */ if ((tStack1 == null) && (tStack2 == null) && (tStack3 != null)) { -/* 48:37 */ GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.dust.get(aMaterial) }); -/* 49: */ } -/* 50:38 */ if (tStack2 != null) { -/* 51:38 */ GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.gem.get(aMaterial) }); -/* 52: */ } -/* 53:39 */ if (tStack1 != null) { -/* 54:39 */ GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.ingot.get(aMaterial) }); -/* 55: */ } -/* 56: */ } -/* 57:42 */ if (tStack1 != null) { -/* 58:42 */ tStack1.stackSize = 9; -/* 59: */ } -/* 60:43 */ if (tStack2 != null) { -/* 61:43 */ tStack2.stackSize = 9; -/* 62: */ } -/* 63:44 */ if (tStack3 != null) { -/* 64:44 */ tStack3.stackSize = 9; -/* 65: */ } -/* 66:46 */ GT_Values.RA.addForgeHammerRecipe(aStack, tStack2, 100, 24); -/* 67:48 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.storageblockdecrafting, OrePrefixes.block.get(aMaterial).toString(), tStack2 != null)) -/* 68: */ { -/* 69:49 */ if (tStack3 != null) { -/* 70:49 */ GT_ModHandler.addShapelessCraftingRecipe(tStack3, new Object[] { OrePrefixes.block.get(aMaterial) }); -/* 71: */ } -/* 72:50 */ if (tStack2 != null) { -/* 73:50 */ GT_ModHandler.addShapelessCraftingRecipe(tStack2, new Object[] { OrePrefixes.block.get(aMaterial) }); -/* 74: */ } -/* 75:51 */ if (tStack1 != null) { -/* 76:51 */ GT_ModHandler.addShapelessCraftingRecipe(tStack1, new Object[] { OrePrefixes.block.get(aMaterial) }); -/* 77: */ } -/* 78: */ } -/* 79:54 */ switch (aMaterial.ordinal()) -/* 80: */ { -/* 81: */ case 1: -/* 82:56 */ System.err.println("'blockQuickSilver'?, In which Ice Desert can you actually place this as a solid Block?"); -/* 83:57 */ break; -/* 84: */ case 2: -/* 85: */ case 3: -/* 86:59 */ GT_Values.RA.addExtruderRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), ItemList.IC2_ShaftIron.get(1L, new Object[0]), 640, 120); -/* 87:60 */ GT_Values.RA.addAssemblerRecipe(ItemList.IC2_Compressed_Coal_Ball.get(8L, new Object[0]), GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.IC2_Compressed_Coal_Chunk.get(1L, new Object[0]), 400, 4); -/* 88:61 */ break; -/* 89: */ case 4: -/* 90:63 */ GT_Values.RA.addExtruderRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), ItemList.IC2_ShaftSteel.get(1L, new Object[0]), 1280, 120); -/* 91:64 */ GT_Values.RA.addAssemblerRecipe(ItemList.IC2_Compressed_Coal_Ball.get(8L, new Object[0]), GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.IC2_Compressed_Coal_Chunk.get(1L, new Object[0]), 400, 4); -/* 92: */ } -/* 93: */ } -/* 94: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingBlock - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.GregTech_API; +import gregtech.api.enums.ConfigCategories; +/* */ import gregtech.api.enums.ConfigCategories.Recipes; +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.ItemList; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; +/* */ import gregtech.api.util.GT_ModHandler; +/* */ import gregtech.api.util.GT_OreDictUnificator; +/* */ import gregtech.api.util.GT_Utility; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingBlock implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingBlock() +/* */ { +/* 19 */ OrePrefixes.block.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 24 */ GT_Values.RA.addCutterRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 9L), null, (int)Math.max(aMaterial.getMass() * 10L, 1L), 30); +/* */ +/* 26 */ ItemStack tStack1 = GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L);ItemStack tStack2 = GT_OreDictUnificator.get(OrePrefixes.gem, aMaterial, 1L);ItemStack tStack3 = GT_OreDictUnificator.get(OrePrefixes.dust, aMaterial, 1L); +/* */ +/* 28 */ GT_ModHandler.removeRecipe(new ItemStack[] { GT_Utility.copyAmount(1L, new Object[] { aStack }) }); +/* */ +/* 30 */ if (tStack1 != null) GT_ModHandler.removeRecipe(new ItemStack[] { tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1, tStack1 }); +/* 31 */ if (tStack2 != null) GT_ModHandler.removeRecipe(new ItemStack[] { tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2, tStack2 }); +/* 32 */ if (tStack3 != null) { GT_ModHandler.removeRecipe(new ItemStack[] { tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3, tStack3 }); +/* */ } +/* 34 */ if (aMaterial.mStandardMoltenFluid != null) { GT_Values.RA.addFluidSolidifierRecipe(ItemList.Shape_Mold_Block.get(0L, new Object[0]), aMaterial.getMolten(1296L), GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), 288, 8); +/* */ } +/* 36 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.storageblockcrafting, OrePrefixes.block.get(aMaterial).toString(), false)) { +/* 37 */ if ((tStack1 == null) && (tStack2 == null) && (tStack3 != null)) GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.dust.get(aMaterial) }); +/* 38 */ if (tStack2 != null) GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.gem.get(aMaterial) }); +/* 39 */ if (tStack1 != null) { GT_ModHandler.addCraftingRecipe(GT_OreDictUnificator.get(OrePrefixes.block, aMaterial, 1L), new Object[] { "XXX", "XXX", "XXX", Character.valueOf('X'), OrePrefixes.ingot.get(aMaterial) }); +/* */ } +/* */ } +/* 42 */ if (tStack1 != null) tStack1.stackSize = 9; +/* 43 */ if (tStack2 != null) tStack2.stackSize = 9; +/* 44 */ if (tStack3 != null) { tStack3.stackSize = 9; +/* */ } +/* 46 */ GT_Values.RA.addForgeHammerRecipe(aStack, tStack2, 100, 24); +/* */ +/* 48 */ if (GregTech_API.sRecipeFile.get(ConfigCategories.Recipes.storageblockdecrafting, OrePrefixes.block.get(aMaterial).toString(), tStack2 != null)) { +/* 49 */ if (tStack3 != null) GT_ModHandler.addShapelessCraftingRecipe(tStack3, new Object[] { OrePrefixes.block.get(aMaterial) }); +/* 50 */ if (tStack2 != null) GT_ModHandler.addShapelessCraftingRecipe(tStack2, new Object[] { OrePrefixes.block.get(aMaterial) }); +/* 51 */ if (tStack1 != null) { GT_ModHandler.addShapelessCraftingRecipe(tStack1, new Object[] { OrePrefixes.block.get(aMaterial) }); +/* */ } +/* */ } +/* 54 */ switch (aMaterial) { +/* */ case Mercury: +/* 56 */ System.err.println("'blockQuickSilver'?, In which Ice Desert can you actually place this as a solid Block?"); +/* 57 */ break; +/* */ case Iron: case WroughtIron: +/* 59 */ GT_Values.RA.addExtruderRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), ItemList.IC2_ShaftIron.get(1L, new Object[0]), 640, 120); +/* 60 */ GT_Values.RA.addAssemblerRecipe(ItemList.IC2_Compressed_Coal_Ball.get(8L, new Object[0]), GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.IC2_Compressed_Coal_Chunk.get(1L, new Object[0]), 400, 4); +/* 61 */ break; +/* */ case Steel: +/* 63 */ GT_Values.RA.addExtruderRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.Shape_Extruder_Rod.get(0L, new Object[0]), ItemList.IC2_ShaftSteel.get(1L, new Object[0]), 1280, 120); +/* 64 */ GT_Values.RA.addAssemblerRecipe(ItemList.IC2_Compressed_Coal_Ball.get(8L, new Object[0]), GT_Utility.copyAmount(1L, new Object[] { aStack }), ItemList.IC2_Compressed_Coal_Chunk.get(1L, new Object[0]), 400, 4); +/* */ } +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingBlock.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java b/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java index fba70c47ce..4c947704fb 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingBolt.java @@ -1,33 +1,28 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.GT_Values; -/* 4: */ import gregtech.api.enums.Materials; -/* 5: */ import gregtech.api.enums.OrePrefixes; -/* 6: */ import gregtech.api.enums.SubTag; -/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 9: */ import gregtech.api.util.GT_OreDictUnificator; -/* 10: */ import gregtech.api.util.GT_Utility; -/* 11: */ import net.minecraft.item.ItemStack; -/* 12: */ -/* 13: */ public class ProcessingBolt -/* 14: */ implements IOreRecipeRegistrator -/* 15: */ { -/* 16: */ public ProcessingBolt() -/* 17: */ { -/* 18:15 */ OrePrefixes.bolt.add(this); -/* 19: */ } -/* 20: */ -/* 21: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 22: */ { -/* 23:20 */ if (!aMaterial.contains(SubTag.NO_WORKING)) { -/* 24:20 */ GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), null, (int)Math.max(aMaterial.getMass() / 8L, 1L), 4); -/* 25: */ } -/* 26: */ } -/* 27: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingBolt - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.enums.SubTag; +/* */ import gregtech.api.util.GT_OreDictUnificator; +/* */ import gregtech.api.util.GT_Utility; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingBolt implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingBolt() +/* */ { +/* 15 */ OrePrefixes.bolt.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 20 */ if (!aMaterial.contains(SubTag.NO_WORKING)) GT_Values.RA.addLatheRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.screw, aMaterial, 1L), null, (int)Math.max(aMaterial.getMass() / 8L, 1L), 4); +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingBolt.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java b/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java index 2b1218cca0..50bd5d97c5 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingCell.java @@ -1,108 +1,112 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.GT_Values; -/* 4: */ import gregtech.api.enums.ItemList; -/* 5: */ import gregtech.api.enums.Materials; -/* 6: */ import gregtech.api.enums.OrePrefixes; -/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 9: */ import gregtech.api.objects.MaterialStack; -/* 10: */ import gregtech.api.util.GT_ModHandler; -/* 11: */ import gregtech.api.util.GT_OreDictUnificator; -/* 12: */ import gregtech.api.util.GT_Utility; -/* 13: */ import java.util.ArrayList; -/* 14: */ import java.util.Iterator; -/* 15: */ import java.util.List; -/* 16: */ import net.minecraft.item.ItemStack; -/* 17: */ -/* 18: */ public class ProcessingCell -/* 19: */ implements IOreRecipeRegistrator -/* 20: */ { -/* 21: */ public ProcessingCell() -/* 22: */ { -/* 23:21 */ OrePrefixes.cell.add(this); -/* 24: */ } -/* 25: */ -/* 26: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 27: */ { -/* 28:26 */ if (aMaterial == Materials.Empty) -/* 29: */ { -/* 30:27 */ GT_ModHandler.removeRecipeByOutput(aStack); -/* 31:28 */ if (aModName.equalsIgnoreCase("AtomicScience")) { -/* 32:28 */ GT_ModHandler.addExtractionRecipe(ItemList.Cell_Empty.get(1L, new Object[0]), aStack); -/* 33: */ } -/* 34: */ } -/* 35: */ else -/* 36: */ { -/* 37:30 */ if (aMaterial.mFuelPower > 0) { -/* 38:30 */ GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_Utility.getFluidForFilledItem(aStack, true) == null ? GT_Utility.getContainerItem(aStack, true) : null, aMaterial.mFuelPower, aMaterial.mFuelType); -/* 39: */ } -/* 40:32 */ if ((aMaterial.mMaterialList.size() > 0) && ((aMaterial.mExtraData & 0x3) != 0)) -/* 41: */ { -/* 42:33 */ int tAllAmount = 0; -/* 43: */ MaterialStack tMat2; -/* 44:34 */ for (Iterator i$ = aMaterial.mMaterialList.iterator(); i$.hasNext(); tAllAmount = (int)(tAllAmount + tMat2.mAmount)) { -/* 45:34 */ tMat2 = (MaterialStack)i$.next(); -/* 46: */ } -/* 47:35 */ long tItemAmount = 0L;long tCapsuleCount = GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { aStack }) * -tAllAmount;long tDensityMultiplier = aMaterial.getDensity() > 3628800L ? aMaterial.getDensity() / 3628800L : 1L; -/* 48:36 */ ArrayList tList = new ArrayList(); -/* 49:38 */ for ( MaterialStack tMat : aMaterial.mMaterialList) { -/* 50:38 */ if (tMat.mAmount > 0L) -/* 51: */ { -/* 53: */ ItemStack tStack; -/* 54:39 */ if (tMat.mMaterial == Materials.Air) -/* 55: */ { -/* 56:40 */ tStack = ItemList.Cell_Air.get(tMat.mAmount * tDensityMultiplier / 2L, new Object[0]); -/* 57: */ } -/* 58: */ else -/* 59: */ { -/* 60:42 */ tStack = GT_OreDictUnificator.get(OrePrefixes.dust, tMat.mMaterial, tMat.mAmount); -/* 61:43 */ if (tStack == null) { -/* 62:44 */ tStack = GT_OreDictUnificator.get(OrePrefixes.cell, tMat.mMaterial, tMat.mAmount); -/* 63: */ } -/* 64: */ } -/* 65:46 */ if (tItemAmount + tMat.mAmount * 3628800L <= aStack.getMaxStackSize() * aMaterial.getDensity()) -/* 66: */ { -/* 67:47 */ tItemAmount += tMat.mAmount * 3628800L; -/* 68:48 */ if (tStack != null) -/* 69: */ { -/* 70:49 */ ItemStack tmp397_395 = tStack;tmp397_395.stackSize = ((int)(tmp397_395.stackSize * tDensityMultiplier)); -/* 71:50 */ while ((tStack.stackSize > 64) && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64 < 0L ? tList.size() < 5 : tList.size() < 6) && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64 <= 64L)) -/* 72: */ { -/* 73:51 */ tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64; -/* 74:52 */ tList.add(GT_Utility.copyAmount(64L, new Object[] { tStack })); -/* 75:53 */ tStack.stackSize -= 64; -/* 76: */ } -/* 77:55 */ if (tStack.stackSize > 0) { -/* 78:55 */ if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }) <= 64L) { -/* 79:55 */ if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }) < 0L ? tList.size() < 5 : tList.size() < 6) -/* 80: */ { -/* 81:56 */ tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }); -/* 82:57 */ tList.add(tStack); -/* 83: */ } -/* 84: */ } -/* 85: */ } -/* 86: */ } -/* 87: */ } -/* 88: */ } -/* 89: */ } -/* 90:62 */ tItemAmount = (tItemAmount * tDensityMultiplier % aMaterial.getDensity() > 0L ? 1 : 0) + tItemAmount * tDensityMultiplier / aMaterial.getDensity(); -/* 91:63 */ if (tList.size() > 0) -/* 92: */ { -/* 93:64 */ if ((aMaterial.mExtraData & 0x1) != 0) { -/* 94:64 */ GT_Values.RA.addElectrolyzerRecipe(GT_Utility.copyAmount(tItemAmount, new Object[] { aStack }), tCapsuleCount > 0L ? (int)tCapsuleCount : 0, (ItemStack)tList.get(0), tList.size() < 2 ? null : (ItemStack)tList.get(1), tList.size() < 3 ? null : (ItemStack)tList.get(2), tList.size() < 4 ? null : (ItemStack)tList.get(3), tList.size() < 5 ? null : (ItemStack)tList.get(4), tList.size() < 6 ? null : tCapsuleCount < 0L ? ItemList.Cell_Empty.get(-tCapsuleCount, new Object[0]) : (ItemStack)tList.get(5), (int)Math.max(1L, Math.abs(aMaterial.getProtons() * 8L * tItemAmount)), Math.min(4, tList.size()) * 30); -/* 95: */ } -/* 96:65 */ if ((aMaterial.mExtraData & 0x2) != 0) { -/* 97:65 */ GT_Values.RA.addCentrifugeRecipe(GT_Utility.copyAmount(tItemAmount, new Object[] { aStack }), tCapsuleCount > 0L ? (int)tCapsuleCount : 0, (ItemStack)tList.get(0), tList.size() < 2 ? null : (ItemStack)tList.get(1), tList.size() < 3 ? null : (ItemStack)tList.get(2), tList.size() < 4 ? null : (ItemStack)tList.get(3), tList.size() < 5 ? null : (ItemStack)tList.get(4), tList.size() < 6 ? null : tCapsuleCount < 0L ? ItemList.Cell_Empty.get(-tCapsuleCount, new Object[0]) : (ItemStack)tList.get(5), (int)Math.max(1L, Math.abs(aMaterial.getMass() * 2L * tItemAmount))); -/* 98: */ } -/* 99: */ } -/* :0: */ } -/* :1: */ } -/* :2: */ } -/* :3: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingCell - * JD-Core Version: 0.7.0.1 +/* 1: */ package gregtech.loaders.oreprocessing; +/* 2: */ +/* 3: */ import gregtech.api.enums.GT_Values; +/* 4: */ import gregtech.api.enums.ItemList; +/* 5: */ import gregtech.api.enums.Materials; +/* 6: */ import gregtech.api.enums.OrePrefixes; +/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; +/* 8: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; +/* 9: */ import gregtech.api.objects.MaterialStack; +/* 10: */ import gregtech.api.util.GT_ModHandler; +/* 11: */ import gregtech.api.util.GT_OreDictUnificator; +/* 12: */ import gregtech.api.util.GT_Utility; +/* 13: */ import java.util.ArrayList; +/* 14: */ import java.util.Iterator; +/* 15: */ import java.util.List; +/* 16: */ import net.minecraft.item.ItemStack; +/* 17: */ +/* 18: */ public class ProcessingCell +/* 19: */ implements IOreRecipeRegistrator +/* 20: */ { +/* 21: */ public ProcessingCell() +/* 22: */ { +/* 23:21 */ OrePrefixes.cell.add(this); +/* 24: */ } +/* 25: */ +/* 26: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* 27: */ { +/* 28:26 */ if (aMaterial == Materials.Empty) +/* 29: */ { +/* 30:27 */ GT_ModHandler.removeRecipeByOutput(aStack); +/* 31:28 */ if (aModName.equalsIgnoreCase("AtomicScience")) { +/* 32:28 */ GT_ModHandler.addExtractionRecipe(ItemList.Cell_Empty.get(1L, new Object[0]), aStack); +/* 33: */ } +/* 34: */ } +/* 35: */ else +/* 36: */ { +/* 37:30 */ if (aMaterial.mFuelPower > 0) { +/* 38:30 */ GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_Utility.getFluidForFilledItem(aStack, true) == null ? GT_Utility.getContainerItem(aStack, true) : null, aMaterial.mFuelPower, aMaterial.mFuelType); +/* 39: */ } +/* 40:32 */ if ((aMaterial.mMaterialList.size() > 0) && ((aMaterial.mExtraData & 0x3) != 0)) +/* 41: */ { +/* 42:33 */ int tAllAmount = 0; +/* 43: */ MaterialStack tMat2; +/* 44:34 */ for (Iterator i$ = aMaterial.mMaterialList.iterator(); i$.hasNext(); tAllAmount = (int)(tAllAmount + tMat2.mAmount)) { +/* 45:34 */ tMat2 = (MaterialStack)i$.next(); +/* 46: */ } +/* 47:35 */ long tItemAmount = 0L;long tCapsuleCount = GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { aStack }) * -tAllAmount;long tDensityMultiplier = aMaterial.getDensity() > 3628800L ? aMaterial.getDensity() / 3628800L : 1L; +/* 48:36 */ ArrayList tList = new ArrayList(); +/* 49:38 */ for ( MaterialStack tMat : aMaterial.mMaterialList) { +/* 50:38 */ if (tMat.mAmount > 0L) +/* 51: */ { +/* 53: */ ItemStack tStack; +/* 54:39 */ if (tMat.mMaterial == Materials.Air) +/* 55: */ { +/* 56:40 */ tStack = ItemList.Cell_Air.get(tMat.mAmount * tDensityMultiplier / 2L, new Object[0]); +/* 57: */ } +/* 58: */ else +/* 59: */ { +/* 60:42 */ tStack = GT_OreDictUnificator.get(OrePrefixes.dust, tMat.mMaterial, tMat.mAmount); +/* 61:43 */ if (tStack == null) { +/* 62:44 */ tStack = GT_OreDictUnificator.get(OrePrefixes.cell, tMat.mMaterial, tMat.mAmount); +/* 63: */ } +/* 64: */ } +/* 65:46 */ if (tItemAmount + tMat.mAmount * 3628800L <= aStack.getMaxStackSize() * aMaterial.getDensity()) +/* 66: */ { +/* 67:47 */ tItemAmount += tMat.mAmount * 3628800L; +/* 68:48 */ if (tStack != null) +/* 69: */ { +/* 70:49 */ ItemStack tmp397_395 = tStack;tmp397_395.stackSize = ((int)(tmp397_395.stackSize * tDensityMultiplier)); +/* 71:50 */ while ((tStack.stackSize > 64) && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64 < 0L ? tList.size() < 5 : tList.size() < 6) && (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64 <= 64L)) +/* 72: */ { +/* 73:51 */ tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCount(tStack) * 64; +/* 74:52 */ tList.add(GT_Utility.copyAmount(64L, new Object[] { tStack })); +/* 75:53 */ tStack.stackSize -= 64; +/* 76: */ } +/* 77:55 */ if (tStack.stackSize > 0) { +/* 78:55 */ if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }) <= 64L) { +/* 79:55 */ if (tCapsuleCount + GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }) < 0L ? tList.size() < 5 : tList.size() < 6) +/* 80: */ { +/* 81:56 */ tCapsuleCount += GT_ModHandler.getCapsuleCellContainerCountMultipliedWithStackSize(new ItemStack[] { tStack }); +/* 82:57 */ tList.add(tStack); +/* 83: */ } +/* 84: */ } +/* 85: */ } +/* 86: */ } +/* 87: */ } +/* 88: */ } +/* 89: */ } +/* 90:62 */ tItemAmount = (tItemAmount * tDensityMultiplier % aMaterial.getDensity() > 0L ? 1 : 0) + tItemAmount * tDensityMultiplier / aMaterial.getDensity(); +/* 91:63 */ if (tList.size() > 0) +/* 92: */ { +/* 93:64 */ if ((aMaterial.mExtraData & 0x1) != 0) { +/* 94:64 */ GT_Values.RA.addElectrolyzerRecipe(GT_Utility.copyAmount(tItemAmount, new Object[] { aStack }), tCapsuleCount > 0L ? (int)tCapsuleCount : 0, (ItemStack)tList.get(0), tList.size() < 2 ? null : (ItemStack)tList.get(1), tList.size() < 3 ? null : (ItemStack)tList.get(2), tList.size() < 4 ? null : (ItemStack)tList.get(3), tList.size() < 5 ? null : (ItemStack)tList.get(4), tList.size() < 6 ? null : tCapsuleCount < 0L ? ItemList.Cell_Empty.get(-tCapsuleCount, new Object[0]) : (ItemStack)tList.get(5), (int)Math.max(1L, Math.abs(aMaterial.getProtons() * 8L * tItemAmount)), Math.min(4, tList.size()) * 30); +/* 95: */ } +/* 96:65 */ if ((aMaterial.mExtraData & 0x2) != 0) { +/* 97:65 */ GT_Values.RA.addCentrifugeRecipe(GT_Utility.copyAmount(tItemAmount, new Object[] { aStack }), tCapsuleCount > 0L ? (int)tCapsuleCount : 0, (ItemStack)tList.get(0), tList.size() < 2 ? null : (ItemStack)tList.get(1), tList.size() < 3 ? null : (ItemStack)tList.get(2), tList.size() < 4 ? null : (ItemStack)tList.get(3), tList.size() < 5 ? null : (ItemStack)tList.get(4), tList.size() < 6 ? null : tCapsuleCount < 0L ? ItemList.Cell_Empty.get(-tCapsuleCount, new Object[0]) : (ItemStack)tList.get(5), (int)Math.max(1L, Math.abs(aMaterial.getMass() * 2L * tItemAmount))); +/* 98: */ } +/* 99: */ } +/* :0: */ } +/* :1: */ } +/* :2: */ } +/* :3: */ } + + + +/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar + + * Qualified Name: gregtech.loaders.oreprocessing.ProcessingCell + + * JD-Core Version: 0.7.0.1 + */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingCellPlasma.java b/main/java/gregtech/loaders/oreprocessing/ProcessingCellPlasma.java index f025410031..6aae2d0bad 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingCellPlasma.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingCellPlasma.java @@ -1,39 +1,33 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.GT_Values; -/* 4: */ import gregtech.api.enums.Materials; -/* 5: */ import gregtech.api.enums.OrePrefixes; -/* 6: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 7: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; -/* 8: */ import gregtech.api.util.GT_ModHandler; -/* 9: */ import gregtech.api.util.GT_OreDictUnificator; -/* 10: */ import gregtech.api.util.GT_Utility; -/* 11: */ import net.minecraft.item.ItemStack; -/* 12: */ -/* 13: */ public class ProcessingCellPlasma -/* 14: */ implements IOreRecipeRegistrator -/* 15: */ { -/* 16: */ public ProcessingCellPlasma() -/* 17: */ { -/* 18:15 */ OrePrefixes.cellPlasma.add(this); -/* 19: */ } -/* 20: */ -/* 21: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 22: */ { -/* 23:20 */ if (aMaterial == Materials.Empty) -/* 24: */ { -/* 25:21 */ GT_ModHandler.removeRecipeByOutput(aStack); -/* 26: */ } -/* 27: */ else -/* 28: */ { -/* 29:23 */ GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_Utility.getFluidForFilledItem(aStack, true) == null ? GT_Utility.getContainerItem(aStack, true) : null, (int)Math.max(1024L, 1024L * aMaterial.getMass()), 4); -/* 30:24 */ GT_Values.RA.addVacuumFreezerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), (int)Math.max(aMaterial.getMass() * 2L, 1L)); -/* 31: */ } -/* 32: */ } -/* 33: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingCellPlasma - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.interfaces.internal.IGT_RecipeAdder; +/* */ import gregtech.api.util.GT_ModHandler; +/* */ import gregtech.api.util.GT_Utility; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingCellPlasma implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingCellPlasma() +/* */ { +/* 15 */ OrePrefixes.cellPlasma.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 20 */ if (aMaterial == Materials.Empty) { +/* 21 */ GT_ModHandler.removeRecipeByOutput(aStack); +/* */ } else { +/* 23 */ GT_Values.RA.addFuel(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_Utility.getFluidForFilledItem(aStack, true) == null ? GT_Utility.getContainerItem(aStack, true) : null, (int)Math.max(1024L, 1024L * aMaterial.getMass()), 4); +/* 24 */ GT_Values.RA.addVacuumFreezerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), gregtech.api.util.GT_OreDictUnificator.get(OrePrefixes.cell, aMaterial, 1L), (int)Math.max(aMaterial.getMass() * 2L, 1L)); +/* */ } +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingCellPlasma.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java b/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java index 3880140b5e..d5b205e8b1 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingCircuit.java @@ -1,51 +1,40 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.enums.ItemList; -/* 4: */ import gregtech.api.enums.Materials; -/* 5: */ import gregtech.api.enums.OreDictNames; -/* 6: */ import gregtech.api.enums.OrePrefixes; -/* 7: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 8: */ import gregtech.api.util.GT_ModHandler; -/* 9: */ import gregtech.api.util.GT_OreDictUnificator; -/* 10: */ import net.minecraft.item.ItemStack; -/* 11: */ -/* 12: */ public class ProcessingCircuit -/* 13: */ implements IOreRecipeRegistrator -/* 14: */ { -/* 15: */ public ProcessingCircuit() -/* 16: */ { -/* 17:14 */ OrePrefixes.circuit.add(this); -/* 18: */ } -/* 19: */ -/* 20: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) -/* 21: */ { -/* 22:19 */ switch (aMaterial.ordinal()) -/* 23: */ { -/* 24: */ case 1: -/* 25: */ case 2: -/* 26: */ case 3: -/* 27: */ case 4: -/* 28: */ case 5: -/* 29: */ case 6: -/* 30:21 */ if (!GT_OreDictUnificator.isBlacklisted(aStack)) { -/* 31:21 */ GT_ModHandler.removeRecipeByOutput(aStack); -/* 32: */ } -/* 33: */ break; -/* 34: */ case 7: -/* 35:24 */ GT_ModHandler.removeRecipeByOutput(aStack); -/* 36:25 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Primitive.get(1L, new Object[0]), new Object[] { GT_ModHandler.getIC2Item("casingadviron", 1L), OrePrefixes.wireGt01.get(Materials.RedAlloy), OrePrefixes.wireGt01.get(Materials.RedAlloy), OrePrefixes.wireGt01.get(Materials.Tin) }); -/* 37:26 */ break; -/* 38: */ case 8: -/* 39:28 */ GT_ModHandler.removeRecipeByOutput(aStack); -/* 40:29 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { "WWW", "CPC", "WWW", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'), OreDictNames.craftingWireCopper, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) }); -/* 41:30 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { "WCW", "WPW", "WCW", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'), OreDictNames.craftingWireCopper, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) }); -/* 42:31 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) }); -/* 43: */ } -/* 44: */ } -/* 45: */ } - - -/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar - * Qualified Name: gregtech.loaders.oreprocessing.ProcessingCircuit - * JD-Core Version: 0.7.0.1 +/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.ItemList; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OreDictNames; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.util.GT_ModHandler; +/* */ import net.minecraft.item.ItemStack; +/* */ +/* */ public class ProcessingCircuit implements gregtech.api.interfaces.IOreRecipeRegistrator +/* */ { +/* */ public ProcessingCircuit() +/* */ { +/* 14 */ OrePrefixes.circuit.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 19 */ switch (aMaterial) { +/* */ case Good: case Advanced: case Data: case Elite: case Master: case Ultimate: +/* 21 */ if (!gregtech.api.util.GT_OreDictUnificator.isBlacklisted(aStack)) GT_ModHandler.removeRecipeByOutput(aStack); +/* */ break; +/* */ case Primitive: +/* 24 */ GT_ModHandler.removeRecipeByOutput(aStack); +/* 25 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Primitive.get(1L, new Object[0]), new Object[] { GT_ModHandler.getIC2Item("casingadviron", 1L), OrePrefixes.wireGt01.get(Materials.RedAlloy), OrePrefixes.wireGt01.get(Materials.RedAlloy), OrePrefixes.wireGt01.get(Materials.Tin) }); +/* 26 */ break; +/* */ case Basic: +/* 28 */ GT_ModHandler.removeRecipeByOutput(aStack); +/* 29 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { "WWW", "CPC", "WWW", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'), OreDictNames.craftingWireCopper, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) }); +/* 30 */ GT_ModHandler.addCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { "WCW", "WPW", "WCW", Character.valueOf('C'), OrePrefixes.circuit.get(Materials.Primitive), Character.valueOf('W'), OreDictNames.craftingWireCopper, Character.valueOf('P'), OrePrefixes.plate.get(Materials.Steel) }); +/* 31 */ GT_ModHandler.addShapelessCraftingRecipe(ItemList.Circuit_Basic.get(1L, new Object[0]), new Object[] { ItemList.Circuit_Integrated.getWildcard(1L, new Object[0]) }); +/* */ } +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingCircuit.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */ \ No newline at end of file diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java b/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java index 7908db52df..1b5aafa099 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java @@ -1,33 +1,32 @@ -/* 1: */ package gregtech.loaders.oreprocessing; -/* 2: */ -/* 3: */ import gregtech.api.GregTech_API; -/* 4: */ import gregtech.api.enums.Materials; -/* 5: */ import gregtech.api.enums.OrePrefixes; -/* 6: */ import gregtech.api.interfaces.IOreRecipeRegistrator; -/* 7: */ import gregtech.api.objects.GT_RenderedTexture; -/* 8: */ import gregtech.api.util.GT_ModHandler; -/* 9: */ import gregtech.api.util.GT_RecipeRegistrator; -/* 10: */ import gregtech.api.util.GT_Utility; -/* 11: */ import net.minecraft.item.ItemStack; -/* 12: */ -/* 13: */ public class ProcessingCompressed -/* 14: */ implements IOreRecipeReg