Package com.mojang.realmsclient.client
Class RealmsClient
java.lang.Object
com.mojang.realmsclient.client.RealmsClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringstatic final RealmsClient.Environmentprivate static final GuardedSerializerprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate final Minecraftprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptInvitation(String inviteId) voidbackupsFor(long worldId) close(long worldId) static RealmsClientcreate()static RealmsClientcreateSnapshotRealm(Long parentId) voiddeleteRealm(long worldId) private StringfetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType worldType) getActivity(long worldId) getNews()getOwnRealm(long id) booleanvoidinitializeRealm(long worldId, String name, String description) private booleanisBlocked(PendingInvite pendingInvite) join(long serverId) voidnotificationsDismiss(List<UUID> uuidList) voidnotificationsSeen(List<UUID> uuidList) open(long worldId) intputIntoMinigameMode(long worldId, String minigameId) voidrejectInvitation(String inviteId) requestDownloadInfo(long worldId, int slotId) requestUploadInfo(long worldId, String token) resetWorldWithSeed(long worldId, WorldGenerationInfo generationInfo) resetWorldWithTemplate(long worldId, String worldTemplateId) voidrestoreWorld(long worldId, String backupId) voidsendPingResults(PingResult pingResult) subscriptionFor(long worldId) booleanswitchSlot(long worldId, int slotId) voidvoiduninviteMyselfFrom(long worldId) voidvoidupdateSlot(long worldId, int slotId, RealmsWorldOptions worldOptions) private Stringprivate Stringprivate static com.google.gson.JsonArrayuuidListToJsonArray(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
-