aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/recipes
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-28 19:32:44 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-28 19:32:44 -0800
commit55f64675b42ac8d3c557cc850f78664bee006f6f (patch)
tree2afd26dd3d5e6f763119bc192b57c66a1a075922 /src/main/java/gtPlusPlus/xmod/gregtech/recipes
parent0f5dfd01b877b6a1019e0671b88d07974aae68c0 (diff)
downloadGT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.tar.gz
GT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.tar.bz2
GT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/recipes')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java1498
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java33
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_AssemblyLine.java11
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_CokeOven.java131
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_Dehydrator.java131
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_MatterFabricator.java71
6 files changed, 905 insertions, 970 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
index 4c95ea4f22..e836112814 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -4,6 +4,16 @@ import static gregtech.GT_Mod.GT_FML_LOGGER;
import static gregtech.api.enums.GT_Values.RA;
import static gtPlusPlus.core.lib.CORE.GTNH;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.FluidStack;
+import net.minecraftforge.oredict.OreDictionary;
+
import gregtech.api.GregTech_API;
import gregtech.api.enums.ConfigCategories;
import gregtech.api.enums.GT_Values;
@@ -32,26 +42,12 @@ import gtPlusPlus.xmod.gregtech.common.StaticFields59;
import gtPlusPlus.xmod.gregtech.common.helpers.FlotationRecipeHandler;
import gtPlusPlus.xmod.gregtech.common.tileentities.generators.GregtechMetaTileEntity_RTG;
import gtPlusPlus.xmod.gregtech.recipes.machines.RECIPEHANDLER_MatterFabricator;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.fluids.FluidStack;
-import net.minecraftforge.oredict.OreDictionary;
public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
- public boolean addCokeOvenRecipe(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- int aDuration,
- final int aEUt) {
+ public boolean addCokeOvenRecipe(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, int aDuration, final int aEUt) {
try {
try {
// RECIPEHANDLER_CokeOven.debug1();
@@ -91,10 +87,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
try {
// RECIPEHANDLER_CokeOven.debug3(aInput1, aInput2, aFluidInput,
// aFluidOutput, aOutput, aDuration, aEUt);
- if ((aFluidOutput == null)
- || ((aDuration = GregTech_API.sRecipeFile.get(
- "cokeoven", aFluidOutput.getFluid().getName(), aDuration))
- <= 0)) {
+ if ((aFluidOutput == null) || ((aDuration = GregTech_API.sRecipeFile
+ .get("cokeoven", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) {
// Utils.LOG_WARNING("aInput1:"+aInput1.toString()+"
// aInput2:"+aInput2.toString()+"
// aFluidInput:"+aFluidInput.toString()+"
@@ -112,12 +106,12 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GTPP_Recipe aSpecialRecipe = new GTPP_Recipe(
true,
- new ItemStack[] {aInput1, aInput2},
- new ItemStack[] {aOutput},
+ new ItemStack[] { aInput1, aInput2 },
+ new ItemStack[] { aOutput },
null,
new int[] {},
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
@@ -129,21 +123,17 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
// RECIPEHANDLER_CokeOven.debug4(aInput1, aInput2, aFluidInput,
// aFluidOutput, aOutput, aDuration, aEUt);
- /*if (aFluidInput == null && aInput2 != null) {
- GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput }, null, null, null, new FluidStack[] { aFluidOutput }, aDuration,
- aEUt, 0);
- }
- else if (aFluidInput == null && aInput2 == null) {
- GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1 },
- new ItemStack[] { aOutput }, null, null, null, new FluidStack[] { aFluidOutput }, aDuration,
- aEUt, 0);
- }
- else {
- GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 },
- new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput },
- new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0);
- }*/
+ /*
+ * if (aFluidInput == null && aInput2 != null) {
+ * GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1, aInput2 },
+ * new ItemStack[] { aOutput }, null, null, null, new FluidStack[] { aFluidOutput }, aDuration, aEUt,
+ * 0); } else if (aFluidInput == null && aInput2 == null) {
+ * GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1 }, new
+ * ItemStack[] { aOutput }, null, null, null, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); }
+ * else { GTPP_Recipe.GTPP_Recipe_Map.sCokeOvenRecipes.addRecipe(true, new ItemStack[] { aInput1,
+ * aInput2 }, new ItemStack[] { aOutput }, null, null, new FluidStack[] { aFluidInput }, new
+ * FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); }
+ */
// RECIPEHANDLER_CokeOven.debug5(aInput1, aInput2, aFluidInput,
// aFluidOutput, aOutput, aDuration, aEUt);
@@ -167,30 +157,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addCokeOvenRecipe(
- int aCircuit,
- ItemStack aInput2,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int aDuration,
- int aEUt) {
+ public boolean addCokeOvenRecipe(int aCircuit, ItemStack aInput2, FluidStack[] aFluidInputs,
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
return addCokeOvenRecipe(
- aInput2, CI.getNumberedCircuit(aCircuit), aFluidInputs, aFluidOutputs, aOutputs, aDuration, aEUt);
+ aInput2,
+ CI.getNumberedCircuit(aCircuit),
+ aFluidInputs,
+ aFluidOutputs,
+ aOutputs,
+ aDuration,
+ aEUt);
}
@Override
- public boolean addCokeOvenRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int aDuration,
- int aEUt) {
+ public boolean addCokeOvenRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack[] aFluidInputs,
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int aDuration, int aEUt) {
GTPP_Recipe aSpecialRecipe = new GTPP_Recipe(
true,
- new ItemStack[] {aInput1, aInput2},
+ new ItemStack[] { aInput1, aInput2 },
aOutputs,
null,
new int[] {},
@@ -205,8 +189,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addMatterFabricatorRecipe(
- final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
+ public boolean addMatterFabricatorRecipe(final FluidStack aFluidInput, final FluidStack aFluidOutput,
+ final int aDuration, final int aEUt) {
try {
try {
// RECIPEHANDLER_MatterFabricator.debug1();
@@ -237,7 +221,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
null,
new int[] {},
new FluidStack[] {},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
0);
@@ -252,8 +236,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
new ItemStack[] {},
null,
new int[] {},
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
0);
@@ -277,29 +261,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addMatterFabricatorRecipe(
- final ItemStack aInputStack,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final int aDuration,
- final int aEUt) {
+ public boolean addMatterFabricatorRecipe(final ItemStack aInputStack, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
try {
try {
if ((aFluidOutput == null) || (aInputStack == null)) {
return false;
}
- } catch (final NullPointerException e) {
- }
+ } catch (final NullPointerException e) {}
try {
if (aFluidInput == null) {
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInputStack},
+ new ItemStack[] { aInputStack },
new ItemStack[] {},
null,
new int[] {},
new FluidStack[] {},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
0);
@@ -307,12 +286,12 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
} else {
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInputStack},
+ new ItemStack[] { aInputStack },
new ItemStack[] {},
null,
new int[] {},
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
0);
@@ -340,83 +319,43 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
/*
- * @Override public boolean addDehydratorRecipe(ItemStack aItemA, ItemStack
- * aItemB, FluidStack aFluid, ItemStack[] aOutputItems, FluidStack
- * aOutputFluid, int aDuration, int aEUt) { if ((aItemA == null) || (aItemB
- * == null) || (aOutputItems == null)) { return false; } for (ItemStack
- * tStack : aOutputItems) { if (tStack != null) { if ((aDuration =
- * GregTech_API.sRecipeFile.get("dehydrator", aItemA, aDuration)) <= 0) {
- * return false; }
- * Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true,
- * new ItemStack[]{aItemA, aItemB}, aOutputItems, null, null, null,
- * aDuration, aEUt, 0); RECIPEHANDLER_Dehydrator.debug5(aItemA, aItemB,
- * aFluid, aOutputFluid, aOutputItems, aDuration, aEUt); return true; } }
- * return false; }
- * @Override public boolean addDehydratorRecipe(ItemStack aItemA, ItemStack
- * aItemB, ItemStack[] aOutputItems, int aDuration, int aEUt) { if ((aItemA
- * == null) || (aItemB == null) || (aOutputItems == null)) { return false; }
- * if ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aItemA,
- * aDuration)) <= 0) { return false; }
- * Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true,
- * new ItemStack[]{aItemA, aItemB}, aOutputItems, null, null, null,
- * aDuration, aEUt, 0); RECIPEHANDLER_Dehydrator.debug5(aItemA, aItemB,
- * null, null, aOutputItems, aDuration, aEUt); return true; }
- * @Override public boolean addDehydratorRecipe(FluidStack aFluid,
- * FluidStack aOutputFluid, ItemStack[] aOutputItems, int aDuration, int
- * aEUt){ if ((aFluid == null) || (aOutputFluid == null || aOutputItems ==
- * null)) { return false; } if ((aDuration =
- * GregTech_API.sRecipeFile.get("dehydrator", aFluid.getUnlocalizedName(),
- * aDuration)) <= 0) { return false; }
- * Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true,
- * null, aOutputItems, null, new FluidStack[]{aFluid}, new
- * FluidStack[]{aOutputFluid}, aDuration, aEUt, 0);
- * RECIPEHANDLER_Dehydrator.debug5(null, null, aFluid, aOutputFluid,
+ * @Override public boolean addDehydratorRecipe(ItemStack aItemA, ItemStack aItemB, FluidStack aFluid, ItemStack[]
+ * aOutputItems, FluidStack aOutputFluid, int aDuration, int aEUt) { if ((aItemA == null) || (aItemB == null) ||
+ * (aOutputItems == null)) { return false; } for (ItemStack tStack : aOutputItems) { if (tStack != null) { if
+ * ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aItemA, aDuration)) <= 0) { return false; }
+ * Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, new ItemStack[]{aItemA, aItemB},
+ * aOutputItems, null, null, null, aDuration, aEUt, 0); RECIPEHANDLER_Dehydrator.debug5(aItemA, aItemB, aFluid,
+ * aOutputFluid, aOutputItems, aDuration, aEUt); return true; } } return false; }
+ * @Override public boolean addDehydratorRecipe(ItemStack aItemA, ItemStack aItemB, ItemStack[] aOutputItems, int
+ * aDuration, int aEUt) { if ((aItemA == null) || (aItemB == null) || (aOutputItems == null)) { return false; } if
+ * ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aItemA, aDuration)) <= 0) { return false; }
+ * Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, new ItemStack[]{aItemA, aItemB},
+ * aOutputItems, null, null, null, aDuration, aEUt, 0); RECIPEHANDLER_Dehydrator.debug5(aItemA, aItemB, null, null,
* aOutputItems, aDuration, aEUt); return true; }
+ * @Override public boolean addDehydratorRecipe(FluidStack aFluid, FluidStack aOutputFluid, ItemStack[]
+ * aOutputItems, int aDuration, int aEUt){ if ((aFluid == null) || (aOutputFluid == null || aOutputItems == null)) {
+ * return false; } if ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aFluid.getUnlocalizedName(),
+ * aDuration)) <= 0) { return false; } Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true,
+ * null, aOutputItems, null, new FluidStack[]{aFluid}, new FluidStack[]{aOutputFluid}, aDuration, aEUt, 0);
+ * RECIPEHANDLER_Dehydrator.debug5(null, null, aFluid, aOutputFluid, aOutputItems, aDuration, aEUt); return true; }
+ */
+
+ /*
+ * @Override public boolean addDehydratorRecipe(final ItemStack aInput, final FluidStack aFluid, final ItemStack[]
+ * aOutput, int aDuration, final int aEUt) { Logger.WARNING("Trying to add a Dehydrator recipe."); try { if ((aInput
+ * == null) || (aFluid == null) || (aOutput == null)) { return false; } if ((aDuration =
+ * GregTech_API.sRecipeFile.get("dehydrator", aInput, aDuration)) <= 0) { return false; } GTPP_Recipe aRecipe = new
+ * GTPP_Recipe( false, new ItemStack[] { aInput }, aOutput, null, new int[] {}, new FluidStack[] { aFluid }, new
+ * FluidStack[] {}, aDuration, aEUt, 0); GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(aRecipe);
+ * // RECIPEHANDLER_Dehydrator.debug5(aInput, null, aFluid, null, // aOutput, aDuration, aEUt); return true; } catch
+ * (final NullPointerException e) { Logger.WARNING("FAILED TO LOAD RECIPES - NULL POINTER SOMEWHERE"); return false;
+ * } }
*/
- /*@Override
- public boolean addDehydratorRecipe(final ItemStack aInput, final FluidStack aFluid, final ItemStack[] aOutput,
- int aDuration, final int aEUt) {
- Logger.WARNING("Trying to add a Dehydrator recipe.");
- try {
- if ((aInput == null) || (aFluid == null) || (aOutput == null)) {
- return false;
- }
- if ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aInput, aDuration)) <= 0) {
- return false;
- }
- GTPP_Recipe aRecipe = new GTPP_Recipe(
- false,
- new ItemStack[] { aInput },
- aOutput,
- null,
- new int[] {},
- new FluidStack[] { aFluid },
- new FluidStack[] {},
- aDuration,
- aEUt,
- 0);
- GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(aRecipe);
- // RECIPEHANDLER_Dehydrator.debug5(aInput, null, aFluid, null,
- // aOutput, aDuration, aEUt);
- return true;
- }
- catch (final NullPointerException e) {
- Logger.WARNING("FAILED TO LOAD RECIPES - NULL POINTER SOMEWHERE");
- return false;
- }
- }*/
-
- @Override
- public boolean addDehydratorRecipe(
- final ItemStack[] aInput,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack[] aOutputItems,
- final int[] aChances,
- int aDuration,
- final int aEUt)
- throws IndexOutOfBoundsException {
+ @Override
+ public boolean addDehydratorRecipe(final ItemStack[] aInput, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack[] aOutputItems, final int[] aChances, int aDuration,
+ final int aEUt) throws IndexOutOfBoundsException {
Logger.WARNING("Trying to add a Dehydrator recipe.");
try {
if (aInput != null && aInput.length > 0) {
@@ -431,8 +370,11 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
}
if (aFluidInput != null) {
- Logger.WARNING("Recipe requires input: "
- + aFluidInput.getFluid().getName() + " " + aFluidInput.amount + "mbs");
+ Logger.WARNING(
+ "Recipe requires input: " + aFluidInput.getFluid().getName()
+ + " "
+ + aFluidInput.amount
+ + "mbs");
}
if (((aInput == null || aInput.length == 0) && (aFluidInput == null))
|| ((aOutputItems == null || aOutputItems.length == 0) && (aFluidOutput == null))) {
@@ -451,8 +393,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
aOutputItems,
null,
aChances,
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
@@ -462,19 +404,14 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.add(aSpecialRecipe);
aSize = GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.mRecipeList.size();
- /*if (aInput.length == 1) {
- Logger.WARNING("Dehydrator recipe only has a single input item.");
- GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null,
- aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt,
- 0);
-
- }
- else {
- Logger.WARNING("Dehydrator recipe has two input items.");
- GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null,
- aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt,
- 0);
- }*/
+ /*
+ * if (aInput.length == 1) { Logger.WARNING("Dehydrator recipe only has a single input item.");
+ * GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null,
+ * aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); }
+ * else { Logger.WARNING("Dehydrator recipe has two input items.");
+ * GTPP_Recipe.GTPP_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null,
+ * aChances, new FluidStack[] { aFluidInput }, new FluidStack[] { aFluidOutput }, aDuration, aEUt, 0); }
+ */
return aSize > aSize2;
} catch (final NullPointerException e) {
@@ -484,128 +421,124 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addBlastSmelterRecipe(
- final ItemStack[] aInput, FluidStack aOutput, final int aChance, int aDuration, final int aEUt) {
+ public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aOutput, final int aChance, int aDuration,
+ final int aEUt) {
return addBlastSmelterRecipe(
- aInput, (FluidStack) null, aOutput, new ItemStack[] {}, new int[] {aChance}, aDuration, aEUt, 3700);
+ aInput,
+ (FluidStack) null,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
- public boolean addBlastSmelterRecipe(
- final ItemStack[] aInput,
- FluidStack aInputFluid,
- FluidStack aOutput,
- final int aChance,
- int aDuration,
- final int aEUt) {
+ public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
+ final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, new ItemStack[] {}, new int[] {aChance}, aDuration, aEUt, 3700);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
- public boolean addBlastSmelterRecipe(
- final ItemStack[] aInput,
- FluidStack[] aInputFluid,
- FluidStack aOutput,
- final int aChance,
- int aDuration,
- final int aEUt) {
+ public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
+ final int aChance, int aDuration, final int aEUt) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, new ItemStack[] {}, new int[] {aChance}, aDuration, aEUt, 3700);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ 3700);
}
@Override
- public boolean addBlastSmelterRecipe(
- final ItemStack[] aInput,
- FluidStack aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- final int aChance[],
- int aDuration,
- final int aEUt) {
+ public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, final int aChance[], int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
- public boolean addBlastSmelterRecipe(
- final ItemStack[] aInput,
- FluidStack[] aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- final int aChance[],
- int aDuration,
- final int aEUt) {
+ public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, final int aChance[], int aDuration, final int aEUt) {
return addBlastSmelterRecipe(aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, 3700);
}
@Override
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack aInputFluid,
- FluidStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, int aChance,
+ int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, new ItemStack[] {}, new int[] {aChance}, aDuration, aEUt, aSpecialValue);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ aSpecialValue);
}
@Override
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack[] aInputFluid,
- FluidStack aOutput,
- int aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput, int aChance,
+ int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, new ItemStack[] {}, new int[] {aChance}, aDuration, aEUt, aSpecialValue);
+ aInput,
+ aInputFluid,
+ aOutput,
+ new ItemStack[] {},
+ new int[] { aChance },
+ aDuration,
+ aEUt,
+ aSpecialValue);
}
@Override
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- int[] aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, aSpecialValue, true);
+ aInput,
+ aInputFluid,
+ aOutput,
+ aOutputStack,
+ aChance,
+ aDuration,
+ aEUt,
+ aSpecialValue,
+ true);
}
@Override
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack[] aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- int[] aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue) {
return addBlastSmelterRecipe(
- aInput, aInputFluid, aOutput, aOutputStack, aChance, aDuration, aEUt, aSpecialValue, true);
+ aInput,
+ aInputFluid,
+ aOutput,
+ aOutputStack,
+ aChance,
+ aDuration,
+ aEUt,
+ aSpecialValue,
+ true);
}
@Override
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- int[] aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue,
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
boolean aOptimizeRecipe) {
return addBlastSmelterRecipe(
aInput,
- new FluidStack[] {aInputFluid},
+ new FluidStack[] { aInputFluid },
aOutput,
aOutputStack,
aChance,
@@ -615,15 +548,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
aOptimizeRecipe);
}
- public boolean addBlastSmelterRecipe(
- ItemStack[] aInput,
- FluidStack[] aInputFluid,
- FluidStack aOutput,
- ItemStack[] aOutputStack,
- int[] aChance,
- int aDuration,
- int aEUt,
- int aSpecialValue,
+ public boolean addBlastSmelterRecipe(ItemStack[] aInput, FluidStack[] aInputFluid, FluidStack aOutput,
+ ItemStack[] aOutputStack, int[] aChance, int aDuration, int aEUt, int aSpecialValue,
boolean aOptimizeRecipe) {
if ((aInput == null) || (aOutput == null)) {
Logger.WARNING("Fail - Input or Output was null.");
@@ -636,17 +562,19 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
if (aOutput.isFluidEqual(Materials.PhasedIron.getMolten(1))) {
aOutput = Materials.PulsatingIron.getMolten(aOutput.amount);
}
- if ((aDuration = GregTech_API.sRecipeFile.get(
- "blastsmelter", aOutput.getFluid().getName(), aDuration))
- <= 0) {
+ if ((aDuration = GregTech_API.sRecipeFile.get("blastsmelter", aOutput.getFluid().getName(), aDuration)) <= 0) {
Logger.WARNING("Recipe did not register.");
return false;
}
for (int das = 0; das < aInput.length; das++) {
if (aInput[das] != null) {
- Logger.WARNING("tMaterial[" + das + "]: " + aInput[das].getDisplayName() + ", Amount: "
- + aInput[das].stackSize);
+ Logger.WARNING(
+ "tMaterial[" + das
+ + "]: "
+ + aInput[das].getDisplayName()
+ + ", Amount: "
+ + aInput[das].stackSize);
}
}
@@ -664,7 +592,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
null,
aChance,
aInputFluid,
- new FluidStack[] {aOutput},
+ new FluidStack[] { aOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
aSpecialValue);
@@ -674,15 +602,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addQuantumTransformerRecipe(
- ItemStack[] aInput,
- FluidStack[] aFluidInput,
- FluidStack[] aFluidOutput,
- ItemStack[] aOutputStack,
- int[] aChances,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addQuantumTransformerRecipe(ItemStack[] aInput, FluidStack[] aFluidInput, FluidStack[] aFluidOutput,
+ ItemStack[] aOutputStack, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aInput == null) {
aInput = new ItemStack[0];
}
@@ -692,7 +613,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
// if (aInput.length + aFluidInput.length < 1) {
- // return false;
+ // return false;
// }
if (aOutputStack == null) {
@@ -704,107 +625,91 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
// if (aOutputStack.length + aFluidOutput.length < 4) {
- // return false;
+ // return false;
// }
// if (aChances == null || aChances.length != aOutputStack.length + aFluidOutput.length) {
- // return false;
+ // return false;
// }
- GTPP_Recipe.GTPP_Recipe_Map.sQuantumForceTransformerRecipes.add(new GT_Recipe(
- false,
- aInput,
- aOutputStack,
- null,
- aChances,
- aFluidInput,
- aFluidOutput,
- aDuration,
- aEUt,
- aSpecialValue));
+ GTPP_Recipe.GTPP_Recipe_Map.sQuantumForceTransformerRecipes.add(
+ new GT_Recipe(
+ false,
+ aInput,
+ aOutputStack,
+ null,
+ aChances,
+ aFluidInput,
+ aFluidOutput,
+ aDuration,
+ aEUt,
+ aSpecialValue));
return true;
}
@Override
- public boolean addLFTRRecipe(
- final ItemStack aInput1,
- final FluidStack aInput2,
- final ItemStack aOutput1,
- final FluidStack aOutput2,
- final int aDuration,
- final int aEUt) {
+ public boolean addLFTRRecipe(final ItemStack aInput1, final FluidStack aInput2, final ItemStack aOutput1,
+ final FluidStack aOutput2, final int aDuration, final int aEUt) {
// TODO Auto-generated method stub
return false;
}
@Override
- public boolean addLFTRRecipe(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final ItemStack aOutput1,
- final int aDuration,
- final int aEUt) {
+ public boolean addLFTRRecipe(final ItemStack aInput1, final ItemStack aInput2, final ItemStack aOutput1,
+ final int aDuration, final int aEUt) {
return false;
}
@Override
- public boolean addLFTRRecipe(
- final FluidStack aInput1,
- final FluidStack aInput2,
- final FluidStack aOutput1,
- final int aDuration,
- final int aEUt) {
+ public boolean addLFTRRecipe(final FluidStack aInput1, final FluidStack aInput2, final FluidStack aOutput1,
+ final int aDuration, final int aEUt) {
if ((aInput1 == null) || (aInput2 == null) || (aOutput1 == null) || (aDuration < 1) || (aEUt < 1)) {
return false;
}
GTPP_Recipe.GTPP_Recipe_Map.sLiquidFluorineThoriumReactorRecipes.addRecipe(
- null, new FluidStack[] {aInput1, aInput2}, new FluidStack[] {aOutput1}, aDuration, aEUt, 16000);
+ null,
+ new FluidStack[] { aInput1, aInput2 },
+ new FluidStack[] { aOutput1 },
+ aDuration,
+ aEUt,
+ 16000);
return true;
}
@Override
- public boolean addFissionFuel(
- final FluidStack aInput1,
- final FluidStack aInput2,
- final FluidStack aInput3,
- final FluidStack aInput4,
- final FluidStack aInput5,
- final FluidStack aInput6,
- final FluidStack aInput7,
- final FluidStack aInput8,
- final FluidStack aInput9,
- final FluidStack aOutput1,
- final FluidStack aOutput2,
- final int aDuration,
- final int aEUt) {
+ public boolean addFissionFuel(final FluidStack aInput1, final FluidStack aInput2, final FluidStack aInput3,
+ final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6, final FluidStack aInput7,
+ final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1, final FluidStack aOutput2,
+ final int aDuration, final int aEUt) {
return addFissionFuel(
- false, aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9, aOutput1,
- aOutput2, aDuration, aEUt);
- }
-
- @Override
- public boolean addFissionFuel(
- final boolean aOptimise,
- final FluidStack aInput1,
- final FluidStack aInput2,
- final FluidStack aInput3,
- final FluidStack aInput4,
- final FluidStack aInput5,
- final FluidStack aInput6,
- final FluidStack aInput7,
- final FluidStack aInput8,
- final FluidStack aInput9,
- final FluidStack aOutput1,
- final FluidStack aOutput2,
- final int aDuration,
- final int aEUt) {
+ false,
+ aInput1,
+ aInput2,
+ aInput3,
+ aInput4,
+ aInput5,
+ aInput6,
+ aInput7,
+ aInput8,
+ aInput9,
+ aOutput1,
+ aOutput2,
+ aDuration,
+ aEUt);
+ }
+
+ @Override
+ public boolean addFissionFuel(final boolean aOptimise, final FluidStack aInput1, final FluidStack aInput2,
+ final FluidStack aInput3, final FluidStack aInput4, final FluidStack aInput5, final FluidStack aInput6,
+ final FluidStack aInput7, final FluidStack aInput8, final FluidStack aInput9, final FluidStack aOutput1,
+ final FluidStack aOutput2, final int aDuration, final int aEUt) {
if ((aInput1 == null) || (aOutput1 == null) || (aDuration < 1) || (aEUt < 1)) {
return false;
}
- final FluidStack inputs[] = {aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9};
- final FluidStack outputs[] = {aOutput1, aOutput2};
+ final FluidStack inputs[] = { aInput1, aInput2, aInput3, aInput4, aInput5, aInput6, aInput7, aInput8, aInput9 };
+ final FluidStack outputs[] = { aOutput1, aOutput2 };
int aSize = GTPP_Recipe.GTPP_Recipe_Map.sFissionFuelProcessing.mRecipeList.size();
int aSize2 = aSize;
@@ -829,17 +734,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addCyclotronRecipe(
- ItemStack aInputs,
- FluidStack aFluidInput,
- ItemStack[] aOutputs,
- FluidStack aFluidOutput,
- int[] aChances,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addCyclotronRecipe(ItemStack aInputs, FluidStack aFluidInput, ItemStack[] aOutputs,
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
return addCyclotronRecipe(
- new ItemStack[] {aInputs},
+ new ItemStack[] { aInputs },
aFluidInput,
aOutputs,
aFluidOutput,
@@ -850,15 +748,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addCyclotronRecipe(
- ItemStack[] aInputs,
- FluidStack aFluidInput,
- ItemStack[] aOutput,
- FluidStack aFluidOutput,
- int[] aChances,
- int aDuration,
- int aEUt,
- int aSpecialValue) {
+ public boolean addCyclotronRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack[] aOutput,
+ FluidStack aFluidOutput, int[] aChances, int aDuration, int aEUt, int aSpecialValue) {
if (aOutput == null || aOutput.length < 1 || !ItemUtils.checkForInvalidItems(aOutput)) {
Logger.INFO("Bad output for Cyclotron Recipe.");
return false;
@@ -870,8 +761,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
aOutput,
null,
aChances,
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
aSpecialValue);
@@ -891,30 +782,20 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addMixerRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- ItemStack aInput3,
- ItemStack aInput4,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- ItemStack aOutput3,
- ItemStack aOutput4,
- int aDuration,
- int aEUt) {
+ public boolean addMixerRecipe(ItemStack aInput1, ItemStack aInput2, ItemStack aInput3, ItemStack aInput4,
+ FluidStack aFluidInput, FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3,
+ ItemStack aOutput4, int aDuration, int aEUt) {
if (((aInput1 == null) && (aFluidInput == null)) || ((aOutput1 == null) && (aFluidOutput == null))) {
return false;
}
GTPP_Recipe aSpecialRecipe = new GTPP_Recipe(
true,
- new ItemStack[] {aInput1, aInput2, aInput3, aInput4},
- new ItemStack[] {aOutput1, aOutput2, aOutput3, aOutput4},
+ new ItemStack[] { aInput1, aInput2, aInput3, aInput4 },
+ new ItemStack[] { aOutput1, aOutput2, aOutput3, aOutput4 },
null,
new int[] {},
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
Math.max(1, aDuration),
Math.max(1, aEUt),
0);
@@ -926,9 +807,9 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
// Machine Component Assembler
@Override
- public boolean addComponentMakerRecipe(
- ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1, int aDuration, int aEUt) {
- if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] {aFluidInput})) {
+ public boolean addComponentMakerRecipe(ItemStack[] aInputs, FluidStack aFluidInput, ItemStack aOutput1,
+ int aDuration, int aEUt) {
+ if (areItemsAndFluidsBothNull(aInputs, new FluidStack[] { aFluidInput })) {
return false;
}
if (aOutput1 == null) {
@@ -943,10 +824,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
aInputs,
- new ItemStack[] {aOutput1},
+ new ItemStack[] { aOutput1 },
null,
new int[] {},
- new FluidStack[] {aFluidInput},
+ new FluidStack[] { aFluidInput },
new FluidStack[] {},
aDuration,
aEUt,
@@ -955,17 +836,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return true;
}
- public boolean addMultiblockCentrifugeRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int[] aChances,
- int aDuration,
- int aEUtick,
+ public boolean addMultiblockCentrifugeRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
int aSpecial) {
- if (areItemsAndFluidsBothNull(aInputs, aFluidInputs)
- || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
+ if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
@@ -980,7 +854,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT.addRecipe(aRecipe);
// GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes.addRecipe(true, aInputs, aOutputs, null, aChances,
@@ -988,17 +871,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return true;
}
- public boolean addMultiblockElectrolyzerRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int[] aChances,
- int aDuration,
- int aEUtick,
+ public boolean addMultiblockElectrolyzerRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
int aSpecial) {
- if (areItemsAndFluidsBothNull(aInputs, aFluidInputs)
- || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
+ if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
@@ -1012,24 +888,25 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPP_Recipe.GTPP_Recipe_Map.sMultiblockElectrolyzerRecipes_GT.addRecipe(aRecipe);
// GTPP_Recipe.GTPP_Recipe_Map.sMultiblockElectrolyzerRecipes.addRecipe(true, aInputs, aOutputs, null, aChances,
// aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
return true;
}
- public boolean addAdvancedFreezerRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int[] aChances,
- int aDuration,
- int aEUtick,
- int aSpecial) {
- if (areItemsAndFluidsBothNull(aInputs, aFluidInputs)
- || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
+ public boolean addAdvancedFreezerRecipe(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;
}
@@ -1044,25 +921,27 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPP_Recipe.GTPP_Recipe_Map.sAdvFreezerRecipes_GT.addRecipe(aRecipe);
- /*if (GTPP_Recipe.GTPP_Recipe_Map.sAdvFreezerRecipes.addRecipe(true, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial) != null) {
- return true;
- }*/
+ /*
+ * if (GTPP_Recipe.GTPP_Recipe_Map.sAdvFreezerRecipes.addRecipe(true, aInputs, aOutputs, null, aChances,
+ * aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial) != null) { return true; }
+ */
return false;
}
- 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)
+ 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;
}
@@ -1076,22 +955,24 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPP_Recipe.GTPP_Recipe_Map.sMultiblockMixerRecipes_GT.addRecipe(aRecipe);
return true;
}
- public boolean addMultiblockChemicalDehydratorRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- FluidStack[] aFluidOutputs,
- ItemStack[] aOutputs,
- int[] aChances,
- int aDuration,
- int aEUtick,
+ public boolean addMultiblockChemicalDehydratorRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs,
+ FluidStack[] aFluidOutputs, ItemStack[] aOutputs, int[] aChances, int aDuration, int aEUtick,
int aSpecial) {
- if (areItemsAndFluidsBothNull(aInputs, aFluidInputs)
- || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
+ if (areItemsAndFluidsBothNull(aInputs, aFluidInputs) || areItemsAndFluidsBothNull(aOutputs, aFluidOutputs)
|| aEUtick <= 0) {
return false;
}
@@ -1105,13 +986,22 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, aChances, aFluidInputs, aFluidOutputs, aDuration, aEUtick, aSpecial);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUtick,
+ aSpecial);
GTPP_Recipe.GTPP_Recipe_Map.sMultiblockChemicalDehydratorRecipes.addRecipe(aRecipe);
return true;
}
- public boolean addAssemblerRecipeWithOreDict(
- Object aInput1, int aAmount1, Object aInput2, int aAmount2, ItemStack aOutput, int a1, int a2) {
+ 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;
if (aInput1 instanceof String && aInput2 instanceof String) {
@@ -1156,15 +1046,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
}
- public boolean addAssemblerRecipeWithOreDict(
- Object aInput1,
- int aAmount1,
- Object aInput2,
- int aAmount2,
- FluidStack aInputFluid,
- ItemStack aOutput,
- int a1,
- int a2) {
+ public boolean addAssemblerRecipeWithOreDict(Object aInput1, int aAmount1, Object aInput2, int aAmount2,
+ FluidStack aInputFluid, ItemStack aOutput, int a1, int a2) {
if (aInput1 instanceof String || aInput2 instanceof String) {
int mCompleted = 0;
if (aInput1 instanceof String && aInput2 instanceof String) {
@@ -1205,8 +1088,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
return mCompleted > 0;
} else {
- return GT_Values.RA.addAssemblerRecipe(
- (ItemStack) aInput1, (ItemStack) aInput2, aInputFluid, aOutput, a1, a2);
+ return GT_Values.RA
+ .addAssemblerRecipe((ItemStack) aInput1, (ItemStack) aInput2, aInputFluid, aOutput, a1, a2);
}
}
@@ -1281,8 +1164,13 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
Method[] aDump = TTRecipeAdder.getDeclaredMethods();
for (Method m : aDump) {
if (m != null) {
- Logger.INFO("Found " + m.getName() + " | " + m.getModifiers() + " | "
- + ArrayUtils.toString(m.getParameters(), "EMPTY") + "");
+ Logger.INFO(
+ "Found " + m.getName()
+ + " | "
+ + m.getModifiers()
+ + " | "
+ + ArrayUtils.toString(m.getParameters(), "EMPTY")
+ + "");
if (m.getName().toLowerCase().equals("addresearchableassemblylinerecipe")) {
Logger.INFO("Types: " + ArrayUtils.toString(m.getParameterTypes()));
}
@@ -1346,13 +1234,13 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
}
- public boolean addSixSlotAssemblingRecipe(
- ItemStack[] aInputs, FluidStack aInputFluid, ItemStack aOutput1, int aDuration, int aEUt) {
+ public boolean addSixSlotAssemblingRecipe(ItemStack[] aInputs, FluidStack aInputFluid, ItemStack aOutput1,
+ int aDuration, int aEUt) {
if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK || CORE.GTNH) {
if (mSixSlotAssembly != null) {
try {
- return (boolean)
- mSixSlotAssembly.invoke(GT_Values.RA, aInputs, aInputFluid, aOutput1, aDuration, aEUt);
+ return (boolean) mSixSlotAssembly
+ .invoke(GT_Values.RA, aInputs, aInputFluid, aOutput1, aDuration, aEUt);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
if (CORE.GTNH) {
return false;
@@ -1364,19 +1252,11 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addAssemblylineRecipe(
- ItemStack aResearchItem,
- int aResearchTime,
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack aOutput,
- int aDuration,
- int aEUt) {
- if (GTNH)
- return RA.addAssemblylineRecipe(
- aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
- if ((aResearchItem == null)
- || (aResearchTime <= 0)
+ public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, ItemStack[] aInputs,
+ FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
+ if (GTNH) return RA
+ .addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
+ if ((aResearchItem == null) || (aResearchTime <= 0)
|| (aInputs == null)
|| (aOutput == null)
|| aInputs.length > 15
@@ -1388,15 +1268,18 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
for (ItemStack tItem : aInputs) {
if (tItem == null) {
- GT_FML_LOGGER.info("addAssemblingLineRecipe " + aResearchItem.getDisplayName() + " --> "
- + aOutput.getUnlocalizedName() + " there is some null item in that recipe");
+ GT_FML_LOGGER.info(
+ "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
+ + " --> "
+ + aOutput.getUnlocalizedName()
+ + " there is some null item in that recipe");
}
}
GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe(
false,
- new ItemStack[] {aResearchItem},
- new ItemStack[] {aOutput},
- new ItemStack[] {ItemList.Tool_DataStick.getWithName(1L, "Writes Research result", new Object[0])},
+ new ItemStack[] { aResearchItem },
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result", new Object[0]) },
null,
null,
aResearchTime,
@@ -1405,33 +1288,32 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(
false,
aInputs,
- new ItemStack[] {aOutput},
- new ItemStack[] {ItemList.Tool_DataStick.getWithName(1L, "Reads Research result", new Object[0])},
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result", new Object[0]) },
aFluidInputs,
null,
aDuration,
aEUt,
0,
false);
- GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(new GT_Recipe_AssemblyLine(
- aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt));
+ GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(
+ new GT_Recipe_AssemblyLine(
+ aResearchItem,
+ aResearchTime,
+ aInputs,
+ aFluidInputs,
+ aOutput,
+ aDuration,
+ aEUt));
return true;
}
@Override
- public boolean addAssemblylineRecipe(
- ItemStack aResearchItem,
- int aResearchTime,
- Object[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack aOutput,
- int aDuration,
- int aEUt) {
- if (GTNH)
- return RA.addAssemblylineRecipe(
- aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
- if ((aResearchItem == null)
- || (aResearchTime <= 0)
+ public boolean addAssemblylineRecipe(ItemStack aResearchItem, int aResearchTime, Object[] aInputs,
+ FluidStack[] aFluidInputs, ItemStack aOutput, int aDuration, int aEUt) {
+ if (GTNH) return RA
+ .addAssemblylineRecipe(aResearchItem, aResearchTime, aInputs, aFluidInputs, aOutput, aDuration, aEUt);
+ if ((aResearchItem == null) || (aResearchTime <= 0)
|| (aInputs == null)
|| (aOutput == null)
|| aInputs.length > 15
@@ -1472,18 +1354,20 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
tAlts[i] = uList.toArray(new ItemStack[uList.size()]);
continue;
- } catch (Exception t) {
- }
+ } catch (Exception t) {}
}
}
- GT_FML_LOGGER.info("addAssemblingLineRecipe " + aResearchItem.getDisplayName() + " --> "
- + aOutput.getUnlocalizedName() + " there is some null item in that recipe");
+ GT_FML_LOGGER.info(
+ "addAssemblingLineRecipe " + aResearchItem.getDisplayName()
+ + " --> "
+ + aOutput.getUnlocalizedName()
+ + " there is some null item in that recipe");
}
GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes.addFakeRecipe(
false,
- new ItemStack[] {aResearchItem},
- new ItemStack[] {aOutput},
- new ItemStack[] {ItemList.Tool_DataStick.getWithName(1L, "Writes Research result", new Object[0])},
+ new ItemStack[] { aResearchItem },
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Writes Research result", new Object[0]) },
null,
null,
aResearchTime,
@@ -1492,8 +1376,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GT_Recipe.GT_Recipe_Map.sAssemblylineVisualRecipes.addFakeRecipe(
false,
tInputs,
- new ItemStack[] {aOutput},
- new ItemStack[] {ItemList.Tool_DataStick.getWithName(1L, "Reads Research result", new Object[0])},
+ new ItemStack[] { aOutput },
+ new ItemStack[] { ItemList.Tool_DataStick.getWithName(1L, "Reads Research result", new Object[0]) },
aFluidInputs,
null,
aDuration,
@@ -1501,18 +1385,21 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
0,
tAlts,
false);
- GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(new GT_Recipe_AssemblyLine(
- aResearchItem, aResearchTime, tInputs, aFluidInputs, aOutput, aDuration, aEUt, tAlts));
+ GT_Recipe.GT_Recipe_AssemblyLine.sAssemblylineRecipes.add(
+ new GT_Recipe_AssemblyLine(
+ aResearchItem,
+ aResearchTime,
+ tInputs,
+ aFluidInputs,
+ aOutput,
+ aDuration,
+ aEUt,
+ tAlts));
return true;
}
- private boolean tryAddTecTechScannerRecipe(
- ItemStack aResearchItem,
- Object[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack aOutput,
- int assDuration,
- int assEUt) {
+ private boolean tryAddTecTechScannerRecipe(ItemStack aResearchItem, Object[] aInputs, FluidStack[] aFluidInputs,
+ ItemStack aOutput, int assDuration, int assEUt) {
if (!LoadedMods.TecTech) {
return true;
} else {
@@ -1534,13 +1421,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
aOutput,
assDuration,
assEUt);
- Logger.INFO("Added TecTech Scanner Recipe for " + ItemUtils.getItemName(aResearchItem) + "? "
- + aResult);
+ Logger.INFO(
+ "Added TecTech Scanner Recipe for " + ItemUtils.getItemName(aResearchItem)
+ + "? "
+ + aResult);
return aResult;
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
- Logger.INFO("Failed to generate TecTech recipe for " + ItemUtils.getItemName(aResearchItem)
- + ", please report this to Alkalus. [Severe]");
+ Logger.INFO(
+ "Failed to generate TecTech recipe for " + ItemUtils.getItemName(aResearchItem)
+ + ", please report this to Alkalus. [Severe]");
e.printStackTrace();
}
}
@@ -1548,34 +1438,21 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return false;
}
- public boolean addChemicalRecipe(
- ItemStack input1,
- ItemStack input2,
- FluidStack inputFluid,
- FluidStack outputFluid,
- ItemStack output,
- int time,
- int eu) {
+ public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
+ ItemStack output, int time, int eu) {
return addChemicalRecipe(input1, input2, inputFluid, outputFluid, output, null, time, eu);
}
@Override
- public boolean addChemicalRecipe(
- ItemStack input1,
- ItemStack input2,
- FluidStack inputFluid,
- FluidStack outputFluid,
- ItemStack output,
- Object object,
- int time,
- int eu) {
+ public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
+ ItemStack output, Object object, int time, int eu) {
try {
if (!CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK) {
- return (boolean)
- mChemicalRecipe[0].invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time);
+ return (boolean) mChemicalRecipe[0]
+ .invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time);
} else {
- return (boolean) mChemicalRecipe[1].invoke(
- GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time, eu);
+ return (boolean) mChemicalRecipe[1]
+ .invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time, eu);
}
} catch (Throwable t) {
return false;
@@ -1583,21 +1460,15 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addChemicalRecipe(
- ItemStack input1,
- ItemStack input2,
- FluidStack inputFluid,
- FluidStack outputFluid,
- ItemStack output,
- ItemStack output2,
- int time) {
+ public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, FluidStack inputFluid, FluidStack outputFluid,
+ ItemStack output, ItemStack output2, int time) {
try {
if (!CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK) {
- return (boolean)
- mChemicalRecipe[0].invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time);
+ return (boolean) mChemicalRecipe[0]
+ .invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, time);
} else {
- return (boolean) mChemicalRecipe[2].invoke(
- GT_Values.RA, input1, input2, inputFluid, outputFluid, output, output2, time);
+ return (boolean) mChemicalRecipe[2]
+ .invoke(GT_Values.RA, input1, input2, inputFluid, outputFluid, output, output2, time);
}
} catch (Throwable t) {
return false;
@@ -1605,27 +1476,19 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addChemicalRecipe(
- ItemStack input1,
- ItemStack input2,
- int aCircuit,
- FluidStack inputFluid,
- FluidStack outputFluid,
- ItemStack output,
- ItemStack output2,
- int time,
- int eu) {
+ public boolean addChemicalRecipe(ItemStack input1, ItemStack input2, int aCircuit, FluidStack inputFluid,
+ FluidStack outputFluid, ItemStack output, ItemStack output2, int time, int eu) {
if (aCircuit < 0 || aCircuit > 24) {
aCircuit = 22;
}
GT_Recipe aSpecialRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {input1, input2},
- new ItemStack[] {output, output2},
+ new ItemStack[] { input1, input2 },
+ new ItemStack[] { output, output2 },
CI.getNumberedCircuit(aCircuit),
new int[] {},
- new FluidStack[] {inputFluid},
- new FluidStack[] {outputFluid},
+ new FluidStack[] { inputFluid },
+ new FluidStack[] { outputFluid },
time,
eu,
0);
@@ -1633,19 +1496,14 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addMultiblockChemicalRecipe(
- ItemStack[] itemStacks,
- FluidStack[] fluidStacks,
- FluidStack[] fluidStacks2,
- ItemStack[] outputs,
- int time,
- int eu) {
+ public boolean addMultiblockChemicalRecipe(ItemStack[] itemStacks, FluidStack[] fluidStacks,
+ FluidStack[] fluidStacks2, ItemStack[] outputs, int time, int eu) {
if (!CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK || mLargeChemReactor == null) {
return false;
}
try {
- return (boolean)
- mLargeChemReactor.invoke(GT_Values.RA, itemStacks, fluidStacks, fluidStacks2, outputs, time, eu);
+ return (boolean) mLargeChemReactor
+ .invoke(GT_Values.RA, itemStacks, fluidStacks, fluidStacks2, outputs, time, eu);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
return false;
}
@@ -1682,19 +1540,27 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
return false;
}
GT_Recipe.GT_Recipe_Map.sCompressorRecipes.addRecipe(
- true, new ItemStack[] {aInput1}, new ItemStack[] {aOutput1}, null, null, null, aDuration, aEUt, 0);
+ true,
+ new ItemStack[] { aInput1 },
+ new ItemStack[] { aOutput1 },
+ null,
+ null,
+ null,
+ aDuration,
+ aEUt,
+ 0);
return true;
}
@Override
- public boolean addBrewingRecipe(
- int aCircuit, FluidStack aInput, FluidStack aOutput, int aTime, int aEu, boolean aHidden) {
+ public boolean addBrewingRecipe(int aCircuit, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
+ boolean aHidden) {
return addBrewingRecipe(CI.getNumberedCircuit(aCircuit), aInput, aOutput, aTime, aEu, aHidden);
}
@Override
- public boolean addBrewingRecipe(
- ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aTime, int aEu, boolean aHidden) {
+ public boolean addBrewingRecipe(ItemStack aIngredient, FluidStack aInput, FluidStack aOutput, int aTime, int aEu,
+ boolean aHidden) {
if ((aIngredient == null) || (aInput == null) || (aOutput == null)) {
return false;
}
@@ -1703,11 +1569,11 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBrewingRecipes.addRecipe(
false,
- new ItemStack[] {aIngredient},
+ new ItemStack[] { aIngredient },
null,
null,
- new FluidStack[] {aInput},
- new FluidStack[] {aOutput},
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
aTime,
aEu,
0);
@@ -1718,7 +1584,7 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
/**
- * Lets me add recipes for GT 5.08 & 5.09, since someone broke the method headers.
+ * Lets me add recipes for GT 5.08 & 5.09, since someone broke the method headers.
*/
@Override
public boolean addSmeltingAndAlloySmeltingRecipe(ItemStack aDust, ItemStack aOutput) {
@@ -1741,14 +1607,19 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFluidExtractionRecipe(ItemStack input, FluidStack output, int aTime, int aEu) {
- boolean aRecipe =
- RA.addFluidSmelterRecipe(GT_Utility.copyAmount(1, input), null, output, 10000, aTime, aEu, false);
+ boolean aRecipe = RA
+ .addFluidSmelterRecipe(GT_Utility.copyAmount(1, input), null, output, 10000, aTime, aEu, false);
if (aRecipe) {
- Logger.INFO("Added Fluid Extractor Recipe: "
- + input.getDisplayName() + " and obtain "
- + output.amount + "mb of " + output.getLocalizedName()
- + ". Time: " + aTime + ", Voltage: "
- + aEu);
+ Logger.INFO(
+ "Added Fluid Extractor Recipe: " + input.getDisplayName()
+ + " and obtain "
+ + output.amount
+ + "mb of "
+ + output.getLocalizedName()
+ + ". Time: "
+ + aTime
+ + ", Voltage: "
+ + aEu);
}
return aRecipe;
@@ -1756,10 +1627,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addFluidExtractionRecipe(
- ItemStack aEmpty, ItemStack aRemains, FluidStack aFluid, int aDuration, int aEU) {
+ public boolean addFluidExtractionRecipe(ItemStack aEmpty, ItemStack aRemains, FluidStack aFluid, int aDuration,
+ int aEU) {
boolean aRecipe = RA.addFluidSmelterRecipe(
- GT_Utility.copyAmount(1, aEmpty), aRemains, aFluid, 10000, aDuration, aEU, false);
+ GT_Utility.copyAmount(1, aEmpty),
+ aRemains,
+ aFluid,
+ 10000,
+ aDuration,
+ aEU,
+ false);
return aRecipe;
// return MaterialGenerator.addFluidExtractionRecipe(aEmpty, aRemains, aFluid, aDuration, aEU);
}
@@ -1770,44 +1647,32 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addFluidCannerRecipe(
- ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn, FluidStack rFluidOut) {
+ public boolean addFluidCannerRecipe(ItemStack aContainer, ItemStack aFullContainer, FluidStack rFluidIn,
+ FluidStack rFluidOut) {
return MaterialGenerator.addFluidCannerRecipe(aContainer, aFullContainer, rFluidIn, rFluidOut);
}
@Override
- public boolean addFluidCannerRecipe(
- ItemStack aFullContainer,
- ItemStack container,
- FluidStack rFluidIn,
- FluidStack rFluidOut,
- int aTime,
- int aEu) {
+ public boolean addFluidCannerRecipe(ItemStack aFullContainer, ItemStack container, FluidStack rFluidIn,
+ FluidStack rFluidOut, int aTime, int aEu) {
return MaterialGenerator.addFluidCannerRecipe(container, aFullContainer, rFluidIn, rFluidOut, aTime, aEu);
}
/**
* Adds a Fusion reactor Recipe
*
- * @param aInputStackA = first Input (not null, and respects StackSize)
- * @param aInputStackB = second Input (not null, and respects StackSize)
- * @param plasma = Output of the Fusion (can be null, and respects StackSize)
- * @param aOutputChance = chance to output plasma (can be 0)
- * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
- * @param aEu = The EU generated per Tick (can even be negative!)
- * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
+ * @param aInputStackA = first Input (not null, and respects StackSize)
+ * @param aInputStackB = second Input (not null, and respects StackSize)
+ * @param plasma = Output of the Fusion (can be null, and respects StackSize)
+ * @param aOutputChance = chance to output plasma (can be 0)
+ * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
+ * @param aEu = The EU generated per Tick (can even be negative!)
+ * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
*/
@Override
- public boolean addFusionReactorRecipe(
- FluidStack aInputStackA,
- FluidStack aInputStackB,
- FluidStack plasma,
- int aOutputChance,
- int aFusionDurationInTicks,
- int aEu,
- int aSpecial) {
- if (aInputStackA == null
- || aInputStackB == null
+ public boolean addFusionReactorRecipe(FluidStack aInputStackA, FluidStack aInputStackB, FluidStack plasma,
+ int aOutputChance, int aFusionDurationInTicks, int aEu, int aSpecial) {
+ if (aInputStackA == null || aInputStackB == null
|| plasma == null
|| aFusionDurationInTicks < 1
|| aEu < 1
@@ -1819,9 +1684,9 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
null,
null,
null,
- new int[] {aOutputChance},
- new FluidStack[] {aInputStackA, aInputStackB},
- new FluidStack[] {plasma},
+ new int[] { aOutputChance },
+ new FluidStack[] { aInputStackA, aInputStackB },
+ new FluidStack[] { plasma },
aFusionDurationInTicks,
aEu,
aSpecial);
@@ -1832,46 +1697,34 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
/**
* Adds a Fusion reactor Recipe
*
- * @param aInputStackA = first Input (not null, and respects StackSize)
- * @param aInputStackB = second Input (not null, and respects StackSize)
- * @param plasma = Output of the Fusion (can be null, and respects StackSize)
- * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
- * @param aEu = The EU generated per Tick (can even be negative!)
- * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
+ * @param aInputStackA = first Input (not null, and respects StackSize)
+ * @param aInputStackB = second Input (not null, and respects StackSize)
+ * @param plasma = Output of the Fusion (can be null, and respects StackSize)
+ * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
+ * @param aEu = The EU generated per Tick (can even be negative!)
+ * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
*/
@Override
- public boolean addFusionReactorRecipe(
- ItemStack aInputStackA,
- ItemStack aInputStackB,
- FluidStack plasma,
- int aFusionDurationInTicks,
- int aEu,
- int aSpecial) {
+ public boolean addFusionReactorRecipe(ItemStack aInputStackA, ItemStack aInputStackB, FluidStack plasma,
+ int aFusionDurationInTicks, int aEu, int aSpecial) {
return addFusionReactorRecipe(aInputStackA, aInputStackB, plasma, 10000, aFusionDurationInTicks, aEu, aSpecial);
}
/**
* Adds a Fusion reactor Recipe
*
- * @param aInputStackA = first Input (not null, and respects StackSize)
- * @param aInputStackB = second Input (not null, and respects StackSize)
- * @param plasma = Output of the Fusion (can be null, and respects StackSize)
- * @param aOutputChance = chance to output plasma (can be 0)
- * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
- * @param aEu = The EU generated per Tick (can even be negative!)
- * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
+ * @param aInputStackA = first Input (not null, and respects StackSize)
+ * @param aInputStackB = second Input (not null, and respects StackSize)
+ * @param plasma = Output of the Fusion (can be null, and respects StackSize)
+ * @param aOutputChance = chance to output plasma (can be 0)
+ * @param aFusionDurationInTicks = How many ticks the Fusion lasts (must be > 0)
+ * @param aEu = The EU generated per Tick (can even be negative!)
+ * @param aSpecial = EU needed for heating the Reactor up (must be >= 0)
*/
@Override
- public boolean addFusionReactorRecipe(
- ItemStack aInputStackA,
- ItemStack aInputStackB,
- FluidStack plasma,
- int aOutputChance,
- int aFusionDurationInTicks,
- int aEu,
- int aSpecial) {
- if (aInputStackA == null
- || aInputStackB == null
+ public boolean addFusionReactorRecipe(ItemStack aInputStackA, ItemStack aInputStackB, FluidStack plasma,
+ int aOutputChance, int aFusionDurationInTicks, int aEu, int aSpecial) {
+ if (aInputStackA == null || aInputStackB == null
|| plasma == null
|| aFusionDurationInTicks < 1
|| aEu < 1
@@ -1880,12 +1733,12 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aFusionCustom = new GTPP_Recipe(
true,
- new ItemStack[] {aInputStackA, aInputStackB},
+ new ItemStack[] { aInputStackA, aInputStackB },
null,
null,
- new int[] {aOutputChance},
+ new int[] { aOutputChance },
null,
- new FluidStack[] {plasma},
+ new FluidStack[] { plasma },
aFusionDurationInTicks,
aEu,
aSpecial);
@@ -1904,22 +1757,14 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addVacuumFurnaceRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- FluidStack aFluidOutput,
- ItemStack aOutput1,
- ItemStack aOutput2,
- int aDuration,
- int aEUt,
- int aLevel) {
+ public boolean addVacuumFurnaceRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
+ FluidStack aFluidOutput, ItemStack aOutput1, ItemStack aOutput2, int aDuration, int aEUt, int aLevel) {
if (aInput1 != null && aOutput1 != null) {
return addVacuumFurnaceRecipe(
- new ItemStack[] {aInput1, aInput2},
- new FluidStack[] {aFluidInput},
- new ItemStack[] {aOutput1, aOutput2},
- new FluidStack[] {aFluidOutput},
+ new ItemStack[] { aInput1, aInput2 },
+ new FluidStack[] { aFluidInput },
+ new ItemStack[] { aOutput1, aOutput2 },
+ new FluidStack[] { aFluidOutput },
aDuration,
aEUt,
aLevel);
@@ -1929,19 +1774,22 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addVacuumFurnaceRecipe(
- ItemStack[] aInputs,
- FluidStack[] aFluidInputs,
- ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs,
- int aDuration,
- int aEUt,
- int aLevel) {
+ public boolean addVacuumFurnaceRecipe(ItemStack[] aInputs, FluidStack[] aFluidInputs, ItemStack[] aOutputs,
+ FluidStack[] aFluidOutputs, int aDuration, int aEUt, int aLevel) {
if (aInputs != null && aOutputs != null) {
int aSize = GTPP_Recipe.GTPP_Recipe_Map.sVacuumFurnaceRecipes.mRecipeList.size();
int aSize2 = aSize;
GTPP_Recipe.GTPP_Recipe_Map.sVacuumFurnaceRecipes.addRecipe(
- false, aInputs, aOutputs, null, new int[] {}, aFluidInputs, aFluidOutputs, aDuration, aEUt, aLevel);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ new int[] {},
+ aFluidInputs,
+ aFluidOutputs,
+ aDuration,
+ aEUt,
+ aLevel);
aSize = GTPP_Recipe.GTPP_Recipe_Map.sVacuumFurnaceRecipes.mRecipeList.size();
return aSize > aSize2;
} else {
@@ -1954,12 +1802,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
// Generate Special Laser Recipe
GT_Recipe u = new GTPP_Recipe(
false,
- new ItemStack[] {
- aInput1, GregtechItemList.Laser_Lens_WoodsGlass.get(0),
- },
- new ItemStack[] {aOutput},
+ new ItemStack[] { aInput1, GregtechItemList.Laser_Lens_WoodsGlass.get(0), },
+ new ItemStack[] { aOutput },
null,
- new int[] {10000},
+ new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
time,
@@ -1974,27 +1820,14 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addChemicalPlantRecipe(
- ItemStack[] aInputs,
- FluidStack[] aInputFluids,
- ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs,
- int time,
- long eu,
- int aTier) {
+ public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
+ FluidStack[] aFluidOutputs, int time, long eu, int aTier) {
return addChemicalPlantRecipe(aInputs, aInputFluids, aOutputs, aFluidOutputs, new int[] {}, time, eu, aTier);
}
@Override
- public boolean addChemicalPlantRecipe(
- ItemStack[] aInputs,
- FluidStack[] aInputFluids,
- ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs,
- int[] aChances,
- int time,
- long eu,
- int aTier) {
+ public boolean addChemicalPlantRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
+ FluidStack[] aFluidOutputs, int[] aChances, int time, long eu, int aTier) {
if (aInputs.length > 4 || aInputFluids.length > 4 || aOutputs.length > 4 || aFluidOutputs.length > 2) {
Logger.INFO("Inputs: " + ItemUtils.getArrayStackNames(aInputs));
@@ -2007,22 +1840,34 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
int aSize = GTPP_Recipe.GTPP_Recipe_Map.sChemicalPlantRecipes.mRecipeList.size();
int aSize2 = aSize;
GTPP_Recipe.GTPP_Recipe_Map.sChemicalPlantRecipes.addRecipe(
- false, aInputs, aOutputs, null, aChances, aInputFluids, aFluidOutputs, time, (int) eu, aTier);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ aChances,
+ aInputFluids,
+ aFluidOutputs,
+ time,
+ (int) eu,
+ aTier);
aSize = GTPP_Recipe.GTPP_Recipe_Map.sChemicalPlantRecipes.mRecipeList.size();
return aSize > aSize2;
}
@Override
- public boolean addBlastRecipe(
- ItemStack[] aInputs,
- FluidStack[] aInputFluids,
- ItemStack[] aOutputs,
- FluidStack[] aFluidOutputs,
- int time,
- long eu,
- int aHeat) {
+ public boolean addBlastRecipe(ItemStack[] aInputs, FluidStack[] aInputFluids, ItemStack[] aOutputs,
+ FluidStack[] aFluidOutputs, int time, long eu, int aHeat) {
GTPP_Recipe aSpecialRecipe = new GTPP_Recipe(
- false, aInputs, aOutputs, null, new int[] {}, aInputFluids, aFluidOutputs, time, (int) eu, aHeat);
+ false,
+ aInputs,
+ aOutputs,
+ null,
+ new int[] {},
+ aInputFluids,
+ aFluidOutputs,
+ time,
+ (int) eu,
+ aHeat);
int aSize = GT_Recipe.GT_Recipe_Map.sBlastRecipes.mRecipeList.size();
int aSize2 = aSize;
@@ -2032,47 +1877,34 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addPyrolyseRecipe(
- ItemStack aInput,
- FluidStack aFluidInput,
- int intCircuit,
- ItemStack aOutput,
- FluidStack aFluidOutput,
- int aDuration,
- int aEUt) {
+ public boolean addPyrolyseRecipe(ItemStack aInput, FluidStack aFluidInput, int intCircuit, ItemStack aOutput,
+ FluidStack aFluidOutput, int aDuration, int aEUt) {
if (!CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK || mPyroOven == null) {
return false;
}
try {
- return (boolean) mPyroOven.invoke(
- GT_Values.RA, aInput, aFluidInput, intCircuit, aOutput, aFluidOutput, aDuration, aEUt);
+ return (boolean) mPyroOven
+ .invoke(GT_Values.RA, aInput, aFluidInput, intCircuit, aOutput, aFluidOutput, aDuration, aEUt);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
return false;
}
}
@Override
- public boolean addDistilleryRecipe(
- ItemStack aCircuit,
- FluidStack aInput,
- FluidStack aOutput,
- ItemStack aSolidOutput,
- int aDuration,
- int aEUt,
- boolean aHidden) {
+ public boolean addDistilleryRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput,
+ ItemStack aSolidOutput, int aDuration, int aEUt, boolean aHidden) {
if (aInput != null && aOutput != null) {
- if ((aDuration = GregTech_API.sRecipeFile.get(
- "distillery", aOutput.getFluid().getUnlocalizedName(), aDuration))
- <= 0) {
+ if ((aDuration = GregTech_API.sRecipeFile
+ .get("distillery", aOutput.getFluid().getUnlocalizedName(), aDuration)) <= 0) {
return false;
} else {
GT_Recipe tRecipe = GT_Recipe_Map.sDistilleryRecipes.addRecipe(
true,
- new ItemStack[] {aCircuit},
- new ItemStack[] {aSolidOutput},
+ new ItemStack[] { aCircuit },
+ new ItemStack[] { aSolidOutput },
(Object) null,
- new FluidStack[] {aInput},
- new FluidStack[] {aOutput},
+ new FluidStack[] { aInput },
+ new FluidStack[] { aOutput },
aDuration,
aEUt,
0);
@@ -2096,10 +1928,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
if (aInput != null && aOutput != null) {
GT_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInput.copy()},
- new ItemStack[] {aOutput.copy()},
+ new ItemStack[] { aInput.copy() },
+ new ItemStack[] { aOutput.copy() },
null,
- new int[] {aChance},
+ new int[] { aChance },
null,
null,
aDuration,
@@ -2114,8 +1946,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addPulverisationRecipe(
- ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2, ItemStack aOutput3) {
+ public boolean addPulverisationRecipe(ItemStack aInput, ItemStack aOutput1, ItemStack aOutput2,
+ ItemStack aOutput3) {
// return GT_Values.RA.addPulveriserRecipe(arg0, arg1, arg2, arg3, arg4)
aOutput1 = GT_OreDictUnificator.get(true, aOutput1);
@@ -2128,10 +1960,17 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
if (GregTech_API.sRecipeFile.get(ConfigCategories.Machines.maceration, aInput, true)) {
GT_Utility.addSimpleIC2MachineRecipe(
- aInput, GT_ModHandler.getMaceratorRecipeList(), null, new Object[] {aOutput1});
+ aInput,
+ GT_ModHandler.getMaceratorRecipeList(),
+ null,
+ new Object[] { aOutput1 });
}
GT_Values.RA.addPulveriserRecipe(
- aInput, new ItemStack[] {aOutput1, aOutput2, aOutput3}, new int[] {10000, 10000, 10000}, 400, 2);
+ aInput,
+ new ItemStack[] { aOutput1, aOutput2, aOutput3 },
+ new int[] { 10000, 10000, 10000 },
+ 400,
+ 2);
}
return true;
}
@@ -2156,34 +1995,45 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
ItemStack aMillingBall_Soapstone = GregtechItemList.Milling_Ball_Soapstone.get(0);
// Inputs
- ItemStack[] aInputsOre1 = new ItemStack[] {CI.getNumberedCircuit(10), aOreStack, aMillingBall_Alumina};
+ ItemStack[] aInputsOre1 = new ItemStack[] { CI.getNumberedCircuit(10), aOreStack, aMillingBall_Alumina };
- ItemStack[] aInputsOre2 = new ItemStack[] {CI.getNumberedCircuit(11), aOreStack, aMillingBall_Soapstone};
+ ItemStack[] aInputsOre2 = new ItemStack[] { CI.getNumberedCircuit(11), aOreStack, aMillingBall_Soapstone };
- ItemStack[] aInputsCrushed1 = new ItemStack[] {CI.getNumberedCircuit(10), aCrushedStack, aMillingBall_Alumina};
+ ItemStack[] aInputsCrushed1 = new ItemStack[] { CI.getNumberedCircuit(10), aCrushedStack,
+ aMillingBall_Alumina };
- ItemStack[] aInputsCrushed2 =
- new ItemStack[] {CI.getNumberedCircuit(11), aCrushedStack, aMillingBall_Soapstone};
+ ItemStack[] aInputsCrushed2 = new ItemStack[] { CI.getNumberedCircuit(11), aCrushedStack,
+ aMillingBall_Soapstone };
// Outputs
- ItemStack[] aOutputsOre1 = new ItemStack[] {aMilledStackOres1};
+ ItemStack[] aOutputsOre1 = new ItemStack[] { aMilledStackOres1 };
- ItemStack[] aOutputsOre2 = new ItemStack[] {aMilledStackOres2};
+ ItemStack[] aOutputsOre2 = new ItemStack[] { aMilledStackOres2 };
- ItemStack[] aOutputsCrushed1 = new ItemStack[] {aMilledStackCrushed1};
+ ItemStack[] aOutputsCrushed1 = new ItemStack[] { aMilledStackCrushed1 };
- ItemStack[] aOutputsCrushed2 = new ItemStack[] {aMilledStackCrushed2};
+ ItemStack[] aOutputsCrushed2 = new ItemStack[] { aMilledStackCrushed2 };
- ItemStack[][] aInputArray = new ItemStack[][] {aInputsOre1, aInputsOre2, aInputsCrushed1, aInputsCrushed2};
- ItemStack[][] aOutputArray = new ItemStack[][] {aOutputsOre1, aOutputsOre2, aOutputsCrushed1, aOutputsCrushed2};
- int[] aTime = new int[] {2400, 3000, 1200, 1500};
+ ItemStack[][] aInputArray = new ItemStack[][] { aInputsOre1, aInputsOre2, aInputsCrushed1, aInputsCrushed2 };
+ ItemStack[][] aOutputArray = new ItemStack[][] { aOutputsOre1, aOutputsOre2, aOutputsCrushed1,
+ aOutputsCrushed2 };
+ int[] aTime = new int[] { 2400, 3000, 1200, 1500 };
int aSize = GTPP_Recipe.GTPP_Recipe_Map.sOreMillRecipes.mRecipeList.size();
int aSize2 = aSize;
for (int i = 0; i < 4; i++) {
GTPP_Recipe aOreRecipe = new GTPP_Recipe(
- false, aInputArray[i], aOutputArray[i], null, new int[] {}, null, null, aTime[i], aEU, 0);
+ false,
+ aInputArray[i],
+ aOutputArray[i],
+ null,
+ new int[] {},
+ null,
+ null,
+ aTime[i],
+ aEU,
+ 0);
GTPP_Recipe.GTPP_Recipe_Map.sOreMillRecipes.add(aOreRecipe);
}
@@ -2192,25 +2042,20 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addFlotationRecipe(
- Materials aMat,
- ItemStack aXanthate,
- FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids,
- int aTime,
- int aEU) {
+ public boolean addFlotationRecipe(Materials aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
+ FluidStack[] aOutputFluids, int aTime, int aEU) {
return addFlotationRecipe(
- MaterialUtils.generateMaterialFromGtENUM(aMat), aXanthate, aInputFluids, aOutputFluids, aTime, aEU);
+ MaterialUtils.generateMaterialFromGtENUM(aMat),
+ aXanthate,
+ aInputFluids,
+ aOutputFluids,
+ aTime,
+ aEU);
}
@Override
- public boolean addFlotationRecipe(
- Material aMat,
- ItemStack aXanthate,
- FluidStack[] aInputFluids,
- FluidStack[] aOutputFluids,
- int aTime,
- int aEU) {
+ public boolean addFlotationRecipe(Material aMat, ItemStack aXanthate, FluidStack[] aInputFluids,
+ FluidStack[] aOutputFluids, int aTime, int aEU) {
FlotationRecipeHandler.registerOreType(aMat);
@@ -2219,13 +2064,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
GT_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {
- ItemUtils.getSimpleStack(aXanthate, 32),
- aMat.getMilled(64),
- aMat.getMilled(64),
- aMat.getMilled(64),
- aMat.getMilled(64),
- },
+ new ItemStack[] { ItemUtils.getSimpleStack(aXanthate, 32), aMat.getMilled(64), aMat.getMilled(64),
+ aMat.getMilled(64), aMat.getMilled(64), },
new ItemStack[] {},
null,
new int[] {},
@@ -2242,15 +2082,25 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addpackagerRecipe(
- ItemStack aRecipeType, ItemStack aSmallDust, ItemStack aTinyDust, ItemStack aOutputStack1) {
+ public boolean addpackagerRecipe(ItemStack aRecipeType, ItemStack aSmallDust, ItemStack aTinyDust,
+ ItemStack aOutputStack1) {
AutoMap<Boolean> aResults = new AutoMap<Boolean>();
// Dust 1
- aResults.put(GT_Values.RA.addBoxingRecipe(
- GT_Utility.copyAmount(4L, new Object[] {aSmallDust}), aRecipeType, aOutputStack1, 100, 4));
+ aResults.put(
+ GT_Values.RA.addBoxingRecipe(
+ GT_Utility.copyAmount(4L, new Object[] { aSmallDust }),
+ aRecipeType,
+ aOutputStack1,
+ 100,
+ 4));
// Dust 2
- aResults.put(GT_Values.RA.addBoxingRecipe(
- GT_Utility.copyAmount(9L, new Object[] {aTinyDust}), aRecipeType, aOutputStack1, 100, 4));
+ aResults.put(
+ GT_Values.RA.addBoxingRecipe(
+ GT_Utility.copyAmount(9L, new Object[] { aTinyDust }),
+ aRecipeType,
+ aOutputStack1,
+ 100,
+ 4));
for (boolean b : aResults) {
if (!b) {
return false;
@@ -2263,12 +2113,20 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
public boolean addFuelForRTG(ItemStack aFuelPellet, int aFuelDays, int aVoltage) {
int aSize1 = GTPP_Recipe.GTPP_Recipe_Map.sRTGFuels.mRecipeList.size();
GTPP_Recipe.GTPP_Recipe_Map.sRTGFuels.addRecipe(
- true, new ItemStack[] {aFuelPellet}, new ItemStack[] {}, null, null, null, 0, aVoltage, aFuelDays);
+ true,
+ new ItemStack[] { aFuelPellet },
+ new ItemStack[] {},
+ null,
+ null,
+ null,
+ 0,
+ aVoltage,
+ aFuelDays);
int aSize2 = GTPP_Recipe.GTPP_Recipe_Map.sRTGFuels.mRecipeList.size();
if (aSize2 > aSize1) {
- long eu = GregtechMetaTileEntity_RTG.getTotalEUGenerated(
- GregtechMetaTileEntity_RTG.convertDaysToTicks(aFuelDays), aVoltage);
+ long eu = GregtechMetaTileEntity_RTG
+ .getTotalEUGenerated(GregtechMetaTileEntity_RTG.convertDaysToTicks(aFuelDays), aVoltage);
GT_MetaTileEntity_Hatch_Energy_RTG.registerPelletForHatch(aFuelPellet, eu);
return true;
} else {
@@ -2277,23 +2135,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addColdTrapRecipe(
- int aCircuit,
- ItemStack aInput,
- FluidStack aFluidInput,
- ItemStack[] aOutputs,
- int[] aChances,
- FluidStack aFluidOutput,
- int aTime,
- int aEU) {
+ public boolean addColdTrapRecipe(int aCircuit, ItemStack aInput, FluidStack aFluidInput, ItemStack[] aOutputs,
+ int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {CI.getNumberedAdvancedCircuit(aCircuit), aInput},
+ new ItemStack[] { CI.getNumberedAdvancedCircuit(aCircuit), aInput },
aOutputs,
null,
aChances,
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
aTime,
aEU,
0);
@@ -2304,23 +2155,16 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addReactorProcessingUnitRecipe(
- ItemStack aInput1,
- ItemStack aInput2,
- FluidStack aFluidInput,
- ItemStack[] aOutputs,
- int[] aChances,
- FluidStack aFluidOutput,
- int aTime,
- int aEU) {
+ public boolean addReactorProcessingUnitRecipe(ItemStack aInput1, ItemStack aInput2, FluidStack aFluidInput,
+ ItemStack[] aOutputs, int[] aChances, FluidStack aFluidOutput, int aTime, int aEU) {
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInput1, aInput2},
+ new ItemStack[] { aInput1, aInput2 },
aOutputs,
null,
aChances,
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aFluidOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aFluidOutput },
aTime,
aEU,
0);
@@ -2331,18 +2175,18 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addFluidHeaterRecipe(
- ItemStack aInput, FluidStack aFluidInput, FluidStack aOutput, int aDuration, int aEUt) {
+ public boolean addFluidHeaterRecipe(ItemStack aInput, FluidStack aFluidInput, FluidStack aOutput, int aDuration,
+ int aEUt) {
if ((aInput == null && aFluidInput == null) || (aOutput == null)) {
return false;
}
GT_Recipe.GT_Recipe_Map.sFluidHeaterRecipes.addRecipe(
true,
- new ItemStack[] {aInput},
+ new ItemStack[] { aInput },
null,
null,
- new FluidStack[] {aFluidInput},
- new FluidStack[] {aOutput},
+ new FluidStack[] { aFluidInput },
+ new FluidStack[] { aOutput },
aDuration,
aEUt,
0);
@@ -2356,10 +2200,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInput},
- new ItemStack[] {aOutput},
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
null,
- new int[] {10000},
+ new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
aDuration,
@@ -2378,10 +2222,10 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
GTPP_Recipe aRecipe = new GTPP_Recipe(
false,
- new ItemStack[] {aInput},
- new ItemStack[] {aOutput},
+ new ItemStack[] { aInput },
+ new ItemStack[] { aOutput },
null,
- new int[] {10000},
+ new int[] { 10000 },
new FluidStack[] {},
new FluidStack[] {},
aDuration,
@@ -2394,8 +2238,8 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
@Override
- public boolean addMolecularTransformerRecipe(
- ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt, int aAmps) {
+ public boolean addMolecularTransformerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt,
+ int aAmps) {
return addMolecularTransformerRecipe(aInput, aOutput, aDuration, aEUt);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java
index 271e29d654..aaa3ff2876 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/RecipesToRemove.java
@@ -1,13 +1,14 @@
package gtPlusPlus.xmod.gregtech.recipes;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.FluidStack;
+
import gregtech.api.util.GTPP_Recipe;
import gregtech.api.util.GT_Recipe;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.material.ORES;
import gtPlusPlus.core.util.minecraft.ItemUtils;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.fluids.FluidStack;
public class RecipesToRemove {
@@ -20,9 +21,11 @@ public class RecipesToRemove {
// caesium
// Replaced by advanced sifting recipe.
GT_Recipe aRareEarthCentrifuging = GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes.findRecipe(
- null, false, 20, new FluidStack[] {}, new ItemStack[] {
- ItemUtils.getItemStackOfAmountFromOreDict("dustRareEarth", 1)
- });
+ null,
+ false,
+ 20,
+ new FluidStack[] {},
+ new ItemStack[] { ItemUtils.getItemStackOfAmountFromOreDict("dustRareEarth", 1) });
if (aRareEarthCentrifuging != null && aRareEarthCentrifuging.mEnabled) {
aRareEarthCentrifuging.mEnabled = false;
aRareEarthCentrifuging.mHidden = true;
@@ -32,19 +35,15 @@ public class RecipesToRemove {
Logger.INFO("Removed vanilla GT Rare Earth processing.");
// Set the Chemical Symbol for Rare Earth now that we are giving it custom outputs
// Best not to set this unless the original recipe is removed.
- /*Materials.RareEarth.mChemicalFormula = "("
- +ELEMENT.getInstance().YTTRIUM.vChemicalSymbol
- +ELEMENT.getInstance().NEODYMIUM.vChemicalSymbol
- +ELEMENT.getInstance().LANTHANUM.vChemicalSymbol
- +ELEMENT.getInstance().CERIUM.vChemicalSymbol
- +ELEMENT.getInstance().CADMIUM.vChemicalSymbol
- +ELEMENT.getInstance().CAESIUM.vChemicalSymbol
- +ELEMENT.getInstance().YTTERBIUM.vChemicalSymbol
- +ELEMENT.getInstance().SAMARIUM.vChemicalSymbol
- +ELEMENT.getInstance().GADOLINIUM.vChemicalSymbol+
- ")";*/
+ /*
+ * Materials.RareEarth.mChemicalFormula = "(" +ELEMENT.getInstance().YTTRIUM.vChemicalSymbol
+ * +ELEMENT.getInstance().NEODYMIUM.vChemicalSymbol +ELEMENT.getInstance().LANTHANUM.vChemicalSymbol
+ * +ELEMENT.getInstance().CERIUM.vChemicalSymbol +ELEMENT.getInstance().CADMIUM.vChemicalSymbol
+ * +ELEMENT.getInstance().CAESIUM.vChemicalSymbol +ELEMENT.getInstance().YTTERBIUM.vChemicalSymbol
+ * +ELEMENT.getInstance().SAMARIUM.vChemicalSymbol +ELEMENT.getInstance().GADOLINIUM.vChemicalSymbol+ ")";
+ */
- Material[] aLowTierOutputMaterials = new Material[] {ORES.GREENOCKITE};
+ Material[] aLowTierOutputMaterials = new Material[] { ORES.GREENOCKITE };
}
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_AssemblyLine.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_AssemblyLine.java
index 43c48232d8..cb0ec59f22 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_AssemblyLine.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_AssemblyLine.java
@@ -5,14 +5,9 @@ import net.minecraftforge.fluids.FluidStack;
public class RECIPEHANDLER_AssemblyLine {
- public static boolean addAssemblylineRecipe(
- ItemStack paramItemStack1,
- int paramInt1,
- ItemStack[] paramArrayOfItemStack,
- FluidStack[] paramArrayOfFluidStack,
- ItemStack paramItemStack2,
- int paramInt2,
- int paramInt3) {
+ public static boolean addAssemblylineRecipe(ItemStack paramItemStack1, int paramInt1,
+ ItemStack[] paramArrayOfItemStack, FluidStack[] paramArrayOfFluidStack, ItemStack paramItemStack2,
+ int paramInt2, int paramInt3) {
return false;
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_CokeOven.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_CokeOven.java
index 627241cd53..599b98ed86 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_CokeOven.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_CokeOven.java
@@ -1,9 +1,10 @@
package gtPlusPlus.xmod.gregtech.recipes.machines;
-import gtPlusPlus.api.objects.Logger;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
+import gtPlusPlus.api.objects.Logger;
+
public class RECIPEHANDLER_CokeOven {
public static void debug1() {
@@ -14,75 +15,105 @@ public class RECIPEHANDLER_CokeOven {
Logger.WARNING("My name is Ralph and I will be your humble host.");
}
- public static void debug2(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug2(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING("aInput1 == null && aFluidInput == null || aOutput == null && aFluidOutput == null");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug3(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug3(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aOutput, aDuration)) <= 0)");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug4(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug4(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aFluidOutput.getFluid().getName(), aDuration)) <= 0)");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
}
- public static void debug5(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
- Logger.INFO("Successfully added a Coke Oven recipe for: " + aOutput.getDisplayName() + " & "
- + aFluidOutput.getFluid().getName() + ", Using " + aInput1.getDisplayName() + " & "
- + aInput2.getDisplayName() + " & liquid "
- + aFluidInput.getFluid().getName() + ". This takes " + (aDuration / 20) + " seconds for " + aEUt
- + "eu/t.");
+ public static void debug5(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
+ Logger.INFO(
+ "Successfully added a Coke Oven recipe for: " + aOutput.getDisplayName()
+ + " & "
+ + aFluidOutput.getFluid().getName()
+ + ", Using "
+ + aInput1.getDisplayName()
+ + " & "
+ + aInput2.getDisplayName()
+ + " & liquid "
+ + aFluidInput.getFluid().getName()
+ + ". This takes "
+ + (aDuration / 20)
+ + " seconds for "
+ + aEUt
+ + "eu/t.");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_Dehydrator.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_Dehydrator.java
index b9f4c11887..fc9ed99ffe 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_Dehydrator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_Dehydrator.java
@@ -1,10 +1,11 @@
package gtPlusPlus.xmod.gregtech.recipes.machines;
-import gtPlusPlus.api.objects.Logger;
-import gtPlusPlus.core.util.minecraft.ItemUtils;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
+import gtPlusPlus.api.objects.Logger;
+import gtPlusPlus.core.util.minecraft.ItemUtils;
+
public class RECIPEHANDLER_Dehydrator {
public static void debug1() {
@@ -15,70 +16,90 @@ public class RECIPEHANDLER_Dehydrator {
Logger.WARNING("My name is Willus and I will be your humble host.");
}
- public static void debug2(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug2(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING("aInput1 == null && aFluidInput == null || aOutput == null && aFluidOutput == null");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug3(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug3(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aOutput, aDuration)) <= 0)");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug4(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug4(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack aOutput, final int aDuration, final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aFluidOutput.getFluid().getName(), aDuration)) <= 0)");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
- Logger.WARNING("aInput1:" + aInput1.toString() + " aInput2:" + aInput2.toString() + " aFluidInput:"
- + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString() + " aOutput:" + aOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aInput1:" + aInput1.toString()
+ + " aInput2:"
+ + aInput2.toString()
+ + " aFluidInput:"
+ + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aOutput:"
+ + aOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
}
- public static void debug5(
- final ItemStack aInput1,
- final ItemStack aInput2,
- final FluidStack aFluidInput,
- final FluidStack aFluidOutput,
- final ItemStack[] aOutput,
- final int aDuration,
- final int aEUt) {
+ public static void debug5(final ItemStack aInput1, final ItemStack aInput2, final FluidStack aFluidInput,
+ final FluidStack aFluidOutput, final ItemStack[] aOutput, final int aDuration, final int aEUt) {
String inputAname;
String inputBname;
@@ -109,9 +130,21 @@ public class RECIPEHANDLER_Dehydrator {
outputFluidName = "null";
}
- Logger.INFO("Successfully added a Chemical Dehydrator recipe for: " + ItemUtils.getArrayStackNames(aOutput)
- + " & " + outputFluidName + ", Using " + inputAname + " & " + inputBname + " & liquid " + inputFluidname
- + ". This takes " + (aDuration / 20) + " seconds for " + aEUt + "eu/t.");
+ Logger.INFO(
+ "Successfully added a Chemical Dehydrator recipe for: " + ItemUtils.getArrayStackNames(aOutput)
+ + " & "
+ + outputFluidName
+ + ", Using "
+ + inputAname
+ + " & "
+ + inputBname
+ + " & liquid "
+ + inputFluidname
+ + ". This takes "
+ + (aDuration / 20)
+ + " seconds for "
+ + aEUt
+ + "eu/t.");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_MatterFabricator.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_MatterFabricator.java
index 6523e0a6f6..ea2f4a95fe 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_MatterFabricator.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/machines/RECIPEHANDLER_MatterFabricator.java
@@ -1,8 +1,9 @@
package gtPlusPlus.xmod.gregtech.recipes.machines;
-import gtPlusPlus.api.objects.Logger;
import net.minecraftforge.fluids.FluidStack;
+import gtPlusPlus.api.objects.Logger;
+
public class RECIPEHANDLER_MatterFabricator {
public static void debug1() {
@@ -13,42 +14,66 @@ public class RECIPEHANDLER_MatterFabricator {
Logger.WARNING("My name is Ralph and I will be your humble host.");
}
- public static void debug2(
- final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
+ public static void debug2(final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration,
+ final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING("aInput1 == null && aFluidInput == null || aOutput == null && aFluidOutput == null");
- Logger.WARNING("aFluidInput:" + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aFluidInput:" + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug3(
- final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
+ public static void debug3(final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration,
+ final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aOutput, aDuration)) <= 0)");
- Logger.WARNING("aFluidInput:" + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aFluidInput:" + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
}
- public static void debug4(
- final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
+ public static void debug4(final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration,
+ final int aEUt) {
Logger.WARNING("==================================================================================");
Logger.WARNING("Taking a step forward.");
Logger.WARNING(
"(aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get(cokeoven, aFluidOutput.getFluid().getName(), aDuration)) <= 0)");
- Logger.WARNING("aFluidInput:" + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aFluidInput:" + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
Logger.WARNING("Passed.");
- Logger.WARNING("aFluidInput:" + aFluidInput.toString() + " aFluidOutput:" + aFluidOutput.toString()
- + " aDuration:" + aDuration + " aEU/t:" + aEUt);
+ Logger.WARNING(
+ "aFluidInput:" + aFluidInput.toString()
+ + " aFluidOutput:"
+ + aFluidOutput.toString()
+ + " aDuration:"
+ + aDuration
+ + " aEU/t:"
+ + aEUt);
}
- public static void debug5(
- final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration, final int aEUt) {
+ public static void debug5(final FluidStack aFluidInput, final FluidStack aFluidOutput, final int aDuration,
+ final int aEUt) {
String a = "nothing";
String b = "";
@@ -59,8 +84,16 @@ public class RECIPEHANDLER_MatterFabricator {
b = aFluidOutput.getFluid().getName();
}
- Logger.INFO("Successfully added a Matter Fabrication recipe for: " + b + ", Using " + " liquid " + a
- + ". This takes " + (aDuration / 20) + " seconds for " + aEUt + "eu/t.");
+ Logger.INFO(
+ "Successfully added a Matter Fabrication recipe for: " + b
+ + ", Using "
+ + " liquid "
+ + a
+ + ". This takes "
+ + (aDuration / 20)
+ + " seconds for "
+ + aEUt
+ + "eu/t.");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");
Logger.WARNING("==================================================================================");