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 Copyimport 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
Methoden
Link to methoden
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(component as Component) as MutableComponent
Parameter | Type |
---|---|
Parameter component | Type Component |
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(component as MutableComponent) as MutableComponent
Parameter | Type |
---|---|
Parameter component | Type MutableComponent |
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(content as string) as MutableComponent
Parameter | Type |
---|---|
Parameter inhalt | Type string |
Name: setStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.setStyle(style as Style) as MutableComponent
Parameter | Type |
---|---|
Parameter stile | Type Style |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
Parameter | Type |
---|---|
Parameter formatieren | Type ChatFormatting[] |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(style as Style) as MutableComponent
Parameter | Type |
---|---|
Parameter stile | Type Style |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
Parameter | Type |
---|---|
Parameter styleOperator | Type Function<Style,Style> |