跳转至

BlockPaletteManager

文档版本:1.21.60.21

BlockPaletteManager类。script_api.minecraft/server-editor-bindings.blockpalettemanager.description

方法

addOrReplacePalette

script_api.minecraft/server-editor-bindings.blockpalettemanager.addorreplacepalette.description

addOrReplacePalette(paletteId: string, palette: BlockPalette): void
getPalette

script_api.minecraft/server-editor-bindings.blockpalettemanager.getpalette.description

getPalette(paletteId: string): BlockPalette | undefined
getPaletteIdList

script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteidlist.description

getPaletteIdList(): string[]
getPaletteItem

script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteitem.description

getPaletteItem(paletteId: string, index: int32): IBlockPaletteItem
getPrimaryPalette

script_api.minecraft/server-editor-bindings.blockpalettemanager.getprimarypalette.description

getPrimaryPalette(): BlockPalette
getSelectedBlockType

script_api.minecraft/server-editor-bindings.blockpalettemanager.getselectedblocktype.description

getSelectedBlockType(): BlockType
getSelectedItem

script_api.minecraft/server-editor-bindings.blockpalettemanager.getselecteditem.description

getSelectedItem(): IBlockPaletteItem
removePalette

script_api.minecraft/server-editor-bindings.blockpalettemanager.removepalette.description

removePalette(paletteId: string): void
setPaletteItem

script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.description

setPaletteItem(paletteId: string, index: int32, item: IBlockPaletteItem): void
setPrimaryPalette

script_api.minecraft/server-editor-bindings.blockpalettemanager.setprimarypalette.description

setPrimaryPalette(paletteId: string): void
setSelectedItem

script_api.minecraft/server-editor-bindings.blockpalettemanager.setselecteditem.description

setSelectedItem(item: IBlockPaletteItem): void