MCPcopy Create free account
hub / github.com/Teneted/Tenet / getDurability

Method getDurability

src/main/java/org/bukkit/inventory/ItemStack.java:225–229  ·  view source on GitHub ↗

Gets the durability of this item @return Durability of this item @deprecated see #setDurability(short)

()

Source from the content-addressed store, hash-verified

223 * @deprecated see {@link #setDurability(short)}
224 */
225 @Deprecated
226 public short getDurability() {
227 ItemMeta meta = getItemMeta();
228 return (meta == null) ? 0 : (short) ((Damageable) meta).getDamage();
229 }
230
231 /**
232 * Get the maximum stacksize for the material hold in this ItemStack.

Callers 6

getRecipesForMethod · 0.95
removeIngredientMethod · 0.95
getDataMethod · 0.95
isSimilarMethod · 0.95
hashCodeMethod · 0.95
fromItemStackMethod · 0.45

Calls 2

getItemMetaMethod · 0.95
getDamageMethod · 0.65

Tested by

no test coverage detected