Enum ParkourPlayerTeleportEvent.TeleportReason
java.lang.Object
java.lang.Enum<ParkourPlayerTeleportEvent.TeleportReason>
me.block2block.hubparkour.api.events.player.ParkourPlayerTeleportEvent.TeleportReason
- All Implemented Interfaces:
Serializable,Comparable<ParkourPlayerTeleportEvent.TeleportReason>,java.lang.constant.Constable
- Enclosing class:
ParkourPlayerTeleportEvent
public static enum ParkourPlayerTeleportEvent.TeleportReason
extends Enum<ParkourPlayerTeleportEvent.TeleportReason>
The reason of teleport
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse command /parkour checkpointUse command /parkour resetPlayer dropped from platformClick gui item checkpointClick gui item resetPlayer fall in lavaUnknow reasonPlayer fall in water -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknow reason -
COMMAND_RESET
Use command /parkour reset -
COMMAND_CHECKPOINT
Use command /parkour checkpoint -
ITEM_CLICK_RESET
Click gui item reset -
ITEM_CLICK_CHECKPOINT
Click gui item checkpoint -
FALL
Player dropped from platform -
WATER
Player fall in water -
LAVA
Player fall in lava
-
-
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
-