MCPcopy Create free account
hub / github.com/Teneted/Tenet / getInt

Method getInt

src/main/java/org/bukkit/potion/PotionEffect.java:114–120  ·  view source on GitHub ↗
(@NotNull Map<?, ?> map, @NotNull Object key)

Source from the content-addressed store, hash-verified

112 }
113
114 private static int getInt(@NotNull Map<?, ?> map, @NotNull Object key) {
115 Object num = map.get(key);
116 if (num instanceof Integer) {
117 return (Integer) num;
118 }
119 throw new NoSuchElementException(map + " does not contain " + key);
120 }
121
122 private static boolean getBool(@NotNull Map<?, ?> map, @NotNull Object key, boolean def) {
123 Object bool = map.get(key);

Callers 2

PotionEffectMethod · 0.95
getEffectTypeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected