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

Extending Record

Link to extending-record

DyedItemColor extends Record. That means all methods available in Record are also available in DyedItemColor

Name: of

Return Type: DyedItemColor

ZenScript
Copy
DyedItemColor.of(rgb as int, showInTooltip as boolean) as DyedItemColor
ParameterType
Parameter
rgb
Type
int
Parameter
showInTooltip
Type
boolean

Name: withTooltip

Return Type: DyedItemColor

ZenScript
Copy
DyedItemColor.withTooltip(tooltip as boolean) as DyedItemColor
ParameterType
Parameter
tooltip
Type
boolean
NameTypeHas GetterHas Setter
Name
rgb
Type
int
Has Getter
true
Has Setter
false
Name
showInTooltip
Type
boolean
Has Getter
true
Has Setter
false