MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getInt

Method getInt

src/redempt/redlib/itemutils/LoreStats.java:107–109  ·  view source on GitHub ↗

Gets an int stat from lore @param item The item to check the stat on @param placeholder The placeholder to use, without percent signs @return The int stat found @throws NullPointerException if the stat was not found

(ItemStack item, String placeholder)

Source from the content-addressed store, hash-verified

105 * @throws NullPointerException if the stat was not found
106 */
107 public int getInt(ItemStack item, String placeholder) {
108 return Integer.parseInt(getStat(item, placeholder));
109 }
110
111 /**
112 * Gets an int stat from lore

Callers

nothing calls this directly

Calls 1

getStatMethod · 0.95

Tested by

no test coverage detected