aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/GTRecipeBuilder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/util/GTRecipeBuilder.java')
-rw-r--r--src/main/java/gregtech/api/util/GTRecipeBuilder.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GTRecipeBuilder.java b/src/main/java/gregtech/api/util/GTRecipeBuilder.java
index 1426c1c264..69890e564d 100644
--- a/src/main/java/gregtech/api/util/GTRecipeBuilder.java
+++ b/src/main/java/gregtech/api/util/GTRecipeBuilder.java
@@ -211,6 +211,30 @@ public class GTRecipeBuilder {
}
}
+ public static void handleInvalidRecipeLowFluids() {
+ if (!DEBUG_MODE_INVALID && !PANIC_MODE_INVALID) {
+ return;
+ }
+ // place a breakpoint here to catch all these issues
+ GTLog.err.println("invalid recipe: not enough input fluids");
+ new IllegalArgumentException().printStackTrace(GTLog.err);
+ if (PANIC_MODE_INVALID) {
+ throw new IllegalArgumentException("invalid recipe");
+ }
+ }
+
+ public static void handleInvalidRecipeLowItems() {
+ if (!DEBUG_MODE_INVALID && !PANIC_MODE_INVALID) {
+ return;
+ }
+ // place a breakpoint here to catch all these issues
+ GTLog.err.println("invalid recipe: not enough input items");
+ new IllegalArgumentException().printStackTrace(GTLog.err);
+ if (PANIC_MODE_INVALID) {
+ throw new IllegalArgumentException("invalid recipe");
+ }
+ }
+
public static void handleRecipeCollision(String details) {
if (!DEBUG_MODE_COLLISION && !PANIC_MODE_COLLISION) {
return;