类 PotionColorCalculationEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.PotionColorCalculationEvent
Fires after Potion Color Calculation.
this event is not
Cancelable
This event is fired on the MinecraftForge.EVENT_BUS
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明PotionColorCalculationEvent
(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList) -
方法概要
修饰符和类型方法说明boolean
int
getColor()
Note that returned list is unmodifiable.void
setColor
(int color) void
shouldHideParticles
(boolean hideParticle) 从类继承的方法 net.minecraftforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
color
private int color -
hideParticle
private boolean hideParticle -
effectList
-
-
构造器详细资料
-
PotionColorCalculationEvent
public PotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList)
-
-
方法详细资料
-
getColor
public int getColor() -
setColor
public void setColor(int color) -
areParticlesHidden
public boolean areParticlesHidden() -
shouldHideParticles
public void shouldHideParticles(boolean hideParticle) -
getEffects
Note that returned list is unmodifiable.- 返回:
- effects
-