public static class PotionEvent.PotionRemoveEvent 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.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.
|
getEntityLivinggetEntityprivate final Effect potion
public PotionRemoveEvent(LivingEntity living, Effect potion)
public PotionRemoveEvent(LivingEntity living, EffectInstance effect)
public Effect getPotion()
@Nullable public EffectInstance getPotionEffect()
PotionEventgetPotionEffect in class PotionEventPotion of the right type active.