54 lines
3.3 KiB
Java
54 lines
3.3 KiB
Java
|
/* 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 ProcessingPlate2
|
||
|
/* 22: */ implements IOreRecipeRegistrator
|
||
|
/* 23: */ {
|
||
|
/* 24: */ public ProcessingPlate2()
|
||
|
/* 25: */ {
|
||
|
/* 26:17 */ OrePrefixes.plateDouble.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: */
|
||
|
/* 33:24 */ GregTech_API.registerCover(aStack, new GT_RenderedTexture(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), null);
|
||
|
/* 34:26 */ if (!aMaterial.contains(SubTag.NO_SMASHING)) {
|
||
|
/* 35:27 */ GT_Values.RA.addBenderRecipe(GT_Utility.copyAmount(2L, new Object[] { aStack }), GT_OreDictUnificator.get(OrePrefixes.plateQuadruple, aMaterial, 1L), (int)Math.max(aMaterial.getMass() * 2L, 1L), 96);
|
||
|
/* 36: */ }
|
||
|
/* 37:29 */ if ((!aMaterial.contains(SubTag.NO_SMASHING)) && (GregTech_API.sRecipeFile.get(ConfigCategories.Tools.hammerdoubleplate, OrePrefixes.plate.get(aMaterial).toString(), true)))
|
||
|
/* 38: */ {
|
||
|
/* 39:30 */ 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.plate.get(aMaterial), Character.valueOf('B'), OrePrefixes.plate.get(aMaterial) });
|
||
|
/* 40:31 */ GT_ModHandler.addShapelessCraftingRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), new Object[] { ToolDictNames.craftingToolForgeHammer, OrePrefixes.plate.get(aMaterial), OrePrefixes.plate.get(aMaterial) });
|
||
|
/* 41: */ }
|
||
|
/* 42: */ else
|
||
|
/* 43: */ {
|
||
|
/* 44:33 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), ItemList.Circuit_Integrated.getWithDamage(0L, 2L, new Object[0]), Materials.Glue.getFluid(10L), GT_Utility.copyAmount(1L, new Object[] { aStack }), 64, 8);
|
||
|
/* 45: */ }
|
||
|
/* 46: */ }
|
||
|
/* 47: */ }
|
||
|
|
||
|
|
||
|
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|
||
|
* Qualified Name: gregtech.loaders.oreprocessing.ProcessingPlate2
|
||
|
* JD-Core Version: 0.7.0.1
|
||
|
*/
|