Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerRespawnEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerRespawnEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Event

Public Member Functions

 PlayerRespawnEvent (final Player respawnPlayer, final Location respawnLocation, final boolean isBedSpawn)
Location getRespawnLocation ()
void setRespawnLocation (Location respawnLocation)
boolean isBedSpawn ()
HandlerList getHandlers ()
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
final Player getPlayer ()
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 Event (boolean isAsync)
String getEventName ()
abstract HandlerList getHandlers ()
final boolean isAsynchronous ()

Static Public Member Functions

static HandlerList getHandlerList ()

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.player.PlayerEvent
Player player

Detailed Description

Called when a player respawns.

Definition at line 11 of file PlayerRespawnEvent.java.

Member Function Documentation

Location org.bukkit.event.player.PlayerRespawnEvent.getRespawnLocation ( )

Gets the current respawn location

Location current respawn location

Definition at line 27 of file PlayerRespawnEvent.java.

27  {
28  return this.respawnLocation;
29  }
boolean org.bukkit.event.player.PlayerRespawnEvent.isBedSpawn ( )

Gets whether the respawn location is the player's bed.

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

Definition at line 48 of file PlayerRespawnEvent.java.

48  {
49  return this.isBedSpawn;
50  }
void org.bukkit.event.player.PlayerRespawnEvent.setRespawnLocation ( Location  respawnLocation)

Sets the new respawn location

respawnLocationnew location for the respawn

Definition at line 36 of file PlayerRespawnEvent.java.

References org.bukkit.Location.getWorld().

36  {
37  Validate.notNull(respawnLocation, "Respawn location can not be null");
38  Validate.notNull(respawnLocation.getWorld(), "Respawn world can not be null");
40  this.respawnLocation = respawnLocation;
41  }

The documentation for this class was generated from the following file: