Damageable
constructor(maxDurability: Provider<Int>, itemDamageOnAttackEntity: Provider<Int>, itemDamageOnBreakBlock: Provider<Int>, repairIngredient: Provider<RecipeChoice?>, breakSound: Provider<Key>)
Parameters
maxDurability
The maximum durability of the item.
itemDamageOnAttackEntity
The amount of damage the item receives when attacking an entity.
itemDamageOnBreakBlock
The amount of damage the item receives when breaking a block.
repairIngredient
The ingredient required to repair the item in an anvil. Can be null for items that cannot be repaired.
breakSound
The sound that is played when the item breaks.