MapItemColor

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

Members

static defaultColor() as MapItemColor
script.zs
// MapItemColor.defaultColor() as MapItemColor;
MapItemColor.defaultColor();

Return Type: MapItemColor

static of(rgb as int) as MapItemColor
script.zs
// MapItemColor.of(rgb as int) as MapItemColor;
MapItemColor.of(myInt);

Parameters:

rgb Type: int

Return Type: MapItemColor

Getter
script.zs
// MapItemColor.rgb as int
myMapItemColor.rgb

Return Type: int