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

Method hasLore

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

Does the item have any lore? @param is the item @return true if it does

(ItemStack is)

Source from the content-addressed store, hash-verified

115 * @return true if it does
116 */
117 public static boolean hasLore(ItemStack is) {
118 return hasMeta(is) && is.getItemMeta().hasLore();
119 }
120
121 /**
122 * Does the item have the given name (color matters)

Callers

nothing calls this directly

Calls 2

hasMetaMethod · 0.95
getItemMetaMethod · 0.80

Tested by

no test coverage detected