- 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.
-
Method Summary
void
afterDeath(net.minecraft.world.entity.LivingEntity entity,
net.minecraft.world.damagesource.DamageSource damageSource)
Called when a living entity dies.
-
Method Details
-
afterDeath
void afterDeath(net.minecraft.world.entity.LivingEntity entity,
net.minecraft.world.damagesource.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