Package petrolpark.mc.library.util
Class ColorHelper.SetEntityColorEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
petrolpark.mc.library.util.ColorHelper.SetEntityColorEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ColorHelper
public static final class ColorHelper.SetEntityColorEvent
extends net.neoforged.neoforge.event.entity.living.LivingEvent
implements net.neoforged.bus.api.ICancellableEvent
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingEvent.LivingJumpEvent, net.neoforged.neoforge.event.entity.living.LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityEvent.EnteringSection, net.neoforged.neoforge.event.entity.EntityEvent.EntityConstructing, net.neoforged.neoforge.event.entity.EntityEvent.Size -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetEntityColorEvent(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.DyeColor color, boolean secondary) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.DyeColorgetColor()booleanWhether we are interested in the secondary color of the entity.Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
color
@Nullable protected final net.minecraft.world.item.DyeColor color -
secondary
protected final boolean secondary
-
-
Constructor Details
-
SetEntityColorEvent
public SetEntityColorEvent(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.DyeColor color, boolean secondary)
-
-
Method Details
-
getColor
@Nullable public net.minecraft.world.item.DyeColor getColor() -
isSecondary
public boolean isSecondary()Whether we are interested in the secondary color of the entity. This is applicable toTropicalFish, for example, which have a primary and secondary color. If an entity only has one color, this can be ignored.
-