Package org.bukkit.event.player
Class PlayerRespawnEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRespawnEvent
Called when a player respawns.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructorsConstructorDescriptionPlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn) Deprecated.PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListGets the current respawn locationbooleanGets whether the respawn location is the player's respawn anchor.booleanGets whether the respawn location is the player's bed.voidsetRespawnLocation(Location respawnLocation) Sets the new respawn locationMethods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
PlayerRespawnEvent@Deprecated public PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn) Deprecated.
- 
PlayerRespawnEvent
 
- 
- 
Method Details- 
getRespawnLocationGets the current respawn location- Returns:
- Location current respawn location
 
- 
setRespawnLocationSets the new respawn location- Parameters:
- respawnLocation- new location for the respawn
 
- 
isBedSpawnpublic boolean isBedSpawn()Gets whether the respawn location is the player's bed.- Returns:
- true if the respawn location is the player's bed.
 
- 
isAnchorSpawnpublic boolean isAnchorSpawn()Gets whether the respawn location is the player's respawn anchor.- Returns:
- true if the respawn location is the player's respawn anchor.
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-