Class MobEffectEvent.Remove
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
net.minecraftforge.event.entity.living.MobEffectEvent.Remove
- Enclosing class:
- MobEffectEvent
This Event is fired when a
MobEffect
is about to get removed from an Entity.
This Event is Cancelable
. If canceled, the effect will not be removed.
This Event does not have a result.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.MobEffectEvent
MobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.Remove
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, EntityEvent.EyeHeight, EntityEvent.Size
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
Fields inherited from class net.minecraftforge.event.entity.living.MobEffectEvent
effectInstance
-
Constructor Summary
ConstructorDescriptionRemove
(LivingEntity living, MobEffect effect) Remove
(LivingEntity living, MobEffectInstance effectInstance) -
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
-
effect
-
-
Constructor Details
-
Remove
-
Remove
-
-
Method Details
-
getEffect
- Returns:
- the
MobEffectEvent
which is being removed from the entity
-
getEffectInstance
- Overrides:
getEffectInstance
in classMobEffectEvent
- Returns:
- the
MobEffectInstance
. In the remove event, this can be null if the entity does not have aMobEffect
of the right type active.
-