DyedItemColor
Link to dyeditemcolor
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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: DyedItemColor
ZenScript CopyDyedItemColor.of(rgb as int, showInTooltip as boolean) as DyedItemColor
Parameter | Type |
---|---|
Parameter rgb | Type int |
Parameter showInTooltip | Type boolean |
Methods
Link to methods
Name: withTooltip
Return Type: DyedItemColor
ZenScript CopyDyedItemColor.withTooltip(tooltip as boolean) as DyedItemColor
Parameter | Type |
---|---|
Parameter tooltip | Type boolean |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name rgb | Type int | Has Getter true | Has Setter false |
Name showInTooltip | Type boolean | Has Getter true | Has Setter false |