The item type that the components are for.
Readonly
entriesThe component definitions of the item type.
Protected
Readonly
itemThe type of item that the components are for.
The name of the tag.
Readonly
typeThe nbt tag type of the data type.
The value of the tag.
Static
Readonly
typeThe nbt tag type of the data type.
Adds a new component to the item type.
The component instance.
Gets the component from the item type.
The identifier of the component.
The component instance.
Get all the components of the item type.
All the components of the item type.
Get the block placer component of the item type.
The block placer component of the item type.
Get whether the item type can destroy blocks in creative mode.
Whether the item type can destroy blocks in creative mode.
Get the cooldown component of the item type.
The cooldown component of the item type.
Get the digger component of the item type.
The digger component of the item type.
Get the display name of the item type.
The display name of the item type.
Get the max stack size of the item type.
The max stack size of the item type.
Get the wearable component of the item type.
The wearable component of the item type.
Checks if the item type has a component.
The component to check.
True if the item type has the component, false otherwise.
Check if the item type has a block placer component.
Whether the item type has a block placer component.
Check if the item type has a can destroy in creative component.
Whether the item type has a can destroy in creative component.
Check if the item type has a cooldown component.
Whether the item type has a cooldown component.
Check if the item type has a digger component.
Whether the item type has a digger component.
Check if the item type has a display name component.
Whether the item type has a display name component.
Check if the item type has an icon component.
Whether the item type has an icon component.
Check if the item type has a max stack size component.
Whether the item type has a max stack size component.
Check if the item type has a wearable component.
Whether the item type has a wearable component.
Removes a component from the item type.
The component to remove.
Set the block placer component of the item type.
Optional
options: Partial<ItemTypeBlockPlacerComponentOptions>Set whether the item type can destroy blocks in creative mode.
The can destroy in creative value.
Set the cooldown component of the item type.
Optional
options: Partial<ItemTypeCooldownComponentOptions>The options of the cooldown component.
Set the digger component of the item type.
Optional
options: Partial<ItemTypeDiggerComponentOptions>The options of the digger component.
Set the display name of the item type.
The display name value.
Set the icon of the item type.
Optional
options: Partial<ItemTypeIconComponentOptions>Set the max stack size of the item type.
The max stack size value.
Set the wearable component of the item type.
Optional
options: Partial<ItemTypeWearableComponentOptions>The options of the wearable component.
Static
fromStatic
readRead a nbt tag from a binary stream.
The binary stream to read from.
Optional
varint: booleanWhether to read the tag as a varint.
Optional
properties: Partial<ReadingProperties>Protected
Static
readOptional
varint: booleanStatic
writeWrite a nbt tag to a binary stream.
The binary stream to write to.
The value of the tag.
Optional
varint: booleanWhether to write the tag as a varint.
Optional
properties: Partial<WritingProperties>Protected
Static
writeOptional
varint: boolean
Create a new item component collection.