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