public enum EventPriority extends Enum<EventPriority>
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 nor unimportant, and may be ran
normally
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
No modifications to the event should be made under this priority
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 nameNullPointerException
- if the argument is nullpublic int getSlot()
Copyright © 2021. All rights reserved.