diff options
| author | Martin Robertz <dream-master@gmx.net> | 2021-11-16 18:56:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-16 18:56:47 +0100 |
| commit | e217ec4291357c8ee0554f8d1798821bfbca5b5d (patch) | |
| tree | 9b6275fd7ef7145829365e49488567348b98af6b /src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java | |
| parent | ec98da4ac00f8b3b0eafaec04474df2b6d868e1f (diff) | |
| parent | 6ebf7fb8fb54b82422315d7337b257d1abf95a46 (diff) | |
| download | GT5-Unofficial-e217ec4291357c8ee0554f8d1798821bfbca5b5d.tar.gz GT5-Unofficial-e217ec4291357c8ee0554f8d1798821bfbca5b5d.tar.bz2 GT5-Unofficial-e217ec4291357c8ee0554f8d1798821bfbca5b5d.zip | |
Merge pull request #38 from iouter/master
Separate recipes of the multiblock mixer
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java')
| -rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java index 1f41bf84e3..0b4649e414 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java @@ -785,6 +785,34 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder { } + public boolean addMultiblockMixerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick, int aSpecial){ + if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs) || aEUtick <= 0) { + return false; + } + if (!ItemUtils.checkForInvalidItems(aInputs, aOutputs)) { + Logger.INFO("[Recipe] Error generating Large Mixer recipe."); + Logger.INFO("Inputs: "+ItemUtils.getArrayStackNames(aInputs)); + Logger.INFO("Fluid Inputs: "+ItemUtils.getArrayStackNames(aFluidInputs)); + Logger.INFO("Outputs: "+ItemUtils.getArrayStackNames(aOutputs)); + Logger.INFO("Fluid Outputs: "+ItemUtils.getArrayStackNames(aFluidOutputs)); + return false; + } + + GTPP_Recipe aRecipe = new GTPP_Recipe( + false, + aInputs, + aOutputs, + null, + aChances, + aFluidInputs, + aFluidOutputs, + aDuration, + aEUtick, + aSpecial); + GTPP_Recipe.GTPP_Recipe_Map.sMultiblockMixerRecipes_GT.addRecipe(aRecipe); + return true; + } + public boolean addAssemblerRecipeWithOreDict(Object aInput1, int aAmount1, Object aInput2, int aAmount2, ItemStack aOutput, int a1, int a2) { if (aInput1 instanceof String || aInput2 instanceof String) { int mCompleted = 0; |
