Cleanup SavedPositionManager, remove unused name-based methods, cleaner position updating

This commit is contained in:
William278 committed 2022-09-05 15:44:43 +03:00
1 parent 10b7f1629f
commit 059baa174d
2 files changed
+18 -114

No files matched your search

@@ -30,6 +30,21 @@ public class Position extends Location {
public Position() {
}
/**
* Update the position to match that of another position
*
* @param newPosition The position to update to
*/
public void update(@NotNull Position newPosition) {
this.x = newPosition.x;
this.y = newPosition.y;
this.z = newPosition.z;
this.yaw = newPosition.yaw;
this.pitch = newPosition.pitch;
this.world = newPosition.world;
this.server = newPosition.server;
}
/**
* Parses the position from a set of values
*