public class PlayerBedLeaveEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
PlayerBedLeaveEvent(Player who,
Block bed,
boolean setBedSpawn) |
Modifier and Type | Method | Description |
---|---|---|
Block |
getBed() |
Returns the bed block involved in this event.
|
static HandlerList |
getHandlerList() |
|
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, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
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 HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.