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

CommonComponents

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

Members

Field
script.zs
// ExpandCommonComponents.CONNECT_FAILED as Component
CommonComponents.CONNECT_FAILED

Return Type: Component

static days(days as long) as MutableComponent
script.zs
// ExpandCommonComponents.days(days as long) as MutableComponent;
CommonComponents.days(myLong);

Parameters:

days Type: long

Return Type: MutableComponent

Field
script.zs
// ExpandCommonComponents.ELLIPSIS as Component
CommonComponents.ELLIPSIS

Return Type: Component

Field
script.zs
// ExpandCommonComponents.EMPTY as Component
CommonComponents.EMPTY

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_ACKNOWLEDGE as Component
CommonComponents.GUI_ACKNOWLEDGE

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_BACK as Component
CommonComponents.GUI_BACK

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_CANCEL as Component
CommonComponents.GUI_CANCEL

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_CONTINUE as Component
CommonComponents.GUI_CONTINUE

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_COPY_LINK_TO_CLIPBOARD as Component
CommonComponents.GUI_COPY_LINK_TO_CLIPBOARD

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_DISCONNECT as Component
CommonComponents.GUI_DISCONNECT

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_DONE as Component
CommonComponents.GUI_DONE

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_NO as Component
CommonComponents.GUI_NO

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_OK as Component
CommonComponents.GUI_OK

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_OPEN_IN_BROWSER as Component
CommonComponents.GUI_OPEN_IN_BROWSER

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_PROCEED as Component
CommonComponents.GUI_PROCEED

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_TO_TITLE as Component
CommonComponents.GUI_TO_TITLE

Return Type: Component

Field
script.zs
// ExpandCommonComponents.GUI_YES as Component
CommonComponents.GUI_YES

Return Type: Component

static hours(hours as long) as MutableComponent
script.zs
// ExpandCommonComponents.hours(hours as long) as MutableComponent;
CommonComponents.hours(myLong);

Parameters:

hours Type: long

Return Type: MutableComponent

static joinForNarration(components as Component[]) as MutableComponent
script.zs
// ExpandCommonComponents.joinForNarration(components as Component[]) as MutableComponent;
CommonComponents.joinForNarration(myComponent[]);

Parameters:

components Type: Component[]

Return Type: MutableComponent

static joinLines(components as Component[]) as Component
script.zs
// ExpandCommonComponents.joinLines(components as Component[]) as Component;
CommonComponents.joinLines(myComponent[]);

Parameters:

components Type: Component[]

Return Type: Component

static joinLines(components as Collection<?>) as Component
script.zs
// ExpandCommonComponents.joinLines(components as Collection<?>) as Component;
CommonComponents.joinLines(myCollection);

Parameters:

components Type: Collection<?>

Return Type: Component

static minutes(minutes as long) as MutableComponent
script.zs
// ExpandCommonComponents.minutes(minutes as long) as MutableComponent;
CommonComponents.minutes(myLong);

Parameters:

minutes Type: long

Return Type: MutableComponent

Field
script.zs
// ExpandCommonComponents.NARRATION_SEPARATOR as Component
CommonComponents.NARRATION_SEPARATOR

Return Type: Component

Field
script.zs
// ExpandCommonComponents.NEW_LINE as Component
CommonComponents.NEW_LINE

Return Type: Component

Field
script.zs
// ExpandCommonComponents.OPTION_OFF as Component
CommonComponents.OPTION_OFF

Return Type: Component

Field
script.zs
// ExpandCommonComponents.OPTION_ON as Component
CommonComponents.OPTION_ON

Return Type: Component

static optionNameValue(option as Component, value as Component) as MutableComponent
script.zs
// ExpandCommonComponents.optionNameValue(option as Component, value as Component) as MutableComponent;
CommonComponents.optionNameValue(myComponent, myComponent);

Parameters:

option Type: Component
value Type: Component

Return Type: MutableComponent

static optionStatus(status as bool) as Component
script.zs
// ExpandCommonComponents.optionStatus(status as bool) as Component;
CommonComponents.optionStatus(myBool);

Parameters:

status Type: bool

Return Type: Component

static optionStatus(option as Component, status as bool) as MutableComponent
script.zs
// ExpandCommonComponents.optionStatus(option as Component, status as bool) as MutableComponent;
CommonComponents.optionStatus(myComponent, myBool);

Parameters:

option Type: Component
status Type: bool

Return Type: MutableComponent

static space() as MutableComponent
script.zs
// ExpandCommonComponents.space() as MutableComponent;
CommonComponents.space();

Return Type: MutableComponent

Field
script.zs
// ExpandCommonComponents.SPACE as Component
CommonComponents.SPACE

Return Type: Component