aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/GT_ModHandler.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/util/GT_ModHandler.java b/src/main/java/gregtech/api/util/GT_ModHandler.java
index dabdbbc56b..b5c7c6fb6e 100644
--- a/src/main/java/gregtech/api/util/GT_ModHandler.java
+++ b/src/main/java/gregtech/api/util/GT_ModHandler.java
@@ -559,8 +559,26 @@ public class GT_ModHandler {
}
/**
- * Adds GT versions of the IC2 recipes from the supplied IC2RecipeList.
+ * Removes IC2 recipes.
*/
+ public static void removeAllIC2Recipes() {
+ getMaceratorRecipeList().entrySet()
+ .clear();
+ getCompressorRecipeList().entrySet()
+ .clear();
+ getExtractorRecipeList().entrySet()
+ .clear();
+ getOreWashingRecipeList().entrySet()
+ .clear();
+ getThermalCentrifugeRecipeList().entrySet()
+ .clear();
+ }
+
+ /**
+ * Adds GT versions of the IC2 recipes from the supplied IC2RecipeList. Deprecated because all IC2 recipes
+ * have been manually added to GT.
+ */
+ @Deprecated
public static void addIC2RecipesToGT(Map<IRecipeInput, RecipeOutput> aIC2RecipeList, RecipeMap<?> aGTRecipeMap,
boolean aAddGTRecipe, boolean aRemoveIC2Recipe, boolean aExcludeGTIC2Items) {
Map<ItemStack, ItemStack> aRecipesToRemove = new HashMap<>();