mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
TeleportResult refactor, use record and bundle resolved information, separate TeleportState enum, deprecate relevant API
This commit is contained in:
1 parent
82d47f0878
commit
4164f07841
12 files changed
+285
-151
No files matched your search
@@ -23,7 +23,7 @@ public class MessagePayload {
|
||||
*/
|
||||
@Nullable
|
||||
@SerializedName("teleport_result")
|
||||
public TeleportResult teleportResult;
|
||||
public TeleportResult.ResultState resultState;
|
||||
|
||||
/**
|
||||
* A teleport request field
|
||||
@@ -56,15 +56,15 @@ public class MessagePayload {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a payload containing a {@link TeleportResult}
|
||||
* Returns a payload containing a {@link TeleportResult.ResultState}
|
||||
*
|
||||
* @param teleportResult the teleport to send
|
||||
* @param resultState the teleport to send
|
||||
* @return a payload containing the teleport result
|
||||
*/
|
||||
@NotNull
|
||||
public static MessagePayload withTeleportResult(@NotNull TeleportResult teleportResult) {
|
||||
public static MessagePayload withTeleportResult(@NotNull TeleportResult.ResultState resultState) {
|
||||
final MessagePayload payload = new MessagePayload();
|
||||
payload.teleportResult = teleportResult;
|
||||
payload.resultState = resultState;
|
||||
return payload;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user