跳转至

BrushShapeManager

文档版本:1.21.60.21

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

属性

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

方法

activateBrushTool

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

activateBrushTool(): void
beginPainting

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

beginPainting(onComplete: (arg: PaintCompletionState) => void): void
deactivateBrushTool

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

deactivateBrushTool(): void
endPainting

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

endPainting(cancelled: boolean): void
getBrushShapeOffset

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

getBrushShapeOffset(): Vector3
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
setBrushMask

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

setBrushMask(mask: BlockMaskList): void
setBrushShape

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

setBrushShape(shape: Vector3[] | CompoundBlockVolume): void
setBrushShapeOffset

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

setBrushShapeOffset(offset: Vector3): void
setBrushShapeVisible

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

setBrushShapeVisible(visible: boolean): void
setFlattenHeight

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

setFlattenHeight(flattenHeight: int32): void
setFlattenRadius

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

setFlattenRadius(flattenRadius: int32): void
setTerrainStrength

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

setTerrainStrength(terrainStrength: int32): void
singlePaint

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

singlePaint(onComplete: (arg: PaintCompletionState) => void): void
switchBrushPaintMode

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

switchBrushPaintMode(paintMode: PaintMode): void
switchBrushShape

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

switchBrushShape(name: string): CompoundBlockVolume
uiSettingValueChanged

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

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