Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.component.DyeColor;

Implemented Interfaces

Link to implemented-interfaces

DyeColor implements the following interfaces. That means all methods defined in these interfaces are also available in DyeColor

DyeColor is an enum. It has 16 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:dye_color:white>
<constant:minecraft:dye_color:orange>
<constant:minecraft:dye_color:magenta>
<constant:minecraft:dye_color:light_blue>
<constant:minecraft:dye_color:yellow>
<constant:minecraft:dye_color:lime>
<constant:minecraft:dye_color:pink>
<constant:minecraft:dye_color:gray>
<constant:minecraft:dye_color:light_gray>
<constant:minecraft:dye_color:cyan>
<constant:minecraft:dye_color:purple>
<constant:minecraft:dye_color:blue>
<constant:minecraft:dye_color:brown>
<constant:minecraft:dye_color:green>
<constant:minecraft:dye_color:red>
<constant:minecraft:dye_color:black>
NameTypeHas GetterHas Setter
Name
fireworkColor
Type
int
Has Getter
true
Has Setter
false
Name
textColor
Type
int
Has Getter
true
Has Setter
false