public static enum IslandSetHomeEvent.Reason extends java.lang.Enum<IslandSetHomeEvent.Reason>
Enum Constant and Description |
---|
SAFE_HOME
The home was changed because the old home was not safe.
|
SET_HOME_COMMAND
The home was changed through a command.
|
Modifier and Type | Method and Description |
---|---|
static IslandSetHomeEvent.Reason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IslandSetHomeEvent.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IslandSetHomeEvent.Reason SET_HOME_COMMAND
public static final IslandSetHomeEvent.Reason SAFE_HOME
public static IslandSetHomeEvent.Reason[] values()
for (IslandSetHomeEvent.Reason c : IslandSetHomeEvent.Reason.values()) System.out.println(c);
public static IslandSetHomeEvent.Reason 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