aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/recipes
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2016-11-03 00:16:36 +1000
committerdraknyte1 <draknyte1@hotmail.com>2016-11-03 00:16:36 +1000
commitc043d88a57a690b1f40cdcd997cdf00cfe06ad09 (patch)
treec141a5cc008ca5b5c79271abe96bc6e469658f24 /src/Java/gtPlusPlus/xmod/gregtech/recipes
parent8f5e03f5b792738955b1578f6fd98434b566afb8 (diff)
downloadGT5-Unofficial-c043d88a57a690b1f40cdcd997cdf00cfe06ad09.tar.gz
GT5-Unofficial-c043d88a57a690b1f40cdcd997cdf00cfe06ad09.tar.bz2
GT5-Unofficial-c043d88a57a690b1f40cdcd997cdf00cfe06ad09.zip
+ Added support for using items as input for the Matter fabricator.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java18
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 bf752c2c79..b9a8ac7a1e 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -107,6 +107,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
+ public boolean addMatterFabricatorRecipe(ItemStack aInputStack, FluidStack aFluidInput, FluidStack aFluidOutput, int aDuration, int aEUt) {
+ try {
+ try {if (aFluidOutput == null || aInputStack == null) {return false;}} catch (NullPointerException e){}
+ try{
+ if (aFluidInput == null){
+ Recipe_GT.Gregtech_Recipe_Map.sMatterFab2Recipes.addRecipe(true, new ItemStack[]{aInputStack}, null, null, null, new FluidStack[]{aFluidOutput}, aDuration, aEUt, 0);
+ }
+ else {
+ Recipe_GT.Gregtech_Recipe_Map.sMatterFab2Recipes.addRecipe(true, new ItemStack[]{aInputStack}, null, null, new FluidStack[]{aFluidInput}, new FluidStack[]{aFluidOutput}, aDuration, aEUt, 0);
+ }
+ RECIPEHANDLER_MatterFabricator.debug5(aFluidInput, aFluidOutput, aDuration, aEUt);
+ return true;
+ } catch (NullPointerException e){return false;}
+ } catch (Throwable e){return false;}
+ }
+
+
+ @Override
public boolean addFuel(ItemStack aInput1, ItemStack aOutput1, int aEU, int aType) {
if (aInput1 == null) {
Utils.LOG_INFO("Fuel Input is Invalid.");