public class PlayerBedLeaveEvent extends PlayerEvent
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerBedLeaveEvent(@NotNull Player who,
                   @NotNull Block bed,
                   boolean setBedSpawn) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| @NotNull Block | getBed() | Returns the bed block involved in this event. | 
| static @NotNull HandlerList | getHandlerList() | |
| @NotNull HandlerList | getHandlers() | |
| 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. | 
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@NotNull public @NotNull Block getBed()
public boolean shouldSetSpawnLocation()
Player.
 Player's spawn location, use
 HumanEntity.setBedSpawnLocation(Location).public void setSpawnLocation(boolean setBedSpawn)
Player.
 Player's spawn location, use
 HumanEntity.setBedSpawnLocation(Location).setBedSpawn - true to change the new spawn location@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.