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 SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.MobEffectEventMobEffectEvent.Added, MobEffectEvent.Applicable, MobEffectEvent.Expired, MobEffectEvent.RemoveNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEventLivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsFields inherited from class net.minecraftforge.event.entity.living.MobEffectEventeffectInstance
- 
Constructor SummaryConstructorsConstructorDescriptionRemove(LivingEntity living, MobEffect effect) Remove(LivingEntity living, MobEffectInstance effectInstance) 
- 
Method SummaryMethods inherited from class net.minecraftforge.event.entity.living.LivingEventgetEntityMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
effect
 
- 
- 
Constructor Details- 
Remove
- 
Remove
 
- 
- 
Method Details- 
getEffect- Returns:
- the MobEffectEventwhich is being removed from the entity
 
- 
getEffectInstance- Overrides:
- getEffectInstancein class- MobEffectEvent
- Returns:
- the MobEffectInstance. In the remove event, this can be null if the entity does not have aMobEffectof the right type active.
 
 
-