Package petrolpark.mc.library.util
Class ColorHelper.GetEntityColorEvent
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.GetEntityColorEvent
- Enclosing class:
ColorHelper
public static final class ColorHelper.GetEntityColorEvent
extends net.neoforged.neoforge.event.entity.living.LivingEvent
- 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
ConstructorsConstructorDescriptionGetEntityColorEvent(net.minecraft.world.entity.LivingEntity entity, boolean secondary) -
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
Field Details
-
color
@Nullable protected net.minecraft.world.item.DyeColor color
-
-
Constructor Details
-
GetEntityColorEvent
public GetEntityColorEvent(net.minecraft.world.entity.LivingEntity entity, boolean secondary)
-
-
Method Details
-
setColor
public void setColor(@Nullable net.minecraft.world.item.DyeColor color) -
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.
-