Interface EntityDeathEvent

All Superinterfaces:
Event
All Known Subinterfaces:
PlayerDeathEvent

public interface EntityDeathEvent extends Event
Fired when an entity dies, once its health reached zero and before it is removed from the world.
Since:
0.1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the entity that died.
    Returns the entity credited with the kill, or null for environmental deaths.
  • Method Details

    • entity

      Entity entity()
      Returns the entity that died.
      Returns:
      the entity that died
      Since:
      0.1.0
    • killer

      @Nullable Entity killer()
      Returns the entity credited with the kill, or null for environmental deaths.
      Returns:
      the entity credited with the kill, or null for environmental deaths
      Since:
      0.1.0