ProbabilityBlockPaletteItem
¶
文档版本:1.21.60.21
ProbabilityBlockPaletteItem
类,扩展自IBlockPaletteItem
。script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.description
方法¶
addBlock
script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.addblock.description
block
:BlockPermutation
|BlockType
|string
- script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.addblock.block.description
weight
:int32
∈[1
,100
]- script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.addblock.weight.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.addblock.return
constructor
script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.constructor.description
displayName
?:string
=null
- script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.constructor.displayname.description
getBlocks
script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.getblocks.description
removeBlockAt
script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.removeblockat.description
index
:int32
- script_api.minecraft/server-editor-bindings.probabilityblockpaletteitem.removeblockat.index.description