public static class PotionEvent.PotionApplicableEvent extends PotionEvent
Cancelable
This Event has a result Event.HasResult
.
ALLOW will apply this potion effect.
DENY will not apply this potion effect.
DEFAULT will run vanilla logic to determine if this potion isApplicable.PotionEvent.PotionAddedEvent, PotionEvent.PotionApplicableEvent, PotionEvent.PotionExpiryEvent, PotionEvent.PotionRemoveEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
effect
Constructor and Description |
---|
PotionApplicableEvent(LivingEntity living,
EffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
public PotionApplicableEvent(LivingEntity living, EffectInstance effect)
@Nonnull public EffectInstance getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent