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/ItemType.md.

Class: ItemType

item

Beta

表示物品的类型,例如 Wool。

Represents the type of an item - for example, Wool.

Properties

id

readonly id: string

Beta

Remarks

返回该物品类型的标识符,例如 'minecraft:apple'。

Returns the identifier of the item type - for example, 'minecraft:apple'.


localizationKey

readonly localizationKey: string

Beta

Remarks

用于 .lang 文件中对该 ItemType 名称进行本地化的键。

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

同领域相关