public class PotionEvent extends LivingEvent
Modifier and Type | Class and 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.
|
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
protected EffectInstance |
effect |
Constructor and Description |
---|
PotionEvent(LivingEntity living,
EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
@Nullable protected final EffectInstance effect
public PotionEvent(LivingEntity living, EffectInstance effect)
@Nullable public EffectInstance getPotionEffect()