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.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.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. 
 | 
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setupprotected final PotionEffect effect
public PotionEvent(EntityLivingBase living, PotionEffect effect)
public PotionEffect getPotionEffect()