1209f95bc2
Turbine items and achievements
36 lines
No EOL
2.6 KiB
Java
36 lines
No EOL
2.6 KiB
Java
/* */ package gregtech.loaders.oreprocessing;
|
|
/* */
|
|
/* */ import gregtech.api.GregTech_API;
|
|
/* */ import gregtech.api.enums.GT_Values;
|
|
/* */ import gregtech.api.enums.Materials;
|
|
/* */ import gregtech.api.enums.OrePrefixes;
|
|
import gregtech.api.enums.SubTag;
|
|
/* */ 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.item.ItemStack;
|
|
/* */
|
|
/* */ public class ProcessingPlate2 implements gregtech.api.interfaces.IOreRecipeRegistrator
|
|
/* */ {
|
|
/* */ public ProcessingPlate2()
|
|
/* */ {
|
|
/* 17 */ OrePrefixes.plateDouble.add(this);
|
|
/* */ }
|
|
/* */
|
|
/* */ public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack)
|
|
/* */ {
|
|
/* 22 */ GT_ModHandler.removeRecipeByOutput(aStack);
|
|
/* */
|
|
/* 24 */ GregTech_API.registerCover(aStack, new gregtech.api.objects.GT_RenderedTexture(aMaterial.mIconSet.mTextures[72], aMaterial.mRGBa, false), null);
|
|
/* 26 */ if (!aMaterial.contains(gregtech.api.enums.SubTag.NO_SMASHING)) {
|
|
/* 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);
|
|
/* */ }
|
|
/* 29 */ if ((!aMaterial.contains(gregtech.api.enums.SubTag.NO_SMASHING)) && (GregTech_API.sRecipeFile.get(gregtech.api.enums.ConfigCategories.Tools.hammerdoubleplate, OrePrefixes.plate.get(aMaterial).toString(), true))) {
|
|
/* 30 */ GT_ModHandler.addCraftingRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), gregtech.api.util.GT_ModHandler.RecipeBits.DO_NOT_CHECK_FOR_COLLISIONS | gregtech.api.util.GT_ModHandler.RecipeBits.BUFFERED, new Object[] { "I", "B", "h", Character.valueOf('I'), OrePrefixes.plate.get(aMaterial), Character.valueOf('B'), OrePrefixes.plate.get(aMaterial) });
|
|
/* 31 */ GT_ModHandler.addShapelessCraftingRecipe(GT_Utility.copyAmount(1L, new Object[] { aStack }), new Object[] { gregtech.api.enums.ToolDictNames.craftingToolForgeHammer, OrePrefixes.plate.get(aMaterial), OrePrefixes.plate.get(aMaterial) });
|
|
/* */ } else {
|
|
/* 33 */ GT_Values.RA.addAssemblerRecipe(GT_OreDictUnificator.get(OrePrefixes.plate, aMaterial, 2L), gregtech.api.enums.ItemList.Circuit_Integrated.getWithDamage(0L, 2L, new Object[0]), Materials.Glue.getFluid(10L), GT_Utility.copyAmount(1L, new Object[] { aStack }), 64, 8);
|
|
/* */ }
|
|
/* */ }
|
|
/* */ } |