The identifier of the item type.
Optionaloptions: Partial<ItemTypeOptions>The options of the item type.
ReadonlyidentifierThe identifier of the item type.
ReadonlynetworkThe network of the item type.
ReadonlypropertiesThe nbt properties definition of the item type. This contains the vanilla component definitions.
ReadonlytraitsThe traits that are bound to the item type. These traits are used to define custom behavior for the item type.
StaticAIRProtected StaticnetworkStatic ReadonlytypesA collective registry of all item types.
The vanilla components of the item type.
Whether the item type is stackable.
Add a tag to the item type.
The tags to add.
The item type instance.
Get whether the item type is component based.
True if the item type is component based, false otherwise.
Get the tags of the item type.
The tags of the item type.
Get the version of the item type.
The version 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 whether the item type is component based.
True to set the item type as component based, false otherwise.
Set the tags of the item type.
The tags to set.
The item type instance.
Set the version of the item type.
The version to set.
Unregister a trait from the item type.
The trait to unregister, or the identifier of the trait.
The item type instance.
StaticgetStaticgetGet all item types from the registry.
StaticgetGet the item type from the network.
The network to get the item type from.
StaticresolveStatictoConvert 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.
The network item instance descriptor.
StatictoConverts the item type to a network item stack descriptor.
The item type to convert.
The network item stack descriptor.
Create a new custom item type.