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.PotionRemoveEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.SizeNested 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.PotionEvent
effect -
Constructor Summary
ConstructorsConstructorDescriptionPotionRemoveEvent(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
getEntityLivingMethods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntityMethods 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:PotionEventRetuns the PotionEffect.- Overrides:
getPotionEffectin classPotionEvent- Returns:
- the PotionEffect. In the remove event this can be null if the Entity does not have a
MobEffectof the right type active.
-