类 LivingDamageEvent

java.lang.Object
net.neoforged.bus.api.Event
直接已知子类:
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.
另请参阅:
  • 构造器详细资料

    • LivingDamageEvent

      private LivingDamageEvent(LivingEntity entity)