public static class PotionEvent.PotionApplicableEvent extends PotionEvent
Cancelable
This Event has a result 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
Event.HasResult, Event.Result
effect
Constructor and Description |
---|
PotionApplicableEvent(EntityLivingBase living,
PotionEffect effect) |
Modifier and Type | Method and Description |
---|---|
PotionEffect |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public PotionApplicableEvent(EntityLivingBase living, PotionEffect effect)
@Nonnull public PotionEffect getPotionEffect()
PotionEvent
getPotionEffect
in class PotionEvent