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
Event.HasResult, Event.Result
Constructor and Description |
---|
PotionColorCalculationEvent(EntityLivingBase entity,
int color,
boolean hideParticle,
java.util.Collection<PotionEffect> effectList) |
Modifier and Type | Method and Description |
---|---|
boolean |
areParticlesHidden() |
int |
getColor() |
java.util.Collection<PotionEffect> |
getEffects()
Note that returned list is unmodifiable.
|
void |
setColor(int color) |
void |
shouldHideParticles(boolean hideParticle) |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public PotionColorCalculationEvent(EntityLivingBase entity, int color, boolean hideParticle, java.util.Collection<PotionEffect> effectList)
public int getColor()
public void setColor(int color)
public boolean areParticlesHidden()
public void shouldHideParticles(boolean hideParticle)
public java.util.Collection<PotionEffect> getEffects()