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, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private Effect |
potion |
effect
Constructor and Description |
---|
PotionRemoveEvent(LivingEntity living,
Effect potion) |
PotionRemoveEvent(LivingEntity living,
EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
Effect |
getPotion() |
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
private final Effect potion
public PotionRemoveEvent(LivingEntity living, Effect potion)
public PotionRemoveEvent(LivingEntity living, EffectInstance effect)
public Effect getPotion()
@Nullable public EffectInstance getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent
Potion
of the right type active.