Package org.bukkit.event.player
Enum Class PlayerSpawnChangeEvent.Cause
- All Implemented Interfaces:
- Serializable,- Comparable<PlayerSpawnChangeEvent.Cause>,- Constable
- Enclosing class:
- PlayerSpawnChangeEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic PlayerSpawnChangeEvent.CauseReturns 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- 
COMMANDIndicate the spawn was set by a command.
- 
BEDIndicate the spawn was set by the player interacting with a bed.
- 
RESPAWN_ANCHORIndicate the spawn was set by the player interacting with a respawn anchor.
- 
PLUGINIndicate the spawn was set by the use of plugins.
- 
RESETIndicate the spawn was reset by an invalid bed position or empty respawn anchor.
- 
UNKNOWNIndicate the spawn was caused by an unknown reason.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-