public class PlayerRespawnEvent extends PlayerEvent
Event.Resultplayer| Constructor and Description | 
|---|
PlayerRespawnEvent(@NotNull Player respawnPlayer,
                  @NotNull Location respawnLocation,
                  boolean isBedSpawn)  | 
| Modifier and Type | Method and Description | 
|---|---|
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull Location | 
getRespawnLocation()
Gets the current respawn location 
 | 
boolean | 
isBedSpawn()
Gets whether the respawn location is the player's bed. 
 | 
void | 
setRespawnLocation(@NotNull Location respawnLocation)
Sets the new respawn location 
 | 
getPlayergetEventName, isAsynchronous@NotNull public @NotNull Location getRespawnLocation()
public void setRespawnLocation(@NotNull
                               @NotNull Location respawnLocation)
respawnLocation - new location for the respawnpublic boolean isBedSpawn()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.