diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-04 22:34:46 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-04 22:34:46 +1000 |
commit | d8dc6e3e04024ea63db16b6859c9f1f08101a924 (patch) | |
tree | 0813dafc578bf4b167eb1b447d2f6625e68d0332 /src/Java/miscutil/xmod/gregtech/api/util | |
parent | 9760d0067df95c30189c3b67c0ec1d13a021a14e (diff) | |
download | GT5-Unofficial-d8dc6e3e04024ea63db16b6859c9f1f08101a924.tar.gz GT5-Unofficial-d8dc6e3e04024ea63db16b6859c9f1f08101a924.tar.bz2 GT5-Unofficial-d8dc6e3e04024ea63db16b6859c9f1f08101a924.zip |
+ Added some base Meta Tile Entities to handle my custom recipe system.
+ Added some Test recipes for the Dehydrator.
+ Added 3 different recipe handlers for the Dehydrator.
% Added a new Method in FluidUtils that accepts a fluidstack and amount to return a fluidstack[].
Diffstat (limited to 'src/Java/miscutil/xmod/gregtech/api/util')
-rw-r--r-- | src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipe.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipe.java b/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipe.java index 96359550a3..10163bc3a5 100644 --- a/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipe.java +++ b/src/Java/miscutil/xmod/gregtech/api/util/GregtechRecipe.java @@ -204,6 +204,22 @@ public class GregtechRecipe { } } } + + //Custom Recipe Handlers + public GregtechRecipe(ItemStack aInput, FluidStack aFluid, ItemStack[] aOutput, int aDuration, int aEUt) { + this(true, new ItemStack[]{aInput}, aOutput.clone(), null, null, new FluidStack[]{aFluid}, null, aDuration, aEUt, 0); + if (mInputs.length > 0 && mOutputs[0] != null) { + Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(this); + } + } + + /*public GregtechRecipe(ItemStack aInput, FluidStack aFluid, ItemStack[] aOutput, int aDuration, int aEUt) { + this(true, new ItemStack[]{aInput}, aOutput.clone(), null, null, new FluidStack[]{aFluid}, null, aDuration, aEUt, 0); + if (mInputs.length > 0 && mOutputs[0] != null) { + Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(this); + } + }*/ + public static void reInit() { GT_Log.out.println("GT_Mod: Re-Unificating Recipes."); @@ -307,7 +323,8 @@ public class GregtechRecipe { //public static final Gregtech_Recipe_Map sMatterFabRecipes = new Gregtech_Recipe_Map(new HashSet<GregtechRecipe>(200), "gt.recipe.matterfab", "Matter Fabricator", null, RES_PATH_GUI + "basicmachines/Massfabricator", 1, 3, 1, 1, 1, E, 1, E, true, true); public static final Gregtech_Recipe_Map_Fuel sRocketFuels = new Gregtech_Recipe_Map_Fuel(new HashSet<GregtechRecipe>(10), "gt.recipe.rocketenginefuel", "Rocket Engine Fuel", null, RES_PATH_GUI + "basicmachines/Default", 1, 1, 0, 0, 1, "Fuel Value: ", 3000, " EU", true, true); public static final Gregtech_Recipe_Map_Fuel sGeoThermalFuels = new Gregtech_Recipe_Map_Fuel(new HashSet<GregtechRecipe>(10), "gt.recipe.geothermalfuel", "GeoThermal Fuel", null, RES_PATH_GUI + "basicmachines/Default", 1, 1, 0, 0, 1, "Fuel Value: ", 1000, " EU", true, true); - + public static final Gregtech_Recipe_Map sChemicalDehydratorRecipes = new Gregtech_Recipe_Map(new HashSet<GregtechRecipe>(200), "gt.recipe.chemicaldehydrator", "Chemical Dehydrator", null, RES_PATH_GUI + "basicmachines/Sifter", 1, 1, 0, 0, 1, E, 1, E, true, true); + /** * HashMap of Recipes based on their Items */ |