ItemTypes Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Returns the set of item types registered within Minecraft.
Methods
get
static "get"(itemId: string): ItemType | undefined
Returns a specific item type, if available within Minecraft.
Parameters
- itemId: string
Returns ItemType | undefined
getAll
static getAll(): ItemType[]
Retrieves all available item types registered within Minecraft.
Returns ItemType[]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for