aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java
new file mode 100644
index 0000000000..e895b7cc0c
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/Processing_HotIngots.java
@@ -0,0 +1,23 @@
+package gtPlusPlus.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 gtPlusPlus.core.util.Utils;
+import gtPlusPlus.xmod.gregtech.api.enums.GregtechOrePrefixes;
+import gtPlusPlus.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials;
+import gtPlusPlus.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));
+ }
+}