Private
constructorReadonly
entityThe entity that owns this component. The entity will be undefined if it has been removed.
Readonly
typeIdentifier of the component.
Value of this particular color.
This property can't be edited in read-only mode.
Static
Readonly
component
Defines the entity's color. Only works on certain entities that have predefined color values (e.g., sheep, llama, shulker).
Example
getSheepColor.js