Enum Class RtpFailEvent.FailureReason
java.lang.Object
java.lang.Enum<RtpFailEvent.FailureReason>
net.godlycow.org.essc.api.rtp.event.RtpFailEvent.FailureReason
- All Implemented Interfaces:
Serializable,Comparable<RtpFailEvent.FailureReason>,Constable
- Enclosing class:
RtpFailEvent
Why an RTP request failed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA request is already active for the player.The cooldown is still ticking.An event listener cancelled the operation.Missing the base RTP permission.The search exhausted its attempts without a safe spot.Not allowed to RTP in the target world.The Bukkit teleport itself failed.The warmup was abandoned mid-flight.The target world has RTP disabled. -
Method Summary
Modifier and TypeMethodDescriptionstatic RtpFailEvent.FailureReasonReturns the enum constant of this class with the specified name.static RtpFailEvent.FailureReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_PERMISSION
Missing the base RTP permission. -
NO_WORLD_PERMISSION
Not allowed to RTP in the target world. -
ALREADY_IN_PROGRESS
A request is already active for the player. -
COOLDOWN_ACTIVE
The cooldown is still ticking. -
WORLD_DISABLED
The target world has RTP disabled. -
NO_SAFE_LOCATION
The search exhausted its attempts without a safe spot. -
TELEPORT_FAILED
The Bukkit teleport itself failed. -
WARMUP_CANCELLED
The warmup was abandoned mid-flight. -
EVENT_CANCELLED
An event listener cancelled the operation.
-
-
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
-