public static class PotionEvent.PotionAddedEvent extends PotionEvent
Cancelable
This Event does not have a Result.PotionEvent.PotionAddedEvent, PotionEvent.PotionApplicableEvent, PotionEvent.PotionExpiryEvent, PotionEvent.PotionRemoveEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.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.
|
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final PotionEffect oldEffect
public PotionAddedEvent(EntityLivingBase living, PotionEffect oldEffect, PotionEffect newEffect)
@Nonnull public PotionEffect getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent
@Nullable public PotionEffect getOldPotionEffect()