public static class PotionEvent.PotionAddedEvent 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
Event.HasResult, Event.Result
effect
コンストラクタと説明 |
---|
PotionAddedEvent(LivingEntity living,
EffectInstance oldEffect,
EffectInstance newEffect) |
修飾子とタイプ | メソッドと説明 |
---|---|
EffectInstance |
getOldPotionEffect() |
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public PotionAddedEvent(LivingEntity living, EffectInstance oldEffect, EffectInstance newEffect)
@Nonnull public EffectInstance getPotionEffect()
PotionEvent
getPotionEffect
クラス内 PotionEvent
@Nullable public EffectInstance getOldPotionEffect()