public class PlayerRespawnEvent extends PlayerEvent
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerRespawnEvent(Player respawnPlayer,
                  Location respawnLocation,
                  boolean isBedSpawn) | Deprecated. | 
| PlayerRespawnEvent(Player respawnPlayer,
                  Location respawnLocation,
                  boolean isBedSpawn,
                  boolean isAnchorSpawn) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| Location | getRespawnLocation() | Gets the current respawn location | 
| boolean | isAnchorSpawn() | Gets whether the respawn location is the player's respawn anchor. | 
| boolean | isBedSpawn() | Gets whether the respawn location is the player's bed. | 
| void | setRespawnLocation(Location respawnLocation) | Sets the new respawn location | 
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@Deprecated public PlayerRespawnEvent(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn)
@NotNull public Location getRespawnLocation()
public void setRespawnLocation(@NotNull Location respawnLocation)
respawnLocation - new location for the respawnpublic boolean isBedSpawn()
public boolean isAnchorSpawn()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.