Class PotionEvent.PotionRemoveEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.PotionEvent
net.minecraftforge.event.entity.living.PotionEvent.PotionRemoveEvent
- Enclosing class:
- PotionEvent
This Event is fired when a Potion is about to get removed from an Entity.
This Event is
Cancelable
.
This Event does not have a result.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.PotionEvent
PotionEvent.PotionAddedEvent, PotionEvent.PotionApplicableEvent, PotionEvent.PotionExpiryEvent, PotionEvent.PotionRemoveEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, 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.PotionEvent
effect
-
Constructor Summary
ConstructorDescriptionPotionRemoveEvent(LivingEntity living, MobEffect potion)
PotionRemoveEvent(LivingEntity living, MobEffectInstance effect)
-
Method Summary
Modifier and TypeMethodDescriptionRetuns the PotionEffect.Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
potion
-
-
Constructor Details
-
PotionRemoveEvent
-
PotionRemoveEvent
-
-
Method Details
-
getPotion
- Returns:
- the Potion which is tried to remove from the Entity.
-
getPotionEffect
Description copied from class:PotionEvent
Retuns the PotionEffect.- Overrides:
getPotionEffect
in classPotionEvent
- Returns:
- the PotionEffect. In the remove event this can be null if the Entity does not have a
MobEffect
of the right type active.
-