Interface EntityEvent.LivingDeath
- Enclosing interface:
- EntityEvent
public static interface EntityEvent.LivingDeath
-
Method Summary
Modifier and TypeMethodDescriptiondie
(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source) Invoked before a living entity dies.
-
Method Details
-
die
EventResult die(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source) Invoked before a living entity dies. Equivalent to Forge'sLivingDeathEvent
event.- Parameters:
entity
- The entity that is about to die.source
- The source of damage triggering the death.- Returns:
- A
EventResult
determining the outcome of the event, the execution of the entity death may be cancelled by the result.
-