Interface ServerLivingEntityEvents.AfterDeath

Enclosing class:
ServerLivingEntityEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerLivingEntityEvents.AfterDeath
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterDeath(LivingEntity entity, DamageSource damageSource)
    Called when a living entity dies.
  • Method Details

    • afterDeath

      void afterDeath(LivingEntity entity, DamageSource damageSource)
      Called when a living entity dies. The death cannot be canceled at this point.
      Parameters:
      entity - the entity
      damageSource - the source of the fatal damage