Package com.velocitypowered.api.event
Enum Class PostOrder
- All Implemented Interfaces:
Serializable,Comparable<PostOrder>,Constable
Represents the order an event will be posted to a listener method, relative to other listeners.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Indicates the listener should be invoked early, but after listeners withFIRST.Indicates the listener should be invoked first, before any other listener.Indicates the listener should be invoked last, after all other listeners.Indicates the listener should be invoked later in the execution order, after listeners withNORMAL.Indicates the listener should be invoked in the normal order of execution. -
Method Summary
-
Enum Constant Details
-
FIRST
Indicates the listener should be invoked first, before any other listener. This order is suitable for listeners that must handle the event before others. -
EARLY
Indicates the listener should be invoked early, but after listeners withFIRST. This order is suitable for handling the event before most other listeners. -
NORMAL
Indicates the listener should be invoked in the normal order of execution. This is the default and most commonly used order. -
LATE
Indicates the listener should be invoked later in the execution order, after listeners withNORMAL. This order is suitable for listeners that should observe the results of earlier listeners. -
LAST
Indicates the listener should be invoked last, after all other listeners. This order is suitable for listeners that should run only after all others have completed handling the event. -
CUSTOM
Deprecated.No longer required, you only need to specifySubscribe.priority().Previously used to specify thatSubscribe.priority()should be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
Subscribe.priority().