WidgetComponentBase
¶
文档版本:1.21.60.21
WidgetComponentBase
类。script_api.minecraft/server-editor-bindings.widgetcomponentbase.description
属性¶
componentType
componentType
:WidgetComponentType
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.componenttype.description
location
location
:Vector3
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.location.description
lockToSurface
lockToSurface
:boolean
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.locktosurface.description
name
name
:string
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.name.description
offset
valid
valid
:boolean
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.valid.description
visible
visible
:boolean
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.visible.description
widget
方法¶
delete
script_api.minecraft/server-editor-bindings.widgetcomponentbase.delete.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.delete.return
setStateChangeEvent
script_api.minecraft/server-editor-bindings.widgetcomponentbase.setstatechangeevent.description
eventFunction
?:(WidgetComponentStateChangeEventData) => void
=null
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.setstatechangeevent.eventfunction.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.widgetcomponentbase.setstatechangeevent.return