mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 14:38:53 +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
+4
-4
@@ -28,8 +28,8 @@ public class MessageSerializationTests {
|
||||
.type(Message.Type.TELEPORT_REQUEST)
|
||||
.target("TestTarget")
|
||||
.payload(Payload.withPosition(
|
||||
new Position(63.25, 127.43, -32, 180f, -94.3f,
|
||||
new World("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
.build(),
|
||||
Message.builder()
|
||||
.type(Message.Type.TELEPORT_TO_NETWORKED_USER)
|
||||
@@ -45,8 +45,8 @@ public class MessageSerializationTests {
|
||||
.type(Message.Type.TELEPORT_TO_POSITION)
|
||||
.target("TestTarget")
|
||||
.payload(Payload.withPosition(
|
||||
new Position(63.25, 127.43, -32, 180f, -94.3f,
|
||||
new World("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
Position.at(63.25, 127.43, -32, 180f, -94.3f,
|
||||
World.from("TestWorld", UUID.randomUUID()), "TestServer")))
|
||||
.build()
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user