TranslatableContents

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.content.type.TranslatableContents;

Implements

TranslatableContents implements the following interfaces:

ComponentContents

Members

Getter
script.zs
// TranslatableContents.args as string[]
myTranslatableContents.args

Return Type: string[]

args() as string[]
script.zs
// TranslatableContents.args() as string[];
myTranslatableContents.args();

Return Type: string[]

static empty() as ComponentContents
script.zs
// TranslatableContents.empty() as ComponentContents;
TranslatableContents.empty();

Return Type: ComponentContents

Getter
script.zs
// TranslatableContents.key as string
myTranslatableContents.key

Return Type: string

key() as string
script.zs
// TranslatableContents.key() as string;
myTranslatableContents.key();

Return Type: string