()
| 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 |