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

Method is

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

Is the item an item (not null or air) @param is the item @return true if it is

(ItemStack is)

Source from the content-addressed store, hash-verified

38 * @return true if it is
39 */
40 public static boolean is(ItemStack is) {
41 return is != null && !is.getType().equals(Material.AIR);
42 }
43
44 /**
45 * Is the item a certain material

Callers 13

getActualContentsMethod · 0.95
hasMetaMethod · 0.95
hasEnchantmentMethod · 0.95
hasEnchantmentsMethod · 0.95
isBrokenMethod · 0.95
hasDurabilityMethod · 0.95
getDurabilityPercentMethod · 0.95
setDurabilityPercentMethod · 0.95
getMaxDurabilityMethod · 0.95
getDurabilityMethod · 0.95
setDurabilityMethod · 0.95
damageMethod · 0.95

Calls 4

getTypeMethod · 0.65
getMaterialMethod · 0.65
getDataMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected