Gets the durability of this item @return Durability of this item @deprecated see #setDurability(short)
()
| 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. |
no test coverage detected