Class 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
-
public class PotionColorCalculationEvent extends LivingEvent
Fires after Potion Color Calculation. this event is notCancelable
This event is fired on theMinecraftForge#EVENT_BUS
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private int
color
private java.util.Collection<EffectInstance>
effectList
private boolean
hideParticle
-
Constructor Summary
Constructors Constructor Description PotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, java.util.Collection<EffectInstance> effectList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areParticlesHidden()
int
getColor()
java.util.Collection<EffectInstance>
getEffects()
Note that returned list is unmodifiable.void
setColor(int color)
void
shouldHideParticles(boolean hideParticle)
-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Field Detail
-
color
private int color
-
hideParticle
private boolean hideParticle
-
effectList
private final java.util.Collection<EffectInstance> effectList
-
-
Constructor Detail
-
PotionColorCalculationEvent
public PotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, java.util.Collection<EffectInstance> effectList)
-
-
Method Detail
-
getColor
public int getColor()
-
setColor
public void setColor(int color)
-
areParticlesHidden
public boolean areParticlesHidden()
-
shouldHideParticles
public void shouldHideParticles(boolean hideParticle)
-
getEffects
public java.util.Collection<EffectInstance> getEffects()
Note that returned list is unmodifiable.- Returns:
- effects
-
-