aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java
diff options
context:
space:
mode:
authorHoleFish <48403212+HoleFish@users.noreply.github.com>2024-08-31 01:48:23 +0800
committerGitHub <noreply@github.com>2024-08-30 17:48:23 +0000
commit9fee35c065e197199f57ef1df31ac303e94d1d50 (patch)
tree66437da0c2422d10ddfc9211040ebbd180af5f54 /src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java
parent55ebcb3bdf0f54b76642c03b3a58112081138c10 (diff)
downloadGT5-Unofficial-9fee35c065e197199f57ef1df31ac303e94d1d50.tar.gz
GT5-Unofficial-9fee35c065e197199f57ef1df31ac303e94d1d50.tar.bz2
GT5-Unofficial-9fee35c065e197199f57ef1df31ac303e94d1d50.zip
Add duration since last shutdown (#2977)
* machine message * fix & prass channel * machine message * fix & prass channel * fix machines that dont use regular onPostTick * follow error fixes and fix hatch check * oops * sa --------- Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java')
-rw-r--r--src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java b/src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java
index 8af5c58f5e..60436b9c3e 100644
--- a/src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java
+++ b/src/main/java/gregtech/api/recipe/check/CheckRecipeResult.java
@@ -1,8 +1,6 @@
package gregtech.api.recipe.check;
-import javax.annotation.Nonnull;
-
-import net.minecraft.network.PacketBuffer;
+import gregtech.api.util.IMachineMessage;
/**
* Class to indicate the result of recipe check in the machine. It doesn't need to be actual result of recipemap check,
@@ -10,13 +8,7 @@ import net.minecraft.network.PacketBuffer;
* <p>
* Sample instance must be registered to {@link CheckRecipeResultRegistry}.
*/
-public interface CheckRecipeResult {
-
- /**
- * @return Unique registry ID
- */
- @Nonnull
- String getID();
+public interface CheckRecipeResult extends IMachineMessage<CheckRecipeResult> {
/**
* @return If recipe check is successful
@@ -24,28 +16,6 @@ public interface CheckRecipeResult {
boolean wasSuccessful();
/**
- * @return Actual text to show on client GUI
- */
- @Nonnull
- String getDisplayString();
-
- /**
- * Create new instance to receive packet.
- */
- @Nonnull
- CheckRecipeResult newInstance();
-
- /**
- * Encode value to sync.
- */
- void encode(@Nonnull PacketBuffer buffer);
-
- /**
- * Decode synced value.
- */
- void decode(PacketBuffer buffer);
-
- /**
* @return If this message should stay on GUI when the machine is shut down.
*/
default boolean persistsOnShutdown() {