Companion

object Companion

Functions

Link copied to clipboard
fun consumeUse(item: ItemStack): Boolean

Spends one charge of item, increasing its damage by one.

Link copied to clipboard
fun getUsesLeft(item: ItemStack?): Int?

Remaining charges of item, or null if it has no durability data.

Link copied to clipboard
fun isDurable(item: ItemStack?): Boolean

Whether item belongs to a registered durable item.

Link copied to clipboard
fun makeDurable(effectiveItem: EffectiveItem, maxUses: Int)

Registers effectiveItem as durable with maxUses charges.