If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.item.component . DyeColor;
DyeColor
implements the following interfaces:
StringRepresentable
Undocumented Interfaces Comparable <Enum >
DyeColor is an enum with 16 constants. They are accessible like so:
< constant : minecraft:dye_color:black >
< constant : minecraft:dye_color:blue >
< constant : minecraft:dye_color:brown >
< constant : minecraft:dye_color:cyan >
< constant : minecraft:dye_color:gray >
< constant : minecraft:dye_color:green >
< constant : minecraft:dye_color:light_blue >
< constant : minecraft:dye_color:light_gray >
< constant : minecraft:dye_color:lime >
< constant : minecraft:dye_color:magenta >
< constant : minecraft:dye_color:orange >
< constant : minecraft:dye_color:pink >
< constant : minecraft:dye_color:purple >
< constant : minecraft:dye_color:red >
< constant : minecraft:dye_color:white >
< constant : minecraft:dye_color:yellow >
// DyeColor.fireworkColor as int
< constant : minecraft:dye_color:black > .fireworkColor
Return Type:
int
Gets the serialized name. // DyeColor.serializedName as string
< constant : minecraft:dye_color:black > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// DyeColor.serializedName() as string;
< constant : minecraft:dye_color:black > .serializedName();
Return Type:
string
// DyeColor.textColor as int
< constant : minecraft:dye_color:black > .textColor
Return Type:
int