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.RemoveNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result - 
Field Summary
FieldsFields inherited from class net.minecraftforge.event.entity.living.MobEffectEvent
effectInstance - 
Constructor Summary
ConstructorsConstructorDescriptionRemove(LivingEntity living, MobEffect effect) Remove(LivingEntity living, MobEffectInstance effectInstance)  - 
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityMethods 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 
MobEffectEventwhich is being removed from the entity 
 - 
getEffectInstance
- Overrides:
 getEffectInstancein classMobEffectEvent- Returns:
 - the 
MobEffectInstance. In the remove event, this can be null if the entity does not have aMobEffectof the right type active. 
 
 -