MutableComponent

Link to mutablecomponent

Diese Klasse importieren

Link to diese-klasse-importieren

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.

ZenScript
Copy
import crafttweaker.api.text.MutableComponent;

Implemented Interfaces

Link to implemented-interfaces

MutableComponent implements the following interfaces. That means all methods defined in these interfaces are also available in MutableComponent

Name: append

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.append(component as Component) as MutableComponent
ParameterTypeBeschreibung
Parameter
component
Type
Component
Beschreibung
No Description Provided

Name: append

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.append(content as string) as MutableComponent
ParameterTypeBeschreibung
Parameter
inhalt
Type
string
Beschreibung
No Description Provided

Name: setStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.setStyle(style as Style) as MutableComponent
ParameterTypeBeschreibung
Parameter
stile
Type
Style
Beschreibung
No Description Provided

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
ParameterTypeBeschreibung
Parameter
formatieren
Type
ChatFormatting[]
Beschreibung
No Description Provided

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(style as Style) as MutableComponent
ParameterTypeBeschreibung
Parameter
stile
Type
Style
Beschreibung
No Description Provided

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
ParameterTypeBeschreibung
Parameter
styleOperator
Type
Function<Style,Style>
Beschreibung
No Description Provided