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 Copyimport 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
Metodi
Link to metodi
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(component as Component) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro component | Tipo Component | Descrizione No Description Provided |
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(content as string) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro contenuto | Tipo string | Descrizione No Description Provided |
Name: setStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.setStyle(style as Style) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro stile | Tipo Style | Descrizione No Description Provided |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro formattazione | Tipo ChatFormatting[] | Descrizione No Description Provided |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(style as Style) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro stile | Tipo Style | Descrizione No Description Provided |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
Parametro | Tipo | Descrizione |
---|---|---|
Parametro styleOperator | Tipo Function<Style,Style> | Descrizione No Description Provided |