Wearable
Allows items to be worn in armor slots.
Parameters
The leather armor color used for the custom texture, or null if no custom texture should be used.
The slot in which the item can be worn.
The amount of armor this item provides.
The amount of armor toughness this item provides.
The amount of knockback resistance this item provides.
The sound that is played when the item is equipped, or null if no sound should be played.
Constructors
Properties
The amount of armor toughness this item provides.
The base data components that every item with this ItemBehavior has.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
The data component patch that every new ItemStack of an item with this ItemBehavior has by default.
The sound that is played when the item is equipped.
The amount of knockback resistance this item provides.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Creates a string representation of this ItemBehavior and its data in itemStack.