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.
import crafttweaker.api.text.CommonComponents;
Members
static days(days as long) as MutableComponent
CommonComponents.days(myLong);
Parameters:
days: long
Type: long
Return Type:
MutableComponent
static hours(hours as long) as MutableComponent
CommonComponents.hours(myLong);
Parameters:
hours: long
Type: long
Return Type:
MutableComponent
static joinForNarration(components as Component[]) as MutableComponent
CommonComponents.joinForNarration(myComponent[]);
Return Type:
MutableComponent
static joinLines(components as Component[]) as Component
static joinLines(components as Collection<?>) as Component
CommonComponents.joinLines(myCollection);
Parameters:
components: Collection<?>
Type: Collection<?>
Return Type:
Component
static minutes(minutes as long) as MutableComponent
CommonComponents.minutes(myLong);
Parameters:
minutes: long
Type: long
Return Type:
MutableComponent
static optionNameValue(option as Component, value as Component) as MutableComponent
// ExpandCommonComponents.optionNameValue(option as Component, value as Component) as MutableComponent;CommonComponents.optionNameValue(myComponent, myComponent);
Return Type:
MutableComponent
static optionStatus(status as bool) as Component
static optionStatus(option as Component, status as bool) as MutableComponent
CommonComponents.optionStatus(myComponent, myBool);
Return Type:
MutableComponent
static space() as MutableComponent