The identifier of the item type.
Optional
options: Partial<ItemTypeOptions>The options of the item type.
Readonly
identifierThe identifier of the item type.
Whether the item type is component based.
Readonly
networkThe network of the item type.
Readonly
propertiesThe nbt properties definition of the item type. This contains the vanilla component definitions.
Readonly
traitsThe traits that are bound to the item type. These traits are used to define custom behavior for the item type.
Readonly
versionThe version of the item type.
Protected
Static
networkStatic
Readonly
typesA collective registry of all item types.
The vanilla components of the item type.
Whether the item type is stackable.
The maximum stack size of the item type.
Add a tag to the item type.
The tags to add.
The item type instance.
Get the tags of the item type.
The tags of the item type.
Check if the item type has a tag.
The tag to check.
True if the item type has the tag, false otherwise.
Register a trait to the item type.
The trait to register.
The item type instance.
Remove a tag from the item type.
The tags to remove.
The item type instance.
Set the tags of the item type.
The tags to set.
The item type instance.
Unregister a trait from the item type.
The trait to unregister, or the identifier of the trait.
The item type instance.
Static
getStatic
getGet all item types from the registry.
Static
getGet the item type from the network.
The network to get the item type from.
Static
resolveStatic
toConvert the item type to a network instance.
The item type to convert.
The stack size of the item type, default 1.
The NBT of the item type, default null.
Create a new custom item type.