跳转至

WidgetComponentBase

文档版本:1.21.60.21

WidgetComponentBase类。script_api.minecraft/server-editor-bindings.widgetcomponentbase.description

属性

componentType
read-only componentType: WidgetComponentType;
location
read-only location: Vector3;
lockToSurface
lockToSurface: boolean;
name
read-only name: string;
offset
offset: Vector3;
valid
read-only valid: boolean;
visible
visible: boolean;
widget
read-only widget: Widget;

方法

delete

script_api.minecraft/server-editor-bindings.widgetcomponentbase.delete.description

delete(): void
setStateChangeEvent

script_api.minecraft/server-editor-bindings.widgetcomponentbase.setstatechangeevent.description

setStateChangeEvent(eventFunction?: (arg: WidgetComponentStateChangeEventData) => void): void