mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
More work on commands
This commit is contained in:
33 files changed
+445
-382
No files matched your search
@@ -28,18 +28,9 @@ public class Position extends Location implements Target {
|
||||
private Position() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the position to match that of another position
|
||||
*
|
||||
* @param newPosition The position to update to
|
||||
*/
|
||||
@Override
|
||||
public void update(@NotNull Position newPosition) {
|
||||
this.setX(newPosition.getX());
|
||||
this.setY(newPosition.getY());
|
||||
this.setZ(newPosition.getZ());
|
||||
this.setYaw(newPosition.getYaw());
|
||||
this.setPitch(newPosition.getPitch());
|
||||
this.setWorld(newPosition.getWorld());
|
||||
super.update(newPosition);
|
||||
this.setServer(newPosition.getServer());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user