MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getSubAsFloatArray

Method getSubAsFloatArray

common/buildcraft/lib/misc/JsonUtil.java:68–73  ·  view source on GitHub ↗
(JsonObject obj, String string)

Source from the content-addressed store, hash-verified

66 }
67
68 public static float[] getSubAsFloatArray(JsonObject obj, String string) {
69 if (!obj.has(string)) {
70 throw new JsonSyntaxException("Required member " + string + " in " + obj);
71 }
72 return getAsFloatArray(obj.get(string));
73 }
74
75 public static String getAsString(JsonElement element) {
76 if (!element.isJsonPrimitive()) {

Callers 2

JsonQuadMethod · 0.95

Calls 2

getAsFloatArrayMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected