public enum BlockState extends java.lang.Enum<BlockState>
Enum Constant and Description |
---|
DESTROYED |
INIT |
VALID |
WRITE_QUEUED |
Modifier and Type | Method and Description |
---|---|
boolean |
isDestroyed() |
boolean |
isValid() |
boolean |
isWrite() |
BlockState |
toDestroy() |
BlockState |
toState(BlockState toState) |
BlockState |
toValid() |
BlockState |
toWrite() |
static BlockState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockState INIT
public static final BlockState VALID
public static final BlockState WRITE_QUEUED
public static final BlockState DESTROYED
public static BlockState[] values()
for (BlockState c : BlockState.values()) System.out.println(c);
public static BlockState 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 nullpublic boolean isValid()
public boolean isWrite()
public boolean isDestroyed()
public BlockState toValid()
public BlockState toWrite()
public BlockState toDestroy()
public BlockState toState(BlockState toState)