MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / parseInt

Method parseInt

src/main/java/net/optifine/util/StrUtils.java:364–381  ·  view source on GitHub ↗
(String s, int defVal)

Source from the content-addressed store, hash-verified

362 }
363
364 public static int parseInt(String s, int defVal)
365 {
366 if (s == null)
367 {
368 return defVal;
369 }
370 else
371 {
372 try
373 {
374 return Integer.parseInt(s);
375 }
376 catch (NumberFormatException var3)
377 {
378 return defVal;
379 }
380 }
381 }
382
383 public static boolean isFilled(String string)
384 {

Callers 6

stringIncMethod · 0.95
parseColorMethod · 0.45
loadModLightLevelsMethod · 0.45
readContentChunkedMethod · 0.45
loadEntityDataMapMethod · 0.45
getValueIntMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected