Class LivingDamageEvent

java.lang.Object
net.neoforged.bus.api.Event
Direct Known Subclasses:
LivingDamageEvent.Post, LivingDamageEvent.Pre

public abstract class LivingDamageEvent extends LivingEvent
LivingDamageEvent captures an entity's loss of health. At this stage in the damage sequence, all reduction effects have been applied.
LivingDamageEvent.Pre allows for modification of the damage value before it is applied to the entity's health.
LivingDamageEvent.Post contains an immutable representation of the entire damage sequence and allows for reference to the values accrued at each step.
See Also:
  • Constructor Details

    • LivingDamageEvent

      private LivingDamageEvent(net.minecraft.world.entity.LivingEntity entity)