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.
Implemented Interfaces
MutableComponent implements the following interfaces. That means all methods defined in these interfaces are also available in MutableComponent
Methods
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter component | Type Component |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter component | Type MutableComponent |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter content | Type string |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter style | Type Style |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter formatting | Type ChatFormatting[] |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter style | Type Style |
Return Type: MutableComponent
Parameter | Type |
---|---|
Parameter styleOperator | Type Function<Style,Style> |