diff options
Diffstat (limited to 'main/java/gregtech/loaders/oreprocessing/ProcessingDye.java')
-rw-r--r-- | main/java/gregtech/loaders/oreprocessing/ProcessingDye.java | 80 |
1 files changed, 39 insertions, 41 deletions
diff --git a/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java b/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java index eb598aece2..a8dce9b4c8 100644 --- a/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java +++ b/main/java/gregtech/loaders/oreprocessing/ProcessingDye.java @@ -1,42 +1,40 @@ -/* 1: */ package gregtech.loaders.oreprocessing;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
-/* 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_ModHandler;
-/* 10: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 11: */ import gregtech.api.util.GT_Utility;
-/* 12: */ import net.minecraft.init.Blocks;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraftforge.fluids.FluidRegistry;
-/* 15: */
-/* 16: */ public class ProcessingDye
-/* 17: */ implements IOreRecipeRegistrator
-/* 18: */ {
-/* 19: */ public ProcessingDye()
-/* 20: */ {
-/* 21:20 */ OrePrefixes.dye.add(this);
-/* 22: */ }
-/* 23: */
-/* 24: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
-/* 25: */ {
-/* 26:25 */ Dyes aDye = Dyes.get(aOreDictName);
-/* 27:26 */ if ((aDye.mIndex >= 0) && (aDye.mIndex < 16) &&
-/* 28:27 */ (GT_Utility.getContainerItem(aStack, true) == null))
-/* 29: */ {
-/* 30:28 */ GT_ModHandler.addAlloySmelterRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 8L), GT_Utility.copyAmount(1L, new Object[] { aStack }), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false);
-/* 31:29 */ GT_ModHandler.addAlloySmelterRecipe(new ItemStack(Blocks.glass, 8, 32767), GT_Utility.copyAmount(1L, new Object[] { aStack }), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false);
-/* 32:30 */ GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), null, null, null, Materials.Water.getFluid(144L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 144), null, 16, 4);
-/* 33:31 */ GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), null, null, null, GT_ModHandler.getDistilledWater(144L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 144), null, 16, 4);
-/* 34: */ }
-/* 35: */ }
-/* 36: */ }
-
-
-/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
- * Qualified Name: gregtech.loaders.oreprocessing.ProcessingDye
- * JD-Core Version: 0.7.0.1
+/* */ package gregtech.loaders.oreprocessing; +/* */ +/* */ import gregtech.api.enums.Dyes; +/* */ import gregtech.api.enums.GT_Values; +/* */ import gregtech.api.enums.Materials; +/* */ import gregtech.api.enums.OrePrefixes; +/* */ import gregtech.api.interfaces.IOreRecipeRegistrator; +/* */ 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.init.Blocks; +/* */ import net.minecraft.item.ItemStack; +/* */ import net.minecraftforge.fluids.FluidRegistry; +/* */ +/* */ public class ProcessingDye implements IOreRecipeRegistrator +/* */ { +/* */ public ProcessingDye() +/* */ { +/* 20 */ OrePrefixes.dye.add(this); +/* */ } +/* */ +/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) +/* */ { +/* 25 */ Dyes aDye = Dyes.get(aOreDictName); +/* 26 */ if ((aDye.mIndex >= 0) && (aDye.mIndex < 16) && +/* 27 */ (GT_Utility.getContainerItem(aStack, true) == null)) { +/* 28 */ GT_ModHandler.addAlloySmelterRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 8L), GT_Utility.copyAmount(1L, new Object[] { aStack }), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false); +/* 29 */ GT_ModHandler.addAlloySmelterRecipe(new ItemStack(Blocks.glass, 8, 32767), GT_Utility.copyAmount(1L, new Object[] { aStack }), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false); +/* 30 */ GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), null, null, null, Materials.Water.getFluid(144L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 144), null, 16, 4); +/* 31 */ GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), null, null, null, GT_ModHandler.getDistilledWater(144L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 144), null, 16, 4); +/* */ } +/* */ } +/* */ } + + +/* Location: F:\Torrent\minecraft\jdgui test\gregtech_1.7.10-5.07.07-dev.jar!\gregtech\loaders\oreprocessing\ProcessingDye.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1-SNAPSHOT-20140817 */
\ No newline at end of file |