MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / getMaxDurability

Method getMaxDurability

src/main/java/com/volmit/adapt/util/Items.java:253–259  ·  view source on GitHub ↗

Get the max durability @param is the item @return the item type's max durability

(ItemStack is)

Source from the content-addressed store, hash-verified

251 * @return the item type's max durability
252 */
253 public static short getMaxDurability(ItemStack is) {
254 if (!is(is)) {
255 return 0;
256 }
257
258 return is.getType().getMaxDurability();
259 }
260
261 /**
262 * Get the durability

Callers 9

isBrokenMethod · 0.95
hasDurabilityMethod · 0.95
getDurabilityPercentMethod · 0.95
setDurabilityPercentMethod · 0.95
setDurabilityMethod · 0.95
onMethod · 0.80
itemDelegateMethod · 0.80
getItemStackMethod · 0.80

Calls 2

isMethod · 0.95
getTypeMethod · 0.65

Tested by

no test coverage detected