More refactor work, encapsulate classes

This commit is contained in:
William278 committed 2023-03-02 15:00:02 +00:00
1 parent 3e1ec09487
commit 1cebdac9b8
51 files changed
+756 -621

No files matched your search

@@ -51,13 +51,13 @@ public class CachedSpawn {
* @param location The {@link Location} of the spawn
*/
public CachedSpawn(@NotNull Location location) {
this.x = location.x;
this.y = location.y;
this.z = location.z;
this.yaw = location.yaw;
this.pitch = location.pitch;
this.worldName = location.world.name;
this.worldUuid = location.world.uuid.toString();
this.x = location.getX();
this.y = location.getY();
this.z = location.getZ();
this.yaw = location.getYaw();
this.pitch = location.getPitch();
this.worldName = location.getWorld().getName();
this.worldUuid = location.getWorld().getUuid().toString();
}
@SuppressWarnings("unused")