public static enum ControllerBlockEntity.ControllerState extends java.lang.Enum<ControllerBlockEntity.ControllerState>
| Enum Constant and Description |
|---|
INCOMPLETE
In the last scan the border of the loaded area was hit; incomplete multi-blocks to nothing.
|
MULTIPLE_CONTROLLERS
In the last scan another controller was found; only one is allowed per multi-block.
|
READY
The controller is in operational state and can update connected casings each tick.
|
RUNNING
The controller is in operational state and powered, updating connected casings each tick.
|
SCANNING
A scan has been scheduled and will be performed in the next tick.
|
TOO_COMPLEX
In the last scan more than
Settings.maxCasingsPerController casings were found. |
| Modifier and Type | Field and Description |
|---|---|
boolean |
isError
Whether this states is an error state, i.e.
|
java.lang.String |
translateKey
The unlocalized message to display for this status, used to look up the actual
translation from the currently set language on the client when rendering.
|
static ControllerBlockEntity.ControllerState[] |
VALUES
All possible enum values for quick indexing.
|
| Modifier and Type | Method and Description |
|---|---|
static ControllerBlockEntity.ControllerState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ControllerBlockEntity.ControllerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControllerBlockEntity.ControllerState SCANNING
public static final ControllerBlockEntity.ControllerState MULTIPLE_CONTROLLERS
public static final ControllerBlockEntity.ControllerState TOO_COMPLEX
Settings.maxCasingsPerController casings were found.public static final ControllerBlockEntity.ControllerState INCOMPLETE
public static final ControllerBlockEntity.ControllerState READY
public static final ControllerBlockEntity.ControllerState RUNNING
public final boolean isError
public final java.lang.String translateKey
public static final ControllerBlockEntity.ControllerState[] VALUES
public static ControllerBlockEntity.ControllerState[] values()
for (ControllerBlockEntity.ControllerState c : ControllerBlockEntity.ControllerState.values()) System.out.println(c);
public static ControllerBlockEntity.ControllerState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null