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
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
public PotionAddedEvent(EntityLivingBase living, PotionEffect oldEffect, PotionEffect newEffect)
@Nonnull public PotionEffect getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent
@Nullable public PotionEffect getOldPotionEffect()