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.PotionRemoveEventLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Resulteffect| コンストラクタと説明 |
|---|
PotionApplicableEvent(LivingEntity living,
EffectInstance effect) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic PotionApplicableEvent(LivingEntity living, EffectInstance effect)
@Nonnull public EffectInstance getPotionEffect()
PotionEventgetPotionEffect クラス内 PotionEvent