From 072f6322fb789703f163030edf4b60bf5a0201af Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Sat, 27 Aug 2016 01:34:08 +1000 Subject: + Attempted to add custom IC2 generators. % Refactored the xmod package to be a parent, beside core. No longer is it a child, it needs room to grow. --- .../gregtech/loaders/Processing_HotIngots.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java (limited to 'src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java') diff --git a/src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java b/src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java new file mode 100644 index 0000000000..34c9e8258f --- /dev/null +++ b/src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java @@ -0,0 +1,23 @@ +package miscutil.xmod.gregtech.loaders; + +import gregtech.api.enums.GT_Values; +import gregtech.api.enums.OrePrefixes; +import gregtech.api.util.GT_OreDictUnificator; +import gregtech.api.util.GT_Utility; +import miscutil.core.util.Utils; +import miscutil.xmod.gregtech.api.enums.GregtechOrePrefixes; +import miscutil.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials; +import miscutil.xmod.gregtech.api.interfaces.internal.Interface_OreRecipeRegistrator; +import net.minecraft.item.ItemStack; + +public class Processing_HotIngots implements Interface_OreRecipeRegistrator { + public Processing_HotIngots() { + Utils.LOG_INFO("Generating Hot Ingot."); + GregtechOrePrefixes.ingotHot.add(this); + } + + @Override + public void registerOre(GregtechOrePrefixes aPrefix, GT_Materials aMaterial, String aOreDictName, String aModName, ItemStack aStack) { + GT_Values.RA.addVacuumFreezerRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.ingot, aMaterial, 1L), (int) Math.max(aMaterial.getMass() * 3L, 1L)); + } +} -- cgit