GT5-Unofficial/main/java/gregtech/loaders/oreprocessing/ProcessingCompressed.java

33 lines
1.5 KiB
Java
Raw Normal View History

2015-04-23 16:14:22 +00:00
/* 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 IOreRecipeRegistrator
/* 15: */ {
/* 16: */ public ProcessingCompressed()
/* 17: */ {
/* 18:17 */ OrePrefixes.compressed.add(this);
/* 19: */ }
/* 20: */
/* 21: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
/* 22: */ {
/* 23:22 */ GT_ModHandler.removeRecipeByOutput(aStack);
/* 24:23 */ GregTech_API.registerCover(aStack, new GT_RenderedTexture(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), null);
/* 25:24 */ GT_RecipeRegistrator.registerUsagesForMaterials(GT_Utility.copyAmount(1L, new Object[] { aStack }), null, false);
/* 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.ProcessingCompressed
* JD-Core Version: 0.7.0.1
*/