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.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
effectInstance
-
-
Constructor Details
-
MobEffectEvent
-
-
Method Details
-
getEffectInstance
-