跳转至

WidgetComponentRenderPrimitive

文档版本:1.21.60.21

WidgetComponentRenderPrimitive类,扩展自WidgetComponentBase。script_api.minecraft/server-editor-bindings.widgetcomponentrenderprimitive.description

属性

primitiveType
read-only primitiveType: PrimitiveType;

方法

setPrimitive

script_api.minecraft/server-editor-bindings.widgetcomponentrenderprimitive.setprimitive.description

setPrimitive(primitive: WidgetComponentRenderPrimitiveTypeAxialSphere | WidgetComponentRenderPrimitiveTypeBox | WidgetComponentRenderPrimitiveTypeDisc | WidgetComponentRenderPrimitiveTypeLine): void