public class PlayerBedLeaveEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor and Description |
|---|
PlayerBedLeaveEvent(Player who,
Block bed,
boolean setBedSpawn) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBed()
Returns the bed block involved in this event.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setCancelled(boolean cancelled)
Sets the cancellation state of this event.
|
void |
setSpawnLocation(boolean setBedSpawn)
Set if this event should set the new spawn location for the
Player. |
boolean |
shouldSetSpawnLocation()
Get if this event should set the new spawn location for the
Player. |
getPlayergetEventName, isAsynchronous@NotNull public Block getBed()
public boolean shouldSetSpawnLocation()
Player.
Player's spawn location, use
Player.setBedSpawnLocation(Location).public void setSpawnLocation(boolean setBedSpawn)
Player.
Player's spawn location, use
Player.setBedSpawnLocation(Location).setBedSpawn - true to change the new spawn locationpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.