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

Method getDouble

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

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

(ItemStack item, String placeholder)

Source from the content-addressed store, hash-verified

133 * @throws NullPointerException if the stat was not found
134 */
135 public double getDouble(ItemStack item, String placeholder) {
136 return Double.parseDouble(getStat(item, placeholder));
137 }
138
139 /**
140 * Gets a double stat from lore

Callers

nothing calls this directly

Calls 1

getStatMethod · 0.95

Tested by

no test coverage detected