MutableComponent
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import crafttweaker.api.text.MutableComponent;
Implemented Interfaces
MutableComponent implements the following interfaces. That means all methods defined in these interfaces are also available in MutableComponent
Methods
Return Type: MutableComponent
MutableComponent.append(component as Component) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter component | Type Component | Description No Description Provided |
Return Type: MutableComponent
MutableComponent.append(content as string) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter content | Type string | Description No Description Provided |
Return Type: MutableComponent
MutableComponent.setStyle(style as Style) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter style | Type Style | Description No Description Provided |
Return Type: MutableComponent
MutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter formatting | Type ChatFormatting[] | Description No Description Provided |
Return Type: MutableComponent
MutableComponent.withStyle(style as Style) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter style | Type Style | Description No Description Provided |
Return Type: MutableComponent
MutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
Parameter | Type | Description |
---|---|---|
Parameter styleOperator | Type Function<Style,Style> | Description No Description Provided |