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, 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.
|
getEntityLiving
getEntity
private final EffectInstance oldEffect
public PotionAddedEvent(LivingEntity living, EffectInstance oldEffect, EffectInstance newEffect)
@Nonnull public EffectInstance getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent
@Nullable public EffectInstance getOldPotionEffect()