diff options
| author | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
|---|---|---|
| committer | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
| commit | a1504799f44ba2debdfef06317f24e7f9c1129d6 (patch) | |
| tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/loaders/oreprocessing | |
| parent | b803f59de5a66fcb4ef53e117b912fbbc2841392 (diff) | |
| download | GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2 GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip | |
strip linenumbers
Diffstat (limited to 'main/java/gregtech/loaders/oreprocessing')
91 files changed, 3216 insertions, 3216 deletions
diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java b/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java index ed312676b6..049cd9409c 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingAll.java @@ -1,22 +1,22 @@ -/* */ 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); -/* */ } -/* */ } +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() + { + for (OrePrefixes tPrefix : OrePrefixes.values()) tPrefix.add(this); + } + + public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) + { + 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 diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java b/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java index c2bcdb5b8c..80290942e0 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingArrows.java @@ -1,46 +1,46 @@ -/* */ 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); -/* */ } -/* */ } +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() + { + 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) + { + ItemStack tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); + GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.smite, EnchantmentHelper.getEnchantmentLevel(Enchantment.smite.effectId, tOutput) + 3); + GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.HolyWater.getFluid(25L), tOutput, null, null, null, 100, 2); + + tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); + GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 3); + GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.FierySteel.getFluid(25L), tOutput, null, null, null, 100, 2); + + tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); + GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.fireAspect, EnchantmentHelper.getEnchantmentLevel(Enchantment.fireAspect.effectId, tOutput) + 1); + GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Blaze.getMolten(18L), tOutput, null, null, null, 100, 2); + + tOutput = GT_Utility.copyAmount(1L, new Object[] { aStack });GT_Utility.updateItemStack(tOutput); + GT_Utility.ItemNBT.addEnchantment(tOutput, Enchantment.knockback, EnchantmentHelper.getEnchantmentLevel(Enchantment.knockback.effectId, tOutput) + 1); + GT_Values.RA.addChemicalBathRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), Materials.Rubber.getMolten(18L), tOutput, null, null, null, 100, 2); + + tOutput = GT_Uti |
