Class MobEffectEvent
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
- Direct Known Subclasses:
MobEffectEvent.Added
,MobEffectEvent.Applicable
,MobEffectEvent.Expired
,MobEffectEvent.Remove
This event is fired when an interaction between a
LivingEntity
and MobEffectInstance
happens.
All children of this event are fired on the NeoForge.EVENT_BUS
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired when a newMobEffectInstance
is added to an entity.static class
This event is fired to check if aMobEffectInstance
can be applied to an entity.static class
This event is fired when aMobEffectInstance
expires on an entity.static class
This Event is fired when aMobEffect
is about to get removed from an Entity.Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MobEffectEvent
(LivingEntity living, MobEffectInstance effectInstance) -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Field Details
-
effectInstance
-
-
Constructor Details
-
MobEffectEvent
-
-
Method Details
-
getEffectInstance
-