Class MobEffectEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.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 MinecraftForge.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.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
effectInstance
-
-
Constructor Details
-
MobEffectEvent
-
-
Method Details
-
getEffectInstance
-