aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/recipes
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-09-19 22:30:59 +1000
committerAlkalus <draknyte1@hotmail.com>2017-09-19 22:30:59 +1000
commit287adfe0dfc953cf5261997166b102e85a89bbbe (patch)
treee33610e5e094676aca1bd2b1df466f1e19ebc627 /src/Java/gtPlusPlus/xmod/gregtech/recipes
parent02c6ab32d9d752bd51ac8da077119cb197f99394 (diff)
downloadGT5-Unofficial-287adfe0dfc953cf5261997166b102e85a89bbbe.tar.gz
GT5-Unofficial-287adfe0dfc953cf5261997166b102e85a89bbbe.tar.bz2
GT5-Unofficial-287adfe0dfc953cf5261997166b102e85a89bbbe.zip
+ Added a Cyclotron Recipe handler & a test recipe.
% Changed Cyclotron Tool-tip. % Made Cyclotron IV. % Changed Cyclotron controller texture.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
index 64ee1152f6..16b38d06bc 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -3,6 +3,7 @@ package gtPlusPlus.xmod.gregtech.recipes;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Materials;
import gregtech.api.util.CustomRecipeMap;
+import gregtech.api.util.GT_Recipe;
import gregtech.api.util.Recipe_GT;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.item.ItemUtils;
@@ -326,5 +327,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
CustomRecipeMap.sFissionFuelProcessing.addRecipe(null, inputs, outputs, aDuration, aEUt, 0);
return true;
}
+
+ public boolean addCyclotronRecipe(ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
+ if ((aInput == null) || (aOutputs == null) || (aFluidInput == null)) {
+ return false;
+ }
+ for (ItemStack tStack : aOutputs) {
+ if (tStack != null) {
+ if ((aDuration = GregTech_API.sRecipeFile.get("cyclotron", aInput, aDuration)) <= 0) {
+ return false;
+ }
+ Recipe_GT.Gregtech_Recipe_Map.sCyclotronRecipes.addRecipe(true, new ItemStack[] { aInput }, aOutputs,
+ null, aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput },
+ Math.max(1, aDuration), Math.max(1, aEUt), aSpecialValue);
+ return true;
+ }
+ }
+ return false;
+ }
}