public static class PotionEvent.PotionAddedEvent extends PotionEvent
Cancelable
This Event does not have a Result.PotionEvent.PotionAddedEvent, PotionEvent.PotionApplicableEvent, PotionEvent.PotionExpiryEvent, PotionEvent.PotionRemoveEventLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Modifier and Type | Field and Description |
|---|---|
private PotionEffect |
oldEffect |
effect| Constructor and Description |
|---|
PotionAddedEvent(EntityLivingBase living,
PotionEffect oldEffect,
PotionEffect newEffect) |
| Modifier and Type | Method and Description |
|---|---|
PotionEffect |
getOldPotionEffect() |
PotionEffect |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setupprivate final PotionEffect oldEffect
public PotionAddedEvent(EntityLivingBase living, PotionEffect oldEffect, PotionEffect newEffect)
@Nonnull public PotionEffect getPotionEffect()
PotionEventgetPotionEffect in class PotionEvent@Nullable public PotionEffect getOldPotionEffect()