aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-08-27 01:34:08 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-08-27 01:34:08 +1000
commit072f6322fb789703f163030edf4b60bf5a0201af (patch)
tree9d2d9c2ba6fe3bc5139a9868ee4eca95629fdd95 /src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java
parentf555ac2e146e572155e176131c23e73cd74684f1 (diff)
downloadGT5-Unofficial-072f6322fb789703f163030edf4b60bf5a0201af.tar.gz
GT5-Unofficial-072f6322fb789703f163030edf4b60bf5a0201af.tar.bz2
GT5-Unofficial-072f6322fb789703f163030edf4b60bf5a0201af.zip
+ 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.
Diffstat (limited to 'src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java')
-rw-r--r--src/Java/miscutil/xmod/gregtech/loaders/Processing_HotIngots.java23
1 files changed, 23 insertions, 0 deletions
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));
+ }
+}