DyedItemColor

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.DyedItemColor;

Implements

Undocumented Interfaces

TooltipProvider

Members

static of(rgb as int, showInTooltip as bool) as DyedItemColor
script.zs
// DyedItemColor.of(rgb as int, showInTooltip as bool) as DyedItemColor;
DyedItemColor.of(myInt, myBool);

Parameters:

rgb Type: int
showInTooltip Type: bool

Return Type: DyedItemColor

Getter
script.zs
// DyedItemColor.rgb as int
myDyedItemColor.rgb

Return Type: int

Getter
script.zs
// DyedItemColor.showInTooltip as bool
myDyedItemColor.showInTooltip

Return Type: bool

withTooltip(tooltip as bool) as DyedItemColor
script.zs
// DyedItemColor.withTooltip(tooltip as bool) as DyedItemColor;
myDyedItemColor.withTooltip(myBool);

Parameters:

tooltip Type: bool

Return Type: DyedItemColor