Package net.minecraft.client.realms
Class RealmsClient
java.lang.Object
net.minecraft.client.realms.RealmsClient
@Environment(CLIENT) public class RealmsClient extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RealmsClient.CompatibleVersionResponse
static class
RealmsClient.Environment
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
static RealmsClient.Environment
currentEnvironment
private static boolean
initialized
private static CheckedGson
JSON
private static Logger
LOGGER
private String
sessionId
private String
username
-
Constructor Summary
Constructors Constructor Description RealmsClient(String sessionId, String username, MinecraftClient client)
-
Method Summary
-
Field Details
-
currentEnvironment
-
initialized
private static boolean initialized -
LOGGER
-
JSON
-
sessionId
-
username
-
client
-
-
Constructor Details
-
RealmsClient
-
-
Method Details
-
createRealmsClient
-
switchToStage
public static void switchToStage() -
switchToProd
public static void switchToProd() -
switchToLocal
public static void switchToLocal() -
listWorlds
- Throws:
RealmsServiceException
-
getOwnWorld
- Throws:
RealmsServiceException
-
getLiveStats
- Throws:
RealmsServiceException
-
join
- Throws:
RealmsServiceException
-
initializeWorld
- Throws:
RealmsServiceException
-
mcoEnabled
- Throws:
RealmsServiceException
-
stageAvailable
- 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 slot, RealmsWorldOptions options) 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
-
resetWorldWithSeed
public Boolean resetWorldWithSeed(long worldId, String seed, Integer levelType, boolean generateStructures) 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
-
isOwnerBlocked
-
acceptInvitation
- Throws:
RealmsServiceException
-
download
- Throws:
RealmsServiceException
-
upload
@Nullable public UploadInfo upload(long worldId, @Nullable String token) throws RealmsServiceException- Throws:
RealmsServiceException
-
rejectInvitation
- Throws:
RealmsServiceException
-
agreeToTos
- Throws:
RealmsServiceException
-
getNews
- Throws:
RealmsServiceException
-
sendPingResults
- Throws:
RealmsServiceException
-
trialAvailable
- Throws:
RealmsServiceException
-
deleteWorld
- Throws:
RealmsServiceException
-
url
-
url
-
execute
-