diff options
| author | Alkalus <draknyte1@hotmail.com> | 2017-10-05 20:30:57 +1000 |
|---|---|---|
| committer | Alkalus <draknyte1@hotmail.com> | 2017-10-05 20:30:57 +1000 |
| commit | a73cfc50672b20bece82db0e20546cce47548db5 (patch) | |
| tree | 5de0ac328127fbbfdfdc11173008aaab88aa608e /src/Java/gtPlusPlus/xmod/gregtech/recipes | |
| parent | 7e86a106ba8411ba2c959d58562f0d941be801c5 (diff) | |
| download | GT5-Unofficial-a73cfc50672b20bece82db0e20546cce47548db5.tar.gz GT5-Unofficial-a73cfc50672b20bece82db0e20546cce47548db5.tar.bz2 GT5-Unofficial-a73cfc50672b20bece82db0e20546cce47548db5.zip | |
+ Added a custom recipe handler for the Advanced Combiner.
+ Added a Combined recipe for the HG-1223 Super Conductor.
% Slight tweak to material generator.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java index c372335155..795d1762ba 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java @@ -375,5 +375,23 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder { } return false; } + + public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4, + FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3, ItemStack aOutput4, int aDuration, int aEUt) { + if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) { + return false; + } + if ((aOutput1 != null) && ((aDuration = GregTech_API.sRecipeFile.get("advancedmixer", aOutput1, aDuration)) <= 0)) { + return false; + } + if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("advancedmixer", + aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { + return false; + } + Recipe_GT.Gregtech_Recipe_Map.sAdvancedMixerRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2, aInput3, aInput4 }, + new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 }, null, null, new FluidStack[] { aFluidInput }, + new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); + return true; + } } |
