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 Stringprivate final CompletableFuture<Set<String>> private 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 @Nullable RealmsClientprivate static final Stringprivate final Stringprivate static final Stringprivate static final Stringprivate final Stringprivate static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRealmsClient(String sessionId, String username, Minecraft minecraft) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptInvitation(String invitationId) voidbackupsFor(long realmId) close(long realmId) createSnapshotRealm(Long parentId) voiddeleteRealm(long realmId) private StringfetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType type) getNews()static RealmsClientstatic RealmsClientgetOrCreate(Minecraft minecraft) getOwnRealm(long realmId) booleanvoidinitializeRealm(long realmId, String name, String motd) private booleanisBlocked(PendingInvite invite) join(long realmId) voidnotificationsDismiss(List<UUID> notificationUuids) voidnotificationsSeen(List<UUID> notificationUuids) open(long realmId) intputIntoMinigameMode(long realmId, String minigameId) voidrejectInvitation(String invitationId) requestDownloadInfo(long realmId, int slotId) @Nullable UploadInforequestUploadInfo(long realmId) resetWorldWithTemplate(long realmId, String worldTemplateId) voidrestoreWorld(long realmId, String backupId) voidsendPingResults(PingResult pingResult) subscriptionFor(long realmId) booleanswitchSlot(long realmId, int slot) voidvoiduninviteMyselfFrom(long realmId) voidupdateConfiguration(long realmId, String name, String description, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) voidupdateSlot(long realmId, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) private Stringprivate Stringprivate static Stringprivate static com.google.gson.JsonArrayuuidListToJsonArray(List<UUID> uuids)
-
Field Details
-
ENVIRONMENT
-
LOGGER
private static final org.slf4j.Logger LOGGER -
realmsClientInstance
-
featureFlags
-
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:
-
PREFERRED_REGION_RESOURCE
- See Also:
-
TRIALS_RESOURCE
- See Also:
-
NOTIFICATIONS_RESOURCE
- See Also:
-
FEATURE_FLAGS_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_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
- See Also:
-
PATH_ACCEPT_INVITE
- See Also:
-
PATH_REJECT_INVITE
- See Also:
-
PATH_UNINVITE_MYSELF
- See Also:
-
PATH_WORLD_CONFIGURE
- 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
-
getOrCreate
-
getOrCreate
-
getFeatureFlags
-
fetchFeatureFlags
-
listRealms
- Throws:
RealmsServiceException
-
listSnapshotEligibleRealms
- Throws:
RealmsServiceException
-
createSnapshotRealm
- Throws:
RealmsServiceException
-
getNotifications
- Throws:
RealmsServiceException
-
uuidListToJsonArray
-
notificationsSeen
- Throws:
RealmsServiceException
-
notificationsDismiss
- Throws:
RealmsServiceException
-
getOwnRealm
- Throws:
RealmsServiceException
-
getPreferredRegionSelections
- Throws:
RealmsServiceException
-
getLiveStats
- Throws:
RealmsServiceException
-
join
- Throws:
RealmsServiceException
-
initializeRealm
- Throws:
RealmsServiceException
-
hasParentalConsent
- Throws:
RealmsServiceException
-
clientCompatible
- Throws:
RealmsServiceException
-
uninvite
- Throws:
RealmsServiceException
-
uninviteMyselfFrom
- Throws:
RealmsServiceException
-
invite
- Throws:
RealmsServiceException
-
backupsFor
- Throws:
RealmsServiceException
-
updateConfiguration
public void updateConfiguration(long realmId, String name, String description, @Nullable RegionSelectionPreferenceDto regionSelectionPreference, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) throws RealmsServiceException - Throws:
RealmsServiceException
-
updateSlot
public void updateSlot(long realmId, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) throws RealmsServiceException - Throws:
RealmsServiceException
-
switchSlot
- Throws:
RealmsServiceException
-
restoreWorld
- Throws:
RealmsServiceException
-
fetchWorldTemplates
public WorldTemplatePaginatedList fetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType type) throws RealmsServiceException - Throws:
RealmsServiceException
-
putIntoMinigameMode
- Throws:
RealmsServiceException
-
op
- Throws:
RealmsServiceException
-
deop
- Throws:
RealmsServiceException
-
open
- Throws:
RealmsServiceException
-
close
- Throws:
RealmsServiceException
-
resetWorldWithTemplate
public Boolean resetWorldWithTemplate(long realmId, String worldTemplateId) throws RealmsServiceException - Throws:
RealmsServiceException
-
subscriptionFor
- Throws:
RealmsServiceException
-
pendingInvitesCount
- Throws:
RealmsServiceException
-
pendingInvites
- Throws:
RealmsServiceException
-
isBlocked
-
acceptInvitation
- Throws:
RealmsServiceException
-
requestDownloadInfo
- Throws:
RealmsServiceException
-
requestUploadInfo
- Throws:
RealmsServiceException
-
rejectInvitation
- Throws:
RealmsServiceException
-
agreeToTos
- Throws:
RealmsServiceException
-
getNews
- Throws:
RealmsServiceException
-
sendPingResults
- Throws:
RealmsServiceException
-
trialAvailable
- Throws:
RealmsServiceException
-
deleteRealm
- Throws:
RealmsServiceException
-
url
- Throws:
RealmsServiceException
-
url
-
url
-
execute
- Throws:
RealmsServiceException
-