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

Method allSafe

libraries/launcher/org/polymc/utils/Parameters.java:51–58  ·  view source on GitHub ↗
(String key, List<String> def)

Source from the content-addressed store, hash-verified

49 }
50
51 public List<String> allSafe(String key, List<String> def) {
52 List<String> params = paramsMap.get(key);
53
54 if (params == null || params.isEmpty())
55 return def;
56
57 return params;
58 }
59
60 public String first(String key) throws ParameterNotFoundException {
61 List<String> list = all(key);

Callers 1

OneSixLauncherMethod · 0.80

Calls 2

isEmptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected