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

Class: ItemTypes

Beta

返回在 Minecraft 中注册的物品类型集合。

Returns the set of item types registered within Minecraft.

Methods

get()

static get(itemId): ItemType | undefined

Beta

Parameters

itemId

string

Returns

ItemType | undefined

Remarks

若 Minecraft 中存在相应物品类型,则返回该物品类型。

Returns a specific item type, if available within Minecraft.


getAll()

static getAll(): ItemType[]

Beta

Returns

ItemType[]

Remarks

获取 Minecraft 中注册的所有可用物品类型。

Retrieves all available item types registered within Minecraft.