aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
diff options
context:
space:
mode:
authorHoleFish <48403212+HoleFish@users.noreply.github.com>2024-03-11 18:06:51 +0800
committerGitHub <noreply@github.com>2024-03-11 11:06:51 +0100
commitad49276a25535ff110a3e37934f72dbea8eec258 (patch)
tree57620a84a6928bc9d01516835cf0a6ec1f30d915 /src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
parent34c34137ba1c888feff65b1695992d609f33a7f1 (diff)
downloadGT5-Unofficial-ad49276a25535ff110a3e37934f72dbea8eec258.tar.gz
GT5-Unofficial-ad49276a25535ff110a3e37934f72dbea8eec258.tar.bz2
GT5-Unofficial-ad49276a25535ff110a3e37934f72dbea8eec258.zip
Add messages about the reasons for machine shutdown during processing (#2522)
* ShutDownReason setup * implement * fix machine not turn on
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java')
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java b/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
index 517f4a0cd3..83570fedcc 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IMachineProgress.java
@@ -1,5 +1,10 @@
package gregtech.api.interfaces.tileentity;
+import javax.annotation.Nonnull;
+
+import gregtech.api.util.shutdown.ShutDownReason;
+import gregtech.api.util.shutdown.ShutDownReasonRegistry;
+
/**
* For Machines which have Progress
*/
@@ -83,4 +88,9 @@ public interface IMachineProgress extends IHasWorldObjectAndCoords {
default boolean wasShutdown() {
return false;
}
+
+ @Nonnull
+ default ShutDownReason getLastShutDownReason() {
+ return ShutDownReasonRegistry.NONE;
+ }
}