Class PotionEvent
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
- Direct Known Subclasses:
PotionEvent.PotionAddedEvent
,PotionEvent.PotionApplicableEvent
,PotionEvent.PotionExpiryEvent
,PotionEvent.PotionRemoveEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This Event is fired when a new Potion is added to the Entity.static class
This Event is fired to check if a Potion can get applied to an Entity.static class
This Event is fired when a Potion effect expires on an Entity.static class
This Event is fired when a Potion is about to get removed from an Entity.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.EnteringChunk, 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
-
Constructor Summary
-
Method Summary
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
-
effect
-
-
Constructor Details
-
PotionEvent
-
-
Method Details
-
getPotionEffect
Retuns the PotionEffect.
-