DyeColor

Importing the class

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.

script.zs
import crafttweaker.api.item.component.DyeColor;

Implements

DyeColor implements the following interfaces:

StringRepresentable

Undocumented Interfaces

Comparable<Enum>

Enum Constants

DyeColor is an enum with 16 constants. They are accessible like so:

script.zs
// DyeColor.BLACK
<constant:minecraft:dye_color:black>
// DyeColor.BLUE
<constant:minecraft:dye_color:blue>
// DyeColor.BROWN
<constant:minecraft:dye_color:brown>
// DyeColor.CYAN
<constant:minecraft:dye_color:cyan>
// DyeColor.GRAY
<constant:minecraft:dye_color:gray>
// DyeColor.GREEN
<constant:minecraft:dye_color:green>
// DyeColor.LIGHT_BLUE
<constant:minecraft:dye_color:light_blue>
// DyeColor.LIGHT_GRAY
<constant:minecraft:dye_color:light_gray>
// DyeColor.LIME
<constant:minecraft:dye_color:lime>
// DyeColor.MAGENTA
<constant:minecraft:dye_color:magenta>
// DyeColor.ORANGE
<constant:minecraft:dye_color:orange>
// DyeColor.PINK
<constant:minecraft:dye_color:pink>
// DyeColor.PURPLE
<constant:minecraft:dye_color:purple>
// DyeColor.RED
<constant:minecraft:dye_color:red>
// DyeColor.WHITE
<constant:minecraft:dye_color:white>
// DyeColor.YELLOW
<constant:minecraft:dye_color:yellow>

Members

Getter
script.zs
// DyeColor.fireworkColor as int
<constant:minecraft:dye_color:black>.fireworkColor

Return Type: int

Getter
Gets the serialized name.
script.zs
// DyeColor.serializedName as string
<constant:minecraft:dye_color:black>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// DyeColor.serializedName() as string;
<constant:minecraft:dye_color:black>.serializedName();

Return Type: string

Getter
script.zs
// DyeColor.textColor as int
<constant:minecraft:dye_color:black>.textColor

Return Type: int