Database design, start callback-based implementation planning

This commit is contained in:
William committed 2022-05-21 02:53:58 +01:00
1 parent 0446db39c5
commit 8e7d5e74a0
17 files changed
+672 -92

No files matched your search

@@ -2,41 +2,12 @@ package net.william278.huskhomes.position;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
/**
* Represents a position somewhere on the proxy network or server
* Represents a position - a location somewhere on the proxy network or server
*/
public class Position {
/**
* The double-precision defined x coordinate of the position
*/
public double x;
/**
* The double-precision defined y coordinate of the position
*/
public double y;
/**
* The double-precision defined z coordinate of the position
*/
public double z;
/**
* The float-precision defined yaw facing of the position
*/
public float yaw;
/**
* The float-precision defined pitch facing of the position
*/
public float pitch;
/**
* The {@link World} the position is within
*/
@NotNull
public World world;
public class Position extends Location {
/**
* The {@link Server} the position is on
@@ -44,13 +15,9 @@ public class Position {
@NotNull
public Server server;
public Position(double x, double y, double z, float yaw, float pitch, @NotNull World world, @NotNull Server server) {
this.x = x;
this.y = y;
this.z = z;
this.yaw = yaw;
this.pitch = pitch;
this.world = world;
public Position(double x, double y, double z, float yaw, float pitch,
@NotNull World world, @NotNull Server server) {
super(x, y, z, yaw, pitch, world);
this.server = server;
}