public class PlayerDeathEvent extends PlayerEvent implements Cancellable
PlayerRespawnEvent
Constructor and Description |
---|
PlayerDeathEvent(Player player,
Player killer,
Vector3f deathPosition) |
Modifier and Type | Method and Description |
---|---|
Vector3f |
getDeathPosition()
Gets the position where the player died.
|
Player |
getKiller()
Gets the killer, i.e. the player who is responsible for the death of this
player.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayer
public Vector3f getDeathPosition()
public Player getKiller()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- set to true if you want to cancel this event.