Interface LivingEvents.Death

Enclosing class:
LivingEvents
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 LivingEvents.Death
An entity is about to die; interrupting keeps it alive. A listener that does should give it some health back, or the next blow kills it.
  • Method Summary

    Modifier and Type
    Method
    Description
    onDeath(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source)
     
  • Method Details

    • onDeath

      EventResult onDeath(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source)