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.EntityConstructing, EntityEvent.EyeHeight| Modifier and Type | Field and Description |
|---|---|
private EffectInstance |
oldEffect |
effect| Constructor and Description |
|---|
PotionAddedEvent(LivingEntity living,
EffectInstance oldEffect,
EffectInstance newEffect) |
| Modifier and Type | Method and Description |
|---|---|
EffectInstance |
getOldPotionEffect() |
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLivinggetEntityprivate final EffectInstance oldEffect
public PotionAddedEvent(LivingEntity living, EffectInstance oldEffect, EffectInstance newEffect)
@Nonnull public EffectInstance getPotionEffect()
PotionEventgetPotionEffect in class PotionEvent@Nullable public EffectInstance getOldPotionEffect()