blob: 60436b9c3ec12f0766b307106c6feb95c0575ebf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package gregtech.api.recipe.check;
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,
* but can also be status of whether to start the machine. Examples can be found at {@link CheckRecipeResultRegistry}.
* <p>
* Sample instance must be registered to {@link CheckRecipeResultRegistry}.
*/
public interface CheckRecipeResult extends IMachineMessage<CheckRecipeResult> {
/**
* @return If recipe check is successful
*/
boolean wasSuccessful();
/**
* @return If this message should stay on GUI when the machine is shut down.
*/
default boolean persistsOnShutdown() {
return false;
}
}
|