mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Cleanup SavedPositionManager, remove unused name-based methods, cleaner position updating
This commit is contained in:
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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user