|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EventPriority> org.bukkit.event.EventPriority
public enum EventPriority
Represents an event's priority in execution
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
int |
getSlot()
|
static EventPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EventPriority[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EventPriority LOWEST
public static final EventPriority LOW
public static final EventPriority NORMAL
public static final EventPriority HIGH
public static final EventPriority HIGHEST
public static final EventPriority MONITOR
Method Detail |
---|
public static EventPriority[] values()
for (EventPriority c : EventPriority.values()) System.out.println(c);
public static EventPriority valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getSlot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |