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

53 lines
3.3 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;
import gregtech.api.enums.ConfigCategories;
/* 4: */ import gregtech.api.enums.ConfigCategories.Tools;
/* 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.enums.SubTag;
/* 10: */ import gregtech.api.enums.ToolDictNames;
/* 11: */ import gregtech.api.interfaces.IOreRecipeRegistrator;
/* 12: */ import gregtech.api.interfaces.internal.IGT_RecipeAdder;
/* 13: */ import gregtech.api.objects.GT_RenderedTexture;
/* 14: */ import gregtech.api.util.GT_Config;
/* 15: */ import gregtech.api.util.GT_ModHandler;
/* 16: */ import gregtech.api.util.GT_ModHandler.RecipeBits;
/* 17: */ import gregtech.api.util.GT_OreDictUnificator;
/* 18: */ import gregtech.api.util.GT_Utility;
/* 19: */ import net.minecraft.item.ItemStack;
/* 20: */
/* 21: */ public class ProcessingPlate4
/* 22: */ implements IOreRecipeRegistrator
/* 23: */ {
/* 24: */ public ProcessingPlate4()
/* 25: */ {
/* 26:17 */ OrePrefixes.plateQuadruple.add(this);
/* 27: */ }
/* 28: */
/* 29: */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
/* 30: */ {
/* 31:22 */ GT_ModHandler.removeRecipeByOutput(aStack);
/* 32:23 */ GregTech_API.registerCover(aStack, new GT_RenderedTexture(aMaterial.mIconSet.mTextures[74], aMaterial.mRGBa, false), null);
/* 33:24 */ if (!aMaterial.contains(SubTag.NO_WORKING)) {
/* 34:24 */ GT_Values.RA.addCNCRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.gearGt, aMaterial, 1L), (int)Math.max(aMaterial.getMass() * 2L, 1L), 32);
/* 35: */ }
/* 36:25 */ if ((!aMaterial.contains(SubTag.NO_SMASHING)) && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerquadrupleplate, OrePrefixes.plate.get(aMaterial).toString(), true)))
/* 37: */ {
/* 38:26 */ GT_ModHandler.addCraftingRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | GT_ModHandler.RecipeBits.BUFFERED, new Object[] { "I", "B", "h", Character.valueOf('I'), OrePrefixes.plateTriple.get(aMaterial), Character.valueOf('B'), OrePrefixes.plate.get(aMaterial) });
/* 39:27 */ GT_ModHandler.addShapelessCraftingRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), new Object[] { ToolDictNames.craftingToolForgeHammer, OrePrefixes.plate.get(aMaterial), OrePrefixes.plate.get(aMaterial), OrePrefixes.plate.get(aMaterial), OrePrefixes.plate.get(aMaterial) });
/* 40: */ }
/* 41: */ else
/* 42: */ {
/* 43:29 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 4L), ItemList.Circuit_Integrated.getWithDamage(0L, 4L, new Object[0]), Materials.Glue.getFluid(30L), GT_Utility.copyAmount(1L, new Object[] { aStack }), 128, 8);
/* 44: */ }
/* 45: */ }
/* 46: */ }
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
* Qualified Name: gregtech.loaders.oreprocessing.ProcessingPlate4
* JD-Core Version: 0.7.0.1
*/