public class PotionEvent extends LivingEvent
修飾子とタイプ | クラスと説明 |
---|---|
static class |
PotionEvent.PotionAddedEvent
This Event is fired when a new Potion is added to the Entity.
|
static class |
PotionEvent.PotionApplicableEvent
This Event is fired to check if a Potion can get applied to an Entity.
|
static class |
PotionEvent.PotionExpiryEvent
This Event is fired when a Potion effect expires on an Entity.
|
static class |
PotionEvent.PotionRemoveEvent
This Event is fired when a Potion is about to get removed from an Entity.
|
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Event.HasResult, Event.Result
修飾子とタイプ | フィールドと説明 |
---|---|
protected EffectInstance |
effect |
コンストラクタと説明 |
---|
PotionEvent(LivingEntity living,
EffectInstance effect) |
修飾子とタイプ | メソッドと説明 |
---|---|
EffectInstance |
getPotionEffect()
Retuns the PotionEffect.
|
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
@Nullable protected final EffectInstance effect
public PotionEvent(LivingEntity living, EffectInstance effect)
@Nullable public EffectInstance getPotionEffect()