public class PlayerRespawnEvent extends PlayerEvent
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerRespawnEvent(@NotNull Player respawnPlayer,
                  @NotNull Location respawnLocation,
                  boolean isBedSpawn) | 
| Modifier and Type | Method | 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 | 
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@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 © 2020. All rights reserved.