MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / firstSafe

Method firstSafe

libraries/launcher/org/polymc/utils/Parameters.java:69–76  ·  view source on GitHub ↗
(String key, String def)

Source from the content-addressed store, hash-verified

67 }
68
69 public String firstSafe(String key, String def) {
70 List<String> params = paramsMap.get(key);
71
72 if (params == null || params.isEmpty())
73 return def;
74
75 return params.get(0);
76 }
77
78}

Callers 1

OneSixLauncherMethod · 0.80

Calls 2

isEmptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected