类 MobEffectEvent.Remove
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.MobEffectEvent
net.neoforged.neoforge.event.entity.living.MobEffectEvent.Remove
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
- 封闭类:
MobEffectEvent
public static class MobEffectEvent.Remove
extends MobEffectEvent
implements net.neoforged.bus.api.ICancellableEvent
This Event is fired when a
MobEffect
is about to get removed from an Entity.
This Event is ICancellableEvent
. If canceled, the effect will not be removed.
This Event does not have a result.-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.living.MobEffectEvent
MobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.Remove
从类继承的嵌套类/接口 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.MobEffectEvent
effectInstance
-
构造器概要
构造器构造器说明Remove
(LivingEntity living, Holder<MobEffect> effect) Remove
(LivingEntity living, MobEffectInstance effectInstance) -
方法概要
从类继承的方法 net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
字段详细资料
-
effect
-
-
构造器详细资料
-
Remove
-
Remove
-
-
方法详细资料
-
getEffect
- 返回:
- the
MobEffect
which is being removed from the entity
-
getEffectInstance
- 覆盖:
getEffectInstance
在类中MobEffectEvent
- 返回:
- the
MobEffectInstance
. In the remove event, this can be null if the entity does not have aMobEffect
of the right type active.
-