getEffectiveDamage

fun LivingEntity.getEffectiveDamage(source: DamageSource, damage: Float, ignoreShield: Boolean = false, includeAbsorption: Boolean = false): Float

Mirrors the vanilla damage-reduction pipeline after the base amount is known.

By default, this returns the remaining damage before absorption so callers can compare it against health + absorptionAmount. Pass includeAbsorption to mirror the final health loss applied by vanilla.

See also

Player

#hurtServer

LivingEntity

#actuallyHurt