Interface LivingEvents.Damage
- 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.
An entity is about to take damage, before armor and effects reduce it; interrupting stops the damage (no hurt
flash, no knockback). Not fired for damage the entity is immune to anyway.
-
Method Summary
Modifier and TypeMethodDescriptiononDamage(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source, float amount)
-
Method Details
-
onDamage
EventResult onDamage(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source, float amount)
-