Enum PlayerWarpTeleportEvent.Cause
java.lang.Object
java.lang.Enum<PlayerWarpTeleportEvent.Cause>
com.olziedev.playerwarps.api.events.warp.PlayerWarpTeleportEvent.Cause
- All Implemented Interfaces:
Serializable
,Comparable<PlayerWarpTeleportEvent.Cause>
,java.lang.constant.Constable
- Enclosing class:
- PlayerWarpTeleportEvent
List of all possible ways a player can warp.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis constant is when a player teleports to the warp using the confirm menu.This constant is when a player teleports to the warp using the favourite warps menu.This constant is when a player teleports to the warp using the my warps menu.This constant is when a player teleports to the warp using the main player warp menu.This constant is when a player teleports to the warp using the random teleport command.This constant is when a player teleports to the warp using the teleport command.This constant is when a player teleports to the warp using the teleport sign.This constant is when a player teleports to the warp using the sponsor menu.This constant is when a player teleports to the warp using the viisted warps menu. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PlayerWarpTeleportEvent.Cause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TELEPORT_COMMAND
This constant is when a player teleports to the warp using the teleport command. -
RANDOM_TELEPORT_COMMAND
This constant is when a player teleports to the warp using the random teleport command. -
TELEPORT_SIGN
This constant is when a player teleports to the warp using the teleport sign. -
VISITED_WARPS_MENU
This constant is when a player teleports to the warp using the viisted warps menu. -
PLAYER_WARP_MENU
This constant is when a player teleports to the warp using the main player warp menu. -
MYWARPS_MENU
This constant is when a player teleports to the warp using the my warps menu. -
FAVOURITE_MENU
This constant is when a player teleports to the warp using the favourite warps menu. -
CONFIRM_MENU
This constant is when a player teleports to the warp using the confirm menu. -
TELEPORT_SPONSOR
This constant is when a player teleports to the warp using the sponsor menu.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-