Enum Class PlayerSetSpawnEvent.Cause
java.lang.Object
java.lang.Enum<PlayerSetSpawnEvent.Cause>
com.destroystokyo.paper.event.player.PlayerSetSpawnEvent.Cause
- All Implemented Interfaces:
Serializable
,Comparable<PlayerSetSpawnEvent.Cause>
,Constable
- Enclosing class:
PlayerSetSpawnEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen a player interacts successfully with a bed.When the/spawnpoint
command is used on a player.When a player respawns.When a plugin usesPlayer.setRespawnLocation(Location)
orPlayer.setRespawnLocation(Location, boolean)
.When a player interacts successfully with a respawn anchor.Fallback cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerSetSpawnEvent.Cause
Returns the enum constant of this class with the specified name.static PlayerSetSpawnEvent.Cause[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BED
When a player interacts successfully with a bed. -
RESPAWN_ANCHOR
When a player interacts successfully with a respawn anchor. -
PLAYER_RESPAWN
When a player respawns. -
COMMAND
When the/spawnpoint
command is used on a player. -
PLUGIN
When a plugin usesPlayer.setRespawnLocation(Location)
orPlayer.setRespawnLocation(Location, boolean)
. -
UNKNOWN
Fallback cause.
-
-
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
-