跳转至

BrushShapeManager

文档版本:1.21.0.24

BrushShapeManager类。script_api.minecraft/server-editor-bindings.brushshapemanager.description

属性

activeBrushShape
read-only activeBrushShape: BrushShape | undefined;
activeBrushVolume
read-only activeBrushVolume: CompoundBlockVolume | undefined;
brushShapeNames
read-only brushShapeNames: string[];

方法

activateBrushShape

script_api.minecraft/server-editor-bindings.brushshapemanager.activatebrushshape.description

activateBrushShape(name: string): CompoundBlockVolume
getSettingsUIElements

script_api.minecraft/server-editor-bindings.brushshapemanager.getsettingsuielements.description

getSettingsUIElements(brushName: string): SettingsUIElement[]
registerBrushShape

script_api.minecraft/server-editor-bindings.brushshapemanager.registerbrushshape.description

registerBrushShape(name: string, icon: string, rebuild: () => CompoundBlockVolume, getSettingsUIElements: () => SettingsUIElement[]): void
uiSettingValueChanged

script_api.minecraft/server-editor-bindings.brushshapemanager.uisettingvaluechanged.description

uiSettingValueChanged(elementName: string, newValue: boolean | float | string | Vector3): boolean