diff options
author | draknyte1 <draknyte1@hotmail.com> | 2016-11-04 15:23:26 +1000 |
---|---|---|
committer | draknyte1 <draknyte1@hotmail.com> | 2016-11-04 15:23:26 +1000 |
commit | 0669f5eb9d5029a8b94ec552171b0837605f7747 (patch) | |
tree | 6b40e64c04d51b7a33cf2f0b35f7232cf37c4247 /src/Java/gtPlusPlus/xmod/thermalfoundation/recipe | |
parent | 3654052fb63a571c5eaca7f20714b87c17f7e966 (diff) | |
download | GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.gz GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.bz2 GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.zip |
$ Cleaned up the entire project.
> Much neat, very nices.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/thermalfoundation/recipe')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/src/Java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java b/src/Java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java index 5bce19d85a..2d3facb543 100644 --- a/src/Java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java +++ b/src/Java/gtPlusPlus/xmod/thermalfoundation/recipe/TF_Gregtech_Recipes.java @@ -13,47 +13,54 @@ import net.minecraftforge.fluids.FluidStack; public class TF_Gregtech_Recipes { - public static void run(){ - start(); + private static FluidStack getFluidStack(final String fluidName, final int amount) { + Utils.LOG_WARNING("Trying to get a fluid stack of " + fluidName); + try { + return FluidRegistry.getFluidStack(fluidName, amount); + } + catch (final Throwable e) { + return null; + } + + } + + public static void run() { + TF_Gregtech_Recipes.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 = ItemUtils.simpleMetaStack(TF_Items.itemMaterial, 2, 3); - ItemStack rod_Blizz = TF_Items.itemRodBlizz.copy(); - FluidStack moltenRedstone = getFluidStack("molten.redstone", 250); + private static void start() { + // Get Items to work with + final ItemStack dust_Cryotheum = TF_Items.itemDustCryotheum.copy(); + final ItemStack dust_Pyrotheum = TF_Items.itemDustPyrotheum.copy(); + final ItemStack dust_Blizz = TF_Items.itemDustBlizz.copy(); + final ItemStack dust_Blizz3 = ItemUtils.simpleMetaStack(TF_Items.itemMaterial, 2, 3); + final ItemStack rod_Blizz = TF_Items.itemRodBlizz.copy(); + final FluidStack moltenRedstone = TF_Gregtech_Recipes.getFluidStack("molten.redstone", 250); - //Gelid Cryotheum + // 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); + GT_Values.RA.addFluidExtractionRecipe(dust_Cryotheum, GT_Values.NI, + TF_Gregtech_Recipes.getFluidStack("cryotheum", 250), 10000, 200, 240); + GT_Values.RA.addChemicalBathRecipe(GT_OreDictUnificator.get(OrePrefixes.ore, Materials.Cinnabar, 1L), + TF_Gregtech_Recipes.getFluidStack("cryotheum", 200), + GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Cinnabar, 3L), GT_Values.NI, GT_Values.NI, null, + 400, 30); - //Blizz Powder + // 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); + GT_Values.RA.addChemicalBathRecipe(new ItemStack(Items.snowball, 4), moltenRedstone, dust_Blizz, GT_Values.NI, + GT_Values.NI, null, 400, 240); - //Blizz Rod + // 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_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; - } + // Blazing Pyrotheum + Utils.LOG_INFO("Adding Recipes for Blazing Pyrotheum"); + GT_Values.RA.addFluidExtractionRecipe(dust_Pyrotheum, GT_Values.NI, + TF_Gregtech_Recipes.getFluidStack("pyrotheum", 250), 10000, 200, 240); } |