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
Fires after Potion Color Calculation.
this event is not
Cancelable
This event is fired on the MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final Collection<MobEffectInstance>
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionPotionColorCalculationEvent
(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getColor()
Note that returned list is unmodifiable.void
setColor
(int color) void
shouldHideParticles
(boolean hideParticle) Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
color
private int color -
hideParticle
private boolean hideParticle -
effectList
-
-
Constructor Details
-
PotionColorCalculationEvent
public PotionColorCalculationEvent(LivingEntity entity, int color, boolean hideParticle, Collection<MobEffectInstance> effectList)
-
-
Method Details
-
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.- Returns:
- effects
-