public class PlayerRespawnEvent extends PlayerEvent
Event.Result
player
构造器和说明 |
---|
PlayerRespawnEvent(Player respawnPlayer,
Location respawnLocation,
boolean isBedSpawn) |
限定符和类型 | 方法和说明 |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
Location |
getRespawnLocation()
获取当前重生的位置.
|
boolean |
isBedSpawn()
获取此玩家是否在他的床上重生.
|
void |
setRespawnLocation(Location respawnLocation)
设置一个新的重生位置.
|
getPlayer
getEventName, isAsynchronous
public Location getRespawnLocation()
原文:Gets the current respawn location
public void setRespawnLocation(Location respawnLocation)
原文:Sets the new respawn location
respawnLocation
- 新的重生位置public boolean isBedSpawn()
原文:Gets whether the respawn location is the player's bed.
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()