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 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 final Stringprivate static final Stringprivate static 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 inviteId) voidbackupsFor(long worldId) close(long worldId) createSnapshotRealm(Long parentId) voiddeleteRealm(long worldId) private StringfetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType worldType) getActivity(long worldId) getNews()static RealmsClientstatic RealmsClientgetOrCreate(Minecraft minecraft) getOwnRealm(long id) booleanvoidinitializeRealm(long worldId, String name, String description) private booleanisBlocked(PendingInvite pendingInvite) join(long worldId) 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) resetWorldWithTemplate(long worldId, String worldTemplateId) voidrestoreWorld(long worldId, String backupId) voidsendPingResults(PingResult pingResult) subscriptionFor(long worldId) booleanswitchSlot(long worldId, int slotId) voidvoiduninviteMyselfFrom(long worldId) voidupdateConfiguration(long worldId, String name, String description, RegionSelectionPreferenceDto regionSettings, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) voidupdateSlot(long worldId, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) private Stringprivate Stringprivate static Stringprivate static JsonArrayuuidListToJsonArray(List<UUID> uuidList)
-
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_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_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
-
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
-
updateConfiguration
public void updateConfiguration(long worldId, String name, String description, @Nullable RegionSelectionPreferenceDto regionSettings, int slotId, RealmsWorldOptions options, List<RealmsSetting> settings) throws RealmsServiceException - Throws:
RealmsServiceException
-
updateSlot
public void updateSlot(long worldId, 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 worldType) throws RealmsServiceException - Throws:
RealmsServiceException
-
putIntoMinigameMode
- Throws:
RealmsServiceException
-
op
- Throws:
RealmsServiceException
-
deop
- Throws:
RealmsServiceException
-
open
- Throws:
RealmsServiceException
-
close
- 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
- Throws:
RealmsServiceException
-
rejectInvitation
- Throws:
RealmsServiceException
-
agreeToTos
- Throws:
RealmsServiceException
-
getNews
- Throws:
RealmsServiceException
-
sendPingResults
- Throws:
RealmsServiceException
-
trialAvailable
- Throws:
RealmsServiceException
-
deleteRealm
- Throws:
RealmsServiceException
-
url
- Throws:
RealmsServiceException
-
url
- Throws:
RealmsServiceException
-
url
-
execute
- Throws:
RealmsServiceException
-