aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/recipes')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java53
1 files changed, 50 insertions, 3 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
index 2b324fc172..2b8a110b09 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -1,6 +1,7 @@
package gtPlusPlus.xmod.gregtech.recipes;
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;
@@ -1267,12 +1268,39 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
@Override
public boolean addFluidExtractionRecipe(ItemStack input, FluidStack output, int aTime, int aEu) {
- return MaterialGenerator.addFluidExtractionRecipe(GT_Values.NI, input, output, aTime, aEu);
+
+ 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);
+ }
+ return aRecipe;
+
+ //return MaterialGenerator.addFluidExtractionRecipe(GT_Values.NI, input, output, aTime, aEu);
}
@Override
public boolean addFluidExtractionRecipe(ItemStack aEmpty, ItemStack aRemains, FluidStack aFluid, int aDuration, int aEU) {
- return MaterialGenerator.addFluidExtractionRecipe(aEmpty, aRemains, aFluid, aDuration, aEU);
+ boolean aRecipe = RA.addFluidSmelterRecipe(
+ GT_Utility.copyAmount(1, aEmpty),
+ aRemains,
+ aFluid,
+ 10000,
+ aDuration,
+ aEU,
+ false);
+ return aRecipe;
+ //return MaterialGenerator.addFluidExtractionRecipe(aEmpty, aRemains, aFluid, aDuration, aEU);
}
@Override
@@ -1827,7 +1855,26 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
-
+ public boolean addMolecularTransformerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt, int aAmps) {
+ if ((aInput == null) || (aOutput == null)) {
+ return false;
+ }
+ GTPP_Recipe aRecipe = new GTPP_Recipe(
+ false,
+ new ItemStack[] {aInput},
+ new ItemStack[] {aOutput},
+ null,
+ new int[] {10000},
+ new FluidStack[] {},
+ new FluidStack[] {},
+ aDuration,
+ aEUt,
+ aAmps);
+
+ int aSize = GTPP_Recipe_Map.sMolecularTransformerRecipes.mRecipeList.size();
+ GTPP_Recipe_Map.sMolecularTransformerRecipes.add(aRecipe);
+ return GTPP_Recipe_Map.sMolecularTransformerRecipes.mRecipeList.size() > aSize;
+}