类 LivingDamageEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingDamageEvent
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.- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static class
LivingDamageEvent.Post is fired after health is modified on the entity.
The fields in this event represent the FINAL values of what was applied to the entity.static class
LivingDamageEvent.Pre is fired when an Entity is set to be hurt.从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
构造器概要
构造器 -
方法概要
从类继承的方法 net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
构造器详细资料
-
LivingDamageEvent
-