public static class PotionEvent.PotionRemoveEvent 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 Potion |
potion |
effect
Constructor and Description |
---|
PotionRemoveEvent(EntityLivingBase living,
Potion potion) |
PotionRemoveEvent(EntityLivingBase living,
PotionEffect effect) |
Modifier and Type | Method and Description |
---|---|
Potion |
getPotion() |
PotionEffect |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final Potion potion
public PotionRemoveEvent(EntityLivingBase living, Potion potion)
public PotionRemoveEvent(EntityLivingBase living, PotionEffect effect)
public Potion getPotion()
@Nullable public PotionEffect getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent
Potion
of the right type active.