Package com.melluh.servertours.api.event
Enum Class RoutePlaybackEndEvent.EndReason
java.lang.Object
java.lang.Enum<RoutePlaybackEndEvent.EndReason>
com.melluh.servertours.api.event.RoutePlaybackEndEvent.EndReason
- All Implemented Interfaces:
Serializable
,Comparable<RoutePlaybackEndEvent.EndReason>
,Constable
- Enclosing class:
- RoutePlaybackEndEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe tour was stopped prematurely via the APIThe tour was stopped prematurely by (another) player running/tour stop <player/all>
The player exited the tour prematurely by pressing the sneak keyThe tour was ended because the end was reachedThe tour was stopped prematurely because ServerTours was disabledThe player exited the tour prematurely by leaving the server -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static RoutePlaybackEndEvent.EndReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISHED
The tour was ended because the end was reached -
EXITED
The player exited the tour prematurely by pressing the sneak key -
QUIT
The player exited the tour prematurely by leaving the server -
API
The tour was stopped prematurely via the API -
PLUGIN_DISABLED
The tour was stopped prematurely because ServerTours was disabled -
COMMAND
The tour was stopped prematurely by (another) player running/tour stop <player/all>
-
-
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
-