aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-10 22:21:04 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-10 22:21:04 +0000
commit9729a716008abd839c48a6b18f4c74247fa27395 (patch)
treea008b361337a2c32f9afa96c310da3b21e249d34 /src/Java/gtPlusPlus/xmod/gregtech
parent071ac0cca7df642adff90fe50b7028b35559c852 (diff)
downloadGT5-Unofficial-9729a716008abd839c48a6b18f4c74247fa27395.tar.gz
GT5-Unofficial-9729a716008abd839c48a6b18f4c74247fa27395.tar.bz2
GT5-Unofficial-9729a716008abd839c48a6b18f4c74247fa27395.zip
Fixed hot ingot recipes.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java2
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java22
2 files changed, 24 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
index 12b4997772..217731dea7 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/interfaces/internal/IGregtech_RecipeAdder.java
@@ -320,4 +320,6 @@ public interface IGregtech_RecipeAdder {
public boolean addFluidHeaterRecipe(ItemStack aCircuit, FluidStack aInput, FluidStack aOutput, int aDuration, int aEUt);
+ public boolean addVacuumFreezerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEU);
+
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
index 7e3fab2ad8..71f618e7a9 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
@@ -1808,6 +1808,28 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder {
}
+ @Override
+ public boolean addVacuumFreezerRecipe(ItemStack aInput, ItemStack aOutput, int aDuration, int aEUt) {
+ 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,
+ 0);
+
+ int aSize = GT_Recipe_Map.sVacuumRecipes.mRecipeList.size();
+ GT_Recipe_Map.sVacuumRecipes.add(aRecipe);
+ return GT_Recipe_Map.sVacuumRecipes.mRecipeList.size() > aSize;
+ }
+