For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/BlockType.md.

Class: BlockType

block

Beta

方块的类型(或模板)。不包含置换数据(状态),仅包含其表示的方块类型。此类型在 1.17.10.21 版本引入。

The type (or template) of a block. Does not contain permutation data (state) other than the type of block it represents. This type was introduced as of version 1.17.10.21.

Properties

id

readonly id: string

Beta

Remarks

方块类型名称 - 例如 minecraft:acacia_stairs

Block type name - for example, minecraft:acacia_stairs.


localizationKey

readonly localizationKey: string

Beta

Remarks

此 BlockType 名称在 .lang 文件中使用的本地化键。

Key for the localization of this BlockType's name used in .lang files.

同领域相关