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.
|
getPlayerpublic Vector3f getDeathPosition()
public Player getKiller()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.