org.bukkit.event.player
Class PlayerRespawnEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.player.PlayerEvent
          extended by org.bukkit.event.player.PlayerRespawnEvent

public class PlayerRespawnEvent
extends PlayerEvent


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
 
Constructor Summary
PlayerRespawnEvent(Player respawnPlayer, Location respawnLocation, boolean isBedSpawn)
           
 
Method Summary
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 Location getRespawnLocation()
          Gets the current respawn location
 boolean isBedSpawn()
          Gets whether the respawn location is the player's bed.
 void setRespawnLocation(Location respawnLocation)
          Sets the new respawn location
 
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerRespawnEvent

public PlayerRespawnEvent(Player respawnPlayer,
                          Location respawnLocation,
                          boolean isBedSpawn)
Method Detail

getRespawnLocation

public Location getRespawnLocation()
Gets the current respawn location

Returns:
Location current respawn location

setRespawnLocation

public void setRespawnLocation(Location respawnLocation)
Sets the new respawn location

Parameters:
respawnLocation - new location for the respawn

isBedSpawn

public boolean isBedSpawn()
Gets whether the respawn location is the player's bed.

Returns:
true if the respawn location is the player's bed.

getHandlers

public HandlerList getHandlers()
Specified by:
getHandlers in class Event

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2014. All rights reserved.