Class PlayerDeathEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.PlayerDeathEvent

public class PlayerDeathEvent extends Event
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 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.