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
public class PotionEvent extends LivingEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PotionEvent.PotionAddedEvent
This Event is fired when a new Potion is added to the Entity.static class
PotionEvent.PotionApplicableEvent
This Event is fired to check if a Potion can get applied to an Entity.static class
PotionEvent.PotionExpiryEvent
This Event is fired when a Potion effect expires on an Entity.static class
PotionEvent.PotionRemoveEvent
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
-
-
Field Summary
Fields Modifier and Type Field Description protected EffectInstance
effect
-
Constructor Summary
Constructors Constructor Description PotionEvent(LivingEntity living, EffectInstance effect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EffectInstance
getPotionEffect()
Retuns the PotionEffect.-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Field Detail
-
effect
@Nullable protected final EffectInstance effect
-
-
Constructor Detail
-
PotionEvent
public PotionEvent(LivingEntity living, EffectInstance effect)
-
-
Method Detail
-
getPotionEffect
@Nullable public EffectInstance getPotionEffect()
Retuns the PotionEffect.
-
-