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

Method serialize

src/main/java/org/bukkit/Location.java:634–652  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

632 }
633
634 @Override
635 @Utility
636 @NotNull
637 public Map<String, Object> serialize() {
638 Map<String, Object> data = new HashMap<String, Object>();
639
640 if (this.world != null) {
641 data.put("world", getWorld().getName());
642 }
643
644 data.put("x", this.x);
645 data.put("y", this.y);
646 data.put("z", this.z);
647
648 data.put("yaw", this.yaw);
649 data.put("pitch", this.pitch);
650
651 return data;
652 }
653
654 /**
655 * Required method for deserialization

Callers

nothing calls this directly

Calls 3

getWorldMethod · 0.95
putMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected