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)
| 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 |