public enum SimpleEventType extends java.lang.Enum<SimpleEventType>
Enum Constant and Description |
---|
CHAT_MESSAGE_EVENT |
GAME_TICK_EVENT |
Modifier and Type | Method and Description |
---|---|
int |
id() |
static SimpleEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimpleEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleEventType CHAT_MESSAGE_EVENT
public static final SimpleEventType GAME_TICK_EVENT
public static SimpleEventType[] values()
for (SimpleEventType c : SimpleEventType.values()) System.out.println(c);
public static SimpleEventType 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 int id()