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

Method deserialize

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

Source from the content-addressed store, hash-verified

873 }
874
875 @NotNull
876 public static Vector deserialize(@NotNull Map<String, Object> args) {
877 double x = 0;
878 double y = 0;
879 double z = 0;
880
881 if (args.containsKey("x")) {
882 x = (Double) args.get("x");
883 }
884 if (args.containsKey("y")) {
885 y = (Double) args.get("y");
886 }
887 if (args.containsKey("z")) {
888 z = (Double) args.get("z");
889 }
890
891 return new Vector(x, y, z);
892 }
893}

Callers

nothing calls this directly

Calls 2

containsKeyMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected