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 | 
|---|---|---|
| Parametercomponent | TypeComponent | DescriptionNo Description Provided | 
Return Type: MutableComponent
MutableComponent.append(content as string) as MutableComponent| Parameter | Type | Description | 
|---|---|---|
| Parametercontent | Typestring | DescriptionNo Description Provided | 
Return Type: MutableComponent
MutableComponent.setStyle(style as Style) as MutableComponent| Parameter | Type | Description | 
|---|---|---|
| Parameterstyle | TypeStyle | DescriptionNo Description Provided | 
Return Type: MutableComponent
MutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent| Parameter | Type | Description | 
|---|---|---|
| Parameterformatting | TypeChatFormatting[] | DescriptionNo Description Provided | 
Return Type: MutableComponent
MutableComponent.withStyle(style as Style) as MutableComponent| Parameter | Type | Description | 
|---|---|---|
| Parameterstyle | TypeStyle | DescriptionNo Description Provided | 
Return Type: MutableComponent
MutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent| Parameter | Type | Description | 
|---|---|---|
| ParameterstyleOperator | TypeFunction<Style,Style> | DescriptionNo Description Provided |