Class EntityDeathEvent

java.lang.Object
com.welcome234.pluginsystem.events.EntityDeathEvent

public class EntityDeathEvent extends Object
Called when an entity dies
  • Constructor Details

  • Method Details

    • getEntity

      public Entity getEntity()
      Gets the entity that has died
      Returns:
      Entity instance
    • getDeathCause

      public EntityDeathEvent.DeathCause getDeathCause()
      Gets the cause of the death
      Returns:
      Death cause
    • getKillerPlayer

      public Player getKillerPlayer()
      Gets the player who killed this entity, or null if the death was not caused by a player
      Returns:
      Player instance