跳转至

SettingsUIElement

文档版本:1.21.60.21

SettingsUIElement类。script_api.minecraft/server-editor-bindings.settingsuielement.description

属性

initialValue
read-only initialValue: boolean | float | string | Vector3;
name
read-only name: string;
onChange
read-only onChange: (arg: boolean | float | string | Vector3) => void;
onChange(boolean | float | string | Vector3) => void
script_api.minecraft/server-editor-bindings.settingsuielement.onchange.description
options
read-only options: SettingsUIElementOptions;

方法

constructor

script_api.minecraft/server-editor-bindings.settingsuielement.constructor.description

new constructor(name: string, initialValue: boolean | float | string | Vector3, onChange: (arg: boolean | float | string | Vector3) => void, options?: SettingsUIElementOptions): SettingsUIElement