跳转至

SettingsUIElement

文档版本:1.21.0.24

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

属性

initialValue
read-only initialValue: boolean | float | string | Vector3;
max
read-only max: int32 | undefined;
min
read-only min: int32 | undefined;
name
read-only name: string;
onChange
read-only onChange: (arg: boolean | float | string | Vector3) => boolean;
onChange(boolean | float | string | Vector3) => boolean
script_api.minecraft/server-editor-bindings.settingsuielement.onchange.description
options
read-only options: string[] | undefined;

方法

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) => boolean, min?: int32, max?: int32, options?: string[]): SettingsUIElement