Package dev.itsharshxd.zentrix.api.world
Enum Class SkyDropResult
- All Implemented Interfaces:
Serializable,Comparable<SkyDropResult>,Constable
What became of an attempt to put a player back into the sky.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNothing happened: the player was offline, or the teleport was refused.The player was placed, but no glider was deployed.The player was placed and their glider was deployed. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlaced()Whether the player ended up at the drop point.static SkyDropResultReturns the enum constant of this class with the specified name.static SkyDropResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The player was placed and their glider was deployed. -
PLACED_WITHOUT_GLIDER
The player was placed, but no glider was deployed.Either none was asked for, or Matrix Gliders is not installed. The drop itself stands either way, so a caller only has to react to this if the fall matters to it.
-
FAILED
Nothing happened: the player was offline, or the teleport was refused.
-
-
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
-
isPlaced
public boolean isPlaced()Whether the player ended up at the drop point.
-