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
Nested ClassesModifier and TypeClassDescriptionstatic classThis event is fired when a newMobEffectInstanceis added to an entity.static classThis event is fired to check if aMobEffectInstancecan be applied to an entity.static classThis event is fired when aMobEffectInstanceexpires on an entity.static classThis Event is fired when aMobEffectis about to get removed from an Entity.Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMobEffectEvent(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
-