aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/xmod/thermalfoundation/recipe
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/thermalfoundation/recipe
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/thermalfoundation/recipe')
-rw-r--r--src/Java/miscutil/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/Java/miscutil/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java b/src/Java/miscutil/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java
new file mode 100644
index 0000000000..a84606576a
--- /dev/null
+++ b/src/Java/miscutil/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java
@@ -0,0 +1,62 @@
+package miscutil.xmod.thermalfoundation.recipe;
+
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_OreDictUnificator;
+import miscutil.core.util.Utils;
+import miscutil.core.util.item.UtilsItems;
+import miscutil.xmod.thermalfoundation.item.TF_Items;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.FluidRegistry;
+import net.minecraftforge.fluids.FluidStack;
+
+public class TF_Gregtech_Recipes {
+
+ public static void run(){
+ start();
+ }
+
+ private static void start(){
+ //Get Items to work with
+ ItemStack dust_Cryotheum = TF_Items.itemDustCryotheum.copy();
+ ItemStack dust_Pyrotheum = TF_Items.itemDustPyrotheum.copy();
+ ItemStack dust_Blizz = TF_Items.itemDustBlizz.copy();
+ ItemStack dust_Blizz3 = UtilsItems.simpleMetaStack(TF_Items.itemMaterial, 2, 3);
+ ItemStack rod_Blizz = TF_Items.itemRodBlizz.copy();
+ FluidStack moltenRedstone = getFluidStack("molten.redstone", 250);
+
+ //Gelid Cryotheum
+ Utils.LOG_INFO("Adding Recipes for Gelid Cryotheum");
+ GT_Values.RA.addFluidExtractionRecipe(dust_Cryotheum, GT_Values.NI, getFluidStack("cryotheum", 250), 10000, 200, 240);
+ GT_Values.RA.addChemicalBathRecipe((GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Cinnabar, 1L)), getFluidStack("cryotheum", 200), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cinnabar, 3L), GT_Values.NI, GT_Values.NI, null, 400, 30);
+
+ //Blizz Powder
+ Utils.LOG_INFO("Adding Recipes for Blizz Powder");
+ GT_Values.RA.addChemicalBathRecipe(new ItemStack(Items.snowball, 4), moltenRedstone, dust_Blizz, GT_Values.NI, GT_Values.NI, null, 400, 240);
+
+ //Blizz Rod
+ Utils.LOG_INFO("Adding Recipes for Blizz Rod");
+ GT_Values.RA.addVacuumFreezerRecipe(new ItemStack(Items.blaze_rod), rod_Blizz, (int) Math.max((Materials.Blaze.getMass()*4) * 3L, 1L));
+ GT_ModHandler.addPulverisationRecipe(rod_Blizz, dust_Blizz3, new ItemStack(Items.snowball, 1), 50, false);
+
+ //Blazing Pyrotheum
+ Utils.LOG_INFO("Adding Recipes for Blazing Pyrotheum");
+ GT_Values.RA.addFluidExtractionRecipe(dust_Pyrotheum, GT_Values.NI, getFluidStack("pyrotheum", 250), 10000, 200, 240);
+
+ }
+
+ private static FluidStack getFluidStack(String fluidName, int amount){
+ Utils.LOG_WARNING("Trying to get a fluid stack of "+fluidName);
+ try {
+ return FluidRegistry.getFluidStack(fluidName, amount);
+ }
+ catch (Throwable e){
+ return null;
+ }
+
+ }
+
+}