aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/core/util/recipe
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-07-27 20:26:08 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-07-27 20:26:08 +1000
commitc3d3a7e4e48cbed27ca5b56967e1593b30dbfd3b (patch)
tree08d6cf925acc309150a10fbcdf52d32bccf09c24 /src/Java/miscutil/core/util/recipe
parent70fb3475418db0048c39db1479b62a92be041314 (diff)
downloadGT5-Unofficial-c3d3a7e4e48cbed27ca5b56967e1593b30dbfd3b.tar.gz
GT5-Unofficial-c3d3a7e4e48cbed27ca5b56967e1593b30dbfd3b.tar.bz2
GT5-Unofficial-c3d3a7e4e48cbed27ca5b56967e1593b30dbfd3b.zip
+ Added Base classes for meta blocks.
+ Added Base classes for ItemBlocks. % Changed a Few tooltips for newly generated material items.
Diffstat (limited to 'src/Java/miscutil/core/util/recipe')
-rw-r--r--src/Java/miscutil/core/util/recipe/UtilsRecipe.java53
1 files changed, 15 insertions, 38 deletions
diff --git a/src/Java/miscutil/core/util/recipe/UtilsRecipe.java b/src/Java/miscutil/core/util/recipe/UtilsRecipe.java
index ccd858d673..3de2e5e887 100644
--- a/src/Java/miscutil/core/util/recipe/UtilsRecipe.java
+++ b/src/Java/miscutil/core/util/recipe/UtilsRecipe.java
@@ -333,43 +333,6 @@ public class UtilsRecipe {
return;
}
- /*if (InputItem1 instanceof String) {
- String temp = (String) InputItem1;
- InputItem1 = getItemStackFromOreDict(temp);
- }
- if (InputItem2 instanceof String) {
- String temp = (String) InputItem2;
- InputItem2 = getItemStackFromOreDict(temp);
- }
- if (InputItem3 instanceof String) {
- String temp = (String) InputItem3;
- InputItem3 = getItemStackFromOreDict(temp);
- }
- if (InputItem4 instanceof String) {
- String temp = (String) InputItem4;
- InputItem4 = getItemStackFromOreDict(temp);
- }
- if (InputItem5 instanceof String) {
- String temp = (String) InputItem5;
- InputItem5 = getItemStackFromOreDict(temp);
- }
- if (InputItem6 instanceof String) {
- String temp = (String) InputItem6;
- InputItem6 = getItemStackFromOreDict(temp);
- }
- if (InputItem7 instanceof String) {
- String temp = (String) InputItem7;
- InputItem7 = getItemStackFromOreDict(temp);
- }
- if (InputItem8 instanceof String) {
- String temp = (String) InputItem8;
- InputItem8 = getItemStackFromOreDict(temp);
- }
- if (InputItem9 instanceof String) {
- String temp = (String) InputItem9;
- InputItem9 = getItemStackFromOreDict(temp);
- }*/
-
GT_ModHandler.addCraftingRecipe(OutputItem,
GT_ModHandler.RecipeBits.DISMANTLEABLE | GT_ModHandler.RecipeBits.NOT_REMOVABLE |
GT_ModHandler.RecipeBits.REVERSIBLE | GT_ModHandler.RecipeBits.BUFFERED,
@@ -382,7 +345,21 @@ public class UtilsRecipe {
'F', InputItem6,
'G', InputItem7,
'H', InputItem8,
- 'I', InputItem9});
+ 'I', InputItem9});
+ }
+
+ public static void addShapelessGregtechRecipe(ItemStack OutputItem, Object... inputItems){
+
+ for(Object whatever : inputItems){
+ if (!(whatever instanceof ItemStack) && !(whatever instanceof String)){
+ Utils.LOG_INFO("One Input item was not an ItemStack of an OreDict String.");
+ return;
+ }
+ }
+
+ GT_ModHandler.addShapelessCraftingRecipe(OutputItem,
+ GT_ModHandler.RecipeBits.BUFFERED | GT_ModHandler.RecipeBits.NOT_REMOVABLE,
+ new Object[]{inputItems});
}
public static ItemStack getItemStackFromOreDict(String oredictName){