BlockPaletteManager
¶
文档版本:1.21.60.21
BlockPaletteManager
类。script_api.minecraft/server-editor-bindings.blockpalettemanager.description
方法¶
addOrReplacePalette
script_api.minecraft/server-editor-bindings.blockpalettemanager.addorreplacepalette.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.addorreplacepalette.paletteid.description
palette
:BlockPalette
- script_api.minecraft/server-editor-bindings.blockpalettemanager.addorreplacepalette.palette.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.blockpalettemanager.addorreplacepalette.return
getPalette
script_api.minecraft/server-editor-bindings.blockpalettemanager.getpalette.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.getpalette.paletteid.description
- 返回值:
BlockPalette
|undefined
- script_api.minecraft/server-editor-bindings.blockpalettemanager.getpalette.return
getPaletteIdList
script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteidlist.description
- 返回值:
string[]
- script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteidlist.return
getPaletteItem
script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteitem.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteitem.paletteid.description
index
:int32
- script_api.minecraft/server-editor-bindings.blockpalettemanager.getpaletteitem.index.description
getPrimaryPalette
script_api.minecraft/server-editor-bindings.blockpalettemanager.getprimarypalette.description
getSelectedBlockType
script_api.minecraft/server-editor-bindings.blockpalettemanager.getselectedblocktype.description
getSelectedItem
script_api.minecraft/server-editor-bindings.blockpalettemanager.getselecteditem.description
removePalette
script_api.minecraft/server-editor-bindings.blockpalettemanager.removepalette.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.removepalette.paletteid.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.blockpalettemanager.removepalette.return
setPaletteItem
script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.paletteid.description
index
:int32
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.index.description
item
:IBlockPaletteItem
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.item.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setpaletteitem.return
setPrimaryPalette
script_api.minecraft/server-editor-bindings.blockpalettemanager.setprimarypalette.description
paletteId
:string
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setprimarypalette.paletteid.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.blockpalettemanager.setprimarypalette.return
setSelectedItem
script_api.minecraft/server-editor-bindings.blockpalettemanager.setselecteditem.description