public enum ListenerPriority extends java.lang.Enum<ListenerPriority>
Enum Constant and Description |
---|
HIGH
Event call is of high importance.
|
HIGHEST
Event call is critical and must have the final say in what happens to the
event.
|
LOW
Event call is of low importance.
|
LOWEST
Event call is of very low importance and should be ran first, to allow
other plugins to further customise the outcome.
|
MONITOR
Event is listened to purely for monitoring the outcome of an event.
|
NORMAL
Event call is neither important or unimportant, and may be ran normally.
|
Modifier and Type | Method and Description |
---|---|
int |
getSlot()
A low slot represents a low priority.
|
static ListenerPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ListenerPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListenerPriority LOWEST
public static final ListenerPriority LOW
public static final ListenerPriority NORMAL
public static final ListenerPriority HIGH
public static final ListenerPriority HIGHEST
public static final ListenerPriority MONITOR
public static ListenerPriority[] values()
for (ListenerPriority c : ListenerPriority.values()) System.out.println(c);
public static ListenerPriority 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 getSlot()