public class PotionColorCalculationEvent extends LivingEvent
Cancelable
This event is fired on the MinecraftForge#EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private int |
color |
private java.util.Collection<EffectInstance> |
effectList |
private boolean |
hideParticle |
Constructor and Description |
---|
PotionColorCalculationEvent(LivingEntity entity,
int color,
boolean hideParticle,
java.util.Collection<EffectInstance> effectList) |
Modifier and Type | Method and Description |
---|---|
boolean |
areParticlesHidden() |
int |
getColor() |
java.util.Collection<EffectInstance> |
getEffects()
Note that returned list is unmodifiable.
|
void |
setColor(int color) |
void |
shouldHideParticles(boolean hideParticle) |
getEntityLiving
getEntity
private int color
private boolean hideParticle
private final java.util.Collection<EffectInstance> effectList
public PotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, java.util.Collection<EffectInstance> effectList)
public int getColor()
public void setColor(int color)
public boolean areParticlesHidden()
public void shouldHideParticles(boolean hideParticle)
public java.util.Collection<EffectInstance> getEffects()