MCPcopy Create free account
hub / github.com/Teneted/Tenet / deserialize

Method deserialize

src/main/java/org/bukkit/util/BlockVector.java:112–129  ·  view source on GitHub ↗
(@NotNull Map<String, Object> args)

Source from the content-addressed store, hash-verified

110 }
111
112 @NotNull
113 public static BlockVector deserialize(@NotNull Map<String, Object> args) {
114 double x = 0;
115 double y = 0;
116 double z = 0;
117
118 if (args.containsKey("x")) {
119 x = (Double) args.get("x");
120 }
121 if (args.containsKey("y")) {
122 y = (Double) args.get("y");
123 }
124 if (args.containsKey("z")) {
125 z = (Double) args.get("z");
126 }
127
128 return new BlockVector(x, y, z);
129 }
130}

Callers

nothing calls this directly

Calls 2

containsKeyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected