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
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
protected PotionEffect |
effect |
Constructor and Description |
---|
PotionEvent(EntityLivingBase living,
PotionEffect effect) |
Modifier and Type | Method and Description |
---|---|
PotionEffect |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
@Nullable protected final PotionEffect effect
public PotionEvent(EntityLivingBase living, PotionEffect effect)
@Nullable public PotionEffect getPotionEffect()