Package org.bukkit.event.player
Enum Class PlayerSpawnChangeEvent.Cause
- All Implemented Interfaces:
Serializable
,Comparable<PlayerSpawnChangeEvent.Cause>
,Constable
- Enclosing class:
- PlayerSpawnChangeEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicate the spawn was set by the player interacting with a bed.Indicate the spawn was set by a command.Indicate the spawn was set by the use of plugins.Indicate the spawn was reset by an invalid bed position or empty respawn anchor.Indicate the spawn was set by the player interacting with a respawn anchor.Indicate the spawn was caused by an unknown reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerSpawnChangeEvent.Cause
Returns the enum constant of this class with the specified name.static PlayerSpawnChangeEvent.Cause[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND
Indicate the spawn was set by a command. -
BED
Indicate the spawn was set by the player interacting with a bed. -
RESPAWN_ANCHOR
Indicate the spawn was set by the player interacting with a respawn anchor. -
PLUGIN
Indicate the spawn was set by the use of plugins. -
RESET
Indicate the spawn was reset by an invalid bed position or empty respawn anchor. -
UNKNOWN
Indicate the spawn was caused by an unknown reason.
-
-
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
-