MutableComponent

Link to mutablecomponent

Importare la Classe

Link to importare-la-classe

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;

Interfacce Implementate

Link to interfacce-implementate

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
ParametroTipo
Parametro
component
Tipo
Component

Name: append

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.append(content as string) as MutableComponent
ParametroTipo
Parametro
contenuto
Tipo
string

Name: setStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.setStyle(style as Style) as MutableComponent
ParametroTipo
Parametro
stile
Tipo
Style

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
ParametroTipo
Parametro
formattazione
Tipo
ChatFormatting[]

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(style as Style) as MutableComponent
ParametroTipo
Parametro
stile
Tipo
Style

Name: withStyle

Return Type: MutableComponent

ZenScript
Copy
MutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
ParametroTipo
Parametro
styleOperator
Tipo
Function<Style,Style>