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.EntityConstructingeffect| Constructor and Description |
|---|
PotionAddedEvent(EntityLivingBase living,
PotionEffect oldEffect,
PotionEffect newEffect) |
| Modifier and Type | Method and Description |
|---|---|
PotionEffect |
getOldPotionEffect() |
PotionEffect |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLivinggetEntitypublic PotionAddedEvent(EntityLivingBase living, PotionEffect oldEffect, PotionEffect newEffect)
@Nonnull public PotionEffect getPotionEffect()
PotionEventgetPotionEffect in class PotionEvent@Nullable public PotionEffect getOldPotionEffect()