Enum ReplaceableResultSupplier.ReplaceState
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ReplaceableResultSupplier.ReplaceState extends Enum<ReplaceableResultSupplier.ReplaceState>
Represents the outcome of a single slot write-back attempt.
- Since:
5.0.21
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<ReplaceableResultSupplier.ReplaceState>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description UI_CLOSEDThe crafting UI was no longer open when the write-back was attempted.
PLAYER_OFFLINEThe crafter was offline when supply was called.
ITEM_ALREADY_PLACEDThe target slot already contained an item; the write-back was skipped.
TIMEOUTThe entity scheduler did not execute within timeoutMilli milliseconds.
OUT_OF_SLOTS_AREAThe target coordinate is not included in io.github.sakaki_aruka.customcrafter.ui.CraftUIDesigner.Baked.craftSlots; the write-back was skipped.
UNKNOWNReserved for future use. Not set by the current implementation.
SUCCESSThe item was successfully placed into the slot.
-
Method Summary
Modifier and Type Method Description final BooleanisSuccess()Returns trueif and only if this state is SUCCESS.final Array<ReplaceableResultSupplier.ReplaceState>values()final ReplaceableResultSupplier.ReplaceStatevalueOf(String value)final EnumEntries<ReplaceableResultSupplier.ReplaceState>getEntries()-
-
Method Detail
-
isSuccess
final Boolean isSuccess()
Returns
trueif and only if this state is SUCCESS.- Returns:
- Since:
5.0.21
-
values
final Array<ReplaceableResultSupplier.ReplaceState> values()
-
valueOf
final ReplaceableResultSupplier.ReplaceState valueOf(String value)
-
getEntries
final EnumEntries<ReplaceableResultSupplier.ReplaceState> getEntries()
-
-
-
-