MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getString

Method getString

The 5zig Mod/src/eu/the5zig/mod/util/JsonUtil.java:35–40  ·  view source on GitHub ↗
(JsonObject object, String name)

Source from the content-addressed store, hash-verified

33 }
34
35 public static String getString(JsonObject object, String name) {
36 JsonElement element = object.get(name);
37 if (element == null || element.isJsonNull())
38 return null;
39 return element.getAsString();
40 }
41
42 public static List<String> getList(JsonObject object, String name) {
43 List<String> result = Lists.newArrayList();

Callers 8

callMethod · 0.95
parseStringMethod · 0.95
queryMethod · 0.45
I18nClass · 0.45
translateMethod · 0.45
initGuiMethod · 0.45
drawScreenMethod · 0.45
runMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected