public interface DurabilityData extends DataManipulator<DurabilityData,ImmutableDurabilityData>
DataManipulator
handling the "durability" of an ItemStack
that will "break" after a certain amount of "uses".
Usually, items with durability will break and disappear when their
durability reaches the maximum. Examples of this include pickaxes,
axes, swords, and shovels. It is recommended to retrieve the maximum
durability limit from the UseLimitProperty
.
Modifier and Type | Method and Description |
---|---|
MutableBoundedValue<Integer> |
durability()
Gets the
MutableBoundedValue for the "durability" remaining. |
Value<Boolean> |
unbreakable()
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MutableBoundedValue<Integer> durability()
MutableBoundedValue
for the "durability" remaining.
The durability is a number signifying how many "uses' remain on the
item. When the durability reaches 0, usually, the item breaks.Keys.ITEM_DURABILITY