Class: ItemTypes
Beta
返回在 Minecraft 中注册的物品类型集合。
Returns the set of item types registered within Minecraft.
Methods
get()
staticget(itemId):ItemType|undefined
Beta
Parameters
itemId
string
Returns
ItemType | undefined
Remarks
若 Minecraft 中存在相应物品类型,则返回该物品类型。
Returns a specific item type, if available within Minecraft.
getAll()
staticgetAll():ItemType[]
Beta
Returns
ItemType[]
Remarks
获取 Minecraft 中注册的所有可用物品类型。
Retrieves all available item types registered within Minecraft.
