- 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
boolean
Called when a living entity takes fatal damage (before totems of undying can take effect).
-
Method Details
-
allowDeath
Called when a living entity takes fatal damage (before totems of undying can take effect).
- Parameters:
entity
- the entity
damageSource
- the source of the fatal damage
damageAmount
- the amount of damage that has killed the entity
- Returns:
- true if the death should go ahead, false to cancel the death.