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

Method isJsonArray

src/main/java/net/minecraft/util/JsonUtils.java:35–38  ·  view source on GitHub ↗

Does the given JsonObject contain an array field with the given name?

(JsonObject p_151202_0_, String p_151202_1_)

Source from the content-addressed store, hash-verified

33 * Does the given JsonObject contain an array field with the given name?
34 */
35 public static boolean isJsonArray(JsonObject p_151202_0_, String p_151202_1_)
36 {
37 return !hasField(p_151202_0_, p_151202_1_) ? false : p_151202_0_.get(p_151202_1_).isJsonArray();
38 }
39
40 /**
41 * Does the given JsonObject contain a field with the given name whose type is primitive (String, Java primitive, or

Callers 7

parseGroupMethod · 0.95
deserializeMethod · 0.95
parseVariantsMethod · 0.80
getJsonArrayMethod · 0.80
toStringMethod · 0.80
fromJsonMethod · 0.80
deserializeMethod · 0.80

Calls 2

hasFieldMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected