mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
New API methods, refactor position object to use static creators
This commit is contained in:
1 parent
42adc13425
commit
6b8c515b61
42 files changed
+587
-232
No files matched your search
@@ -37,7 +37,7 @@ public class Spawn {
|
||||
*/
|
||||
@NotNull
|
||||
public Position getPosition(@NotNull String server) {
|
||||
return new Position(x, y, z, yaw, pitch, new World(worldName, UUID.fromString(worldUuid)), server);
|
||||
return Position.at(x, y, z, yaw, pitch, World.from(worldName, UUID.fromString(worldUuid)), server);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user