MutableComponent
Link to mutablecomponent
导入类
Link to 导入类
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;
已实现的接口
Link to 已实现的接口
MutableComponent implements the following interfaces. That means all methods defined in these interfaces are also available in MutableComponent
使用方式
Link to 使用方式
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(component as Component) as MutableComponent
参数 | 类型 |
---|---|
参数 component | 类型 Component |
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(component as MutableComponent) as MutableComponent
参数 | 类型 |
---|---|
参数 component | 类型 MutableComponent |
Name: append
Return Type: MutableComponent
ZenScript CopyMutableComponent.append(content as string) as MutableComponent
参数 | 类型 |
---|---|
参数 内容 | 类型 string |
Name: setStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.setStyle(style as Style) as MutableComponent
参数 | 类型 |
---|---|
参数 样式 | 类型 Style |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(formatting as ChatFormatting[]) as MutableComponent
参数 | 类型 |
---|---|
参数 格式化 | 类型 ChatFormatting[] |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(style as Style) as MutableComponent
参数 | 类型 |
---|---|
参数 样式 | 类型 Style |
Name: withStyle
Return Type: MutableComponent
ZenScript CopyMutableComponent.withStyle(styleOperator as Function<Style,Style>) as MutableComponent
参数 | 类型 |
---|---|
参数 styleOperator | 类型 Function<Style,Style> |