Equippable
Allows items to be worn in armor slots.
Parameters
The equipment texture to use, or null for no texture.
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.
The entity types that are allowed to wear this item, or null for all entities.
Whether this item can be dispensed from a dispenser.
Whether this item can be swapped with other items in the same slot.
Whether this item will be damaged when the wearing entity is damaged.
Whether this item should be equipped when right-clicking.
Whether players can use shears to remove this equippable item from a wearing entity.
The sound that is played when the equippable is removed by shears.
Constructors
Properties
The entity types that are allowed to wear this item.
The ids of the entities that are allowed to wear this item.
The amount of armor toughness this item provides.
The base data components that every item with this ItemBehavior has.
Whether players can use shears to remove this equippable item from a wearing entity.
Whether this item will be damaged when the wearing entity is damaged.
The NamespacedCompound that every new ItemStack of an item with this ItemBehavior has by default.
Whether this item can be dispensed from a dispenser.
Whether this item should be equipped when right-clicking.
The sound that is played when the item is equipped.
The key of the sound that is played when the item is equipped.
The amount of knockback resistance this item provides.
The sound that is played when the equippable is removed by shears.
The sound that is played when the equippable is removed by shears.
The vanilla material properties that an item with this ItemBehavior requires.
Functions
Called when a BlockBreakActionEvent is fired where player breaks a block with an itemStack with this behavior.
Called when a aPlayerItemBreakEvent is fired where an itemStack with this behavior runs out of durability and breaks.
Called when a PlayerItemDamageEvent is fired where an itemStack with this behavior takes damage.
Called when a PlayerInteractAtEntityEvent is fired for an itemStack with this behavior.
Called when a PlayerInteractEvent is fired for an itemStack with this behavior.
Called when a ServerboundPlayerActionPacketEvent is fired where the server receives a player action packet regarding an itemStack with this behavior. Note that this is a packet event, and as such this function is called a netty thread, not the server thread.
Updates the client-side item stack that is to be viewed by player in place of the server-side item stack.
Creates a string representation of this ItemBehavior and its data in itemStack.