diff options
| author | Jordan Byrne <draknyte1@hotmail.com> | 2017-12-09 19:19:30 +1000 |
|---|---|---|
| committer | Jordan Byrne <draknyte1@hotmail.com> | 2017-12-09 19:19:30 +1000 |
| commit | 02c185e70e23c3c826e26e2ca4ddf5dbb056af71 (patch) | |
| tree | b7419fd7dd36a290c1d5b8884bd224de276ae5f2 /src/Java/gtPlusPlus/core/util/recipe | |
| parent | 4f57b824fa40ac0628bf0f7fe9215bdd06cc0c52 (diff) | |
| download | GT5-Unofficial-02c185e70e23c3c826e26e2ca4ddf5dbb056af71.tar.gz GT5-Unofficial-02c185e70e23c3c826e26e2ca4ddf5dbb056af71.tar.bz2 GT5-Unofficial-02c185e70e23c3c826e26e2ca4ddf5dbb056af71.zip | |
+ Added a config option to disable Zombie Reinforcements.
% Redid some Circuit handling for recipes.
$ Fixed Component Assembler recipes not using all circuits per tier for recipes.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/recipe')
| -rw-r--r-- | src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java b/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java index 8a138366ba..7d094b7a43 100644 --- a/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java +++ b/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java @@ -322,6 +322,51 @@ public class RecipeUtils { + public static boolean addShapedGregtechRecipeForTypes( + final Object InputItem1, final Object InputItem2, final Object InputItem3, + final Object InputItem4, final Object InputItem5, final Object InputItem6, + final Object InputItem7, final Object InputItem8, final Object InputItem9, + final ItemStack OutputItem){ + + int using = 0, recipeSlotCurrent = 0; + boolean[] hasMultiStack = new boolean[9]; + boolean inUse[] = {false, false, false}; + ItemStack array[][] = new ItemStack[3][9]; + + Object[] inputs = { + InputItem1, InputItem2, InputItem3, + InputItem4, InputItem5, InputItem6, + InputItem7, InputItem8, InputItem9}; + + for (Object o : inputs){ + if (o.getClass().isArray()){ + if (inUse[using] == false){ + inUse[using] = true; + array[using] = (ItemStack[]) o; + hasMultiStack[recipeSlotCurrent] = true; + using++; + } + } + else { + hasMultiStack[recipeSlotCurrent] = false; + } + recipeSlotCurrent++; + } + + int using2 = 0; + for (boolean t : inUse){ + + if (t){ + if (array[using2] != null){ + //addShapedGregtechRecipe + } + } + using2++; + } + + + return false; + } |
