Package me.hackware.api.event.impl
Class PlayerDeathEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.PlayerDeathEvent
Fired when a player dies (local or remote).
For the local player, this is detected via health reaching zero.
For remote players, this is detected via the death animation entity event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.player.PlayerThe player that died.booleanWhether the dead player is the local player.Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
PlayerDeathEvent
public PlayerDeathEvent(net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer()The player that died. -
isLocalPlayer
public boolean isLocalPlayer()Whether the dead player is the local player.
-