(@NotNull Map<String, Object> args)
| 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 | } |
nothing calls this directly
no test coverage detected