Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

TextColor

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.text.TextColor;

Members

serialize() as string
script.zs
// TextColor.serialize() as string;
myTextColor.serialize();

Return Type: string

Getter
script.zs
// TextColor.value as int
myTextColor.value

Return Type: int

value() as int
script.zs
// TextColor.value() as int;
myTextColor.value();

Return Type: int