Package com.mojang.realmsclient.client
Class RealmsClient
java.lang.Object
com.mojang.realmsclient.client.RealmsClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
static final RealmsClient.Environment
private static final GuardedSerializer
private static final String
private static final org.slf4j.Logger
private static final String
private final Minecraft
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final String
private static final String
private static final String
private final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptInvitation
(String inviteId) void
backupsFor
(long worldId) close
(long worldId) static RealmsClient
create()
static RealmsClient
createSnapshotRealm
(Long parentId) void
deleteRealm
(long worldId) private String
fetchWorldTemplates
(int page, int pageSize, RealmsServer.WorldType worldType) getActivity
(long worldId) getNews()
getOwnRealm
(long id) boolean
void
initializeRealm
(long worldId, String name, String description) private boolean
isBlocked
(PendingInvite pendingInvite) join
(long serverId) void
notificationsDismiss
(List<UUID> uuidList) void
notificationsSeen
(List<UUID> uuidList) open
(long worldId) int
putIntoMinigameMode
(long worldId, String minigameId) void
rejectInvitation
(String inviteId) requestDownloadInfo
(long worldId, int slotId) requestUploadInfo
(long worldId, String token) resetWorldWithSeed
(long worldId, WorldGenerationInfo generationInfo) resetWorldWithTemplate
(long worldId, String worldTemplateId) void
restoreWorld
(long worldId, String backupId) void
sendPingResults
(PingResult pingResult) subscriptionFor
(long worldId) boolean
switchSlot
(long worldId, int slotId) void
void
uninviteMyselfFrom
(long worldId) void
void
updateSlot
(long worldId, int slotId, RealmsWorldOptions worldOptions) private String
private String
private static com.google.gson.JsonArray
uuidListToJsonArray
(List<UUID> uuidList)
-
Field Details
-
ENVIRONMENT
-
LOGGER
private static final org.slf4j.Logger LOGGER -
sessionId
-
username
-
minecraft
-
WORLDS_RESOURCE_PATH
- See Also:
-
INVITES_RESOURCE_PATH
- See Also:
-
MCO_RESOURCE_PATH
- See Also:
-
SUBSCRIPTION_RESOURCE
- See Also:
-
ACTIVITIES_RESOURCE
- See Also:
-
OPS_RESOURCE
- See Also:
-
REGIONS_RESOURCE
- See Also:
-
TRIALS_RESOURCE
- See Also:
-
NOTIFICATIONS_RESOURCE
- See Also:
-
PATH_LIST_ALL_REALMS
- See Also:
-
PATH_CREATE_SNAPSHOT_REALM
- See Also:
-
PATH_SNAPSHOT_ELIGIBLE_REALMS
- See Also:
-
PATH_INITIALIZE
- See Also:
-
PATH_GET_ACTIVTIES
- See Also:
-
PATH_GET_LIVESTATS
- See Also:
-
PATH_GET_SUBSCRIPTION
- See Also:
-
PATH_OP
- See Also:
-
PATH_PUT_INTO_MINIGAMES_MODE
- See Also:
-
PATH_AVAILABLE
- See Also:
-
PATH_TEMPLATES
- See Also:
-
PATH_WORLD_JOIN
- See Also:
-
PATH_WORLD_GET
- See Also:
-
PATH_WORLD_INVITES
- See Also:
-
PATH_WORLD_UNINVITE
- See Also:
-
PATH_PENDING_INVITES_COUNT
- See Also:
-
PATH_PENDING_INVITES
- See Also:
-
PATH_ACCEPT_INVITE
- See Also:
-
PATH_REJECT_INVITE
- See Also:
-
PATH_UNINVITE_MYSELF
- See Also:
-
PATH_WORLD_UPDATE
- See Also:
-
PATH_SLOT
- See Also:
-
PATH_WORLD_OPEN
- See Also:
-
PATH_WORLD_CLOSE
- See Also:
-
PATH_WORLD_RESET
- See Also:
-
PATH_DELETE_WORLD
- See Also:
-
PATH_WORLD_BACKUPS
- See Also:
-
PATH_WORLD_DOWNLOAD
- See Also:
-
PATH_WORLD_UPLOAD
- See Also:
-
PATH_CLIENT_COMPATIBLE
- See Also:
-
PATH_TOS_AGREED
- See Also:
-
PATH_NEWS
- See Also:
-
PATH_MARK_NOTIFICATIONS_SEEN
- See Also:
-
PATH_DISMISS_NOTIFICATIONS
- See Also:
-
GSON
-
-
Constructor Details
-
RealmsClient
-
-
Method Details
-
create
-
create
-
listRealms
- Throws:
RealmsServiceException
-
listSnapshotEligibleRealms
- Throws:
RealmsServiceException
-
createSnapshotRealm
- Throws:
RealmsServiceException
-
getNotifications
- Throws:
RealmsServiceException
-
uuidListToJsonArray
-
notificationsSeen
- Throws:
RealmsServiceException
-
notificationsDismiss
- Throws:
RealmsServiceException
-
getOwnRealm
- Throws:
RealmsServiceException
-
getActivity
- Throws:
RealmsServiceException
-
getLiveStats
- Throws:
RealmsServiceException
-
join
- Throws:
RealmsServiceException
-
initializeRealm
public void initializeRealm(long worldId, String name, String description) throws RealmsServiceException - Throws:
RealmsServiceException
-
hasParentalConsent
- Throws:
RealmsServiceException
-
clientCompatible
- Throws:
RealmsServiceException
-
uninvite
- Throws:
RealmsServiceException
-
uninviteMyselfFrom
- Throws:
RealmsServiceException
-
invite
- Throws:
RealmsServiceException
-
backupsFor
- Throws:
RealmsServiceException
-
update
- Throws:
RealmsServiceException
-
updateSlot
public void updateSlot(long worldId, int slotId, RealmsWorldOptions worldOptions) throws RealmsServiceException - Throws:
RealmsServiceException
-
switchSlot
- Throws:
RealmsServiceException
-
restoreWorld
- Throws:
RealmsServiceException
-
fetchWorldTemplates
public WorldTemplatePaginatedList fetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType worldType) throws RealmsServiceException - Throws:
RealmsServiceException
-
putIntoMinigameMode
- Throws:
RealmsServiceException
-
op
- Throws:
RealmsServiceException
-
deop
- Throws:
RealmsServiceException
-
open
- Throws:
RealmsServiceException
-
close
- Throws:
RealmsServiceException
-
resetWorldWithSeed
public Boolean resetWorldWithSeed(long worldId, WorldGenerationInfo generationInfo) throws RealmsServiceException - Throws:
RealmsServiceException
-
resetWorldWithTemplate
public Boolean resetWorldWithTemplate(long worldId, String worldTemplateId) throws RealmsServiceException - Throws:
RealmsServiceException
-
subscriptionFor
- Throws:
RealmsServiceException
-
pendingInvitesCount
- Throws:
RealmsServiceException
-
pendingInvites
- Throws:
RealmsServiceException
-
isBlocked
-
acceptInvitation
- Throws:
RealmsServiceException
-
requestDownloadInfo
- Throws:
RealmsServiceException
-
requestUploadInfo
@Nullable public UploadInfo requestUploadInfo(long worldId, @Nullable String token) throws RealmsServiceException - Throws:
RealmsServiceException
-
rejectInvitation
- Throws:
RealmsServiceException
-
agreeToTos
- Throws:
RealmsServiceException
-
getNews
- Throws:
RealmsServiceException
-
sendPingResults
- Throws:
RealmsServiceException
-
trialAvailable
- Throws:
RealmsServiceException
-
deleteRealm
- Throws:
RealmsServiceException
-
url
-
url
-
execute
- Throws:
RealmsServiceException
-