public class PlayerRespawnEvent extends PlayerEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerRespawnEvent.RespawnFlag |
Event.Result
player
Constructor and Description |
---|
PlayerRespawnEvent(@NotNull Player respawnPlayer,
@NotNull Location respawnLocation,
boolean isBedSpawn)
Deprecated.
|
PlayerRespawnEvent(@NotNull Player respawnPlayer,
@NotNull Location respawnLocation,
boolean isBedSpawn,
boolean isAnchorSpawn)
Deprecated.
|
PlayerRespawnEvent(@NotNull Player respawnPlayer,
@NotNull Location respawnLocation,
boolean isBedSpawn,
boolean isAnchorSpawn,
ImmutableSet.Builder<PlayerRespawnEvent.RespawnFlag> respawnFlags) |
Modifier and Type | Method and Description |
---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
Set<PlayerRespawnEvent.RespawnFlag> |
getRespawnFlags()
Get the set of flags that apply to this respawn.
|
@NotNull 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(@NotNull Location respawnLocation)
Sets the new respawn location
|
getPlayer
callEvent, getEventName, isAsynchronous
@Deprecated public PlayerRespawnEvent(@NotNull @NotNull Player respawnPlayer, @NotNull @NotNull Location respawnLocation, boolean isBedSpawn)
@Deprecated public PlayerRespawnEvent(@NotNull @NotNull Player respawnPlayer, @NotNull @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn)
public PlayerRespawnEvent(@NotNull @NotNull Player respawnPlayer, @NotNull @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn, @NotNull ImmutableSet.Builder<PlayerRespawnEvent.RespawnFlag> respawnFlags)
@NotNull public @NotNull Location getRespawnLocation()
public void setRespawnLocation(@NotNull @NotNull Location respawnLocation)
respawnLocation
- new location for the respawnpublic boolean isBedSpawn()
public boolean isAnchorSpawn()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
@NotNull public Set<PlayerRespawnEvent.RespawnFlag> getRespawnFlags()
Copyright © 2021. All rights reserved.