Package net.minecraft.client.realms
Class RealmsClient
java.lang.Object
net.minecraft.client.realms.RealmsClient
@Environment(CLIENT) public class RealmsClient extends Object
- Mappings:
Namespace Name official dmg
intermediary net/minecraft/class_4341
named net/minecraft/client/realms/RealmsClient
-
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
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a:Ldmg$b;
intermediary field_19576
Lnet/minecraft/class_4341;field_19576:Lnet/minecraft/class_4341$class_4343;
named currentEnvironment
Lnet/minecraft/client/realms/RealmsClient;currentEnvironment:Lnet/minecraft/client/realms/RealmsClient$Environment;
-
initialized
private static boolean initialized- Mappings:
Namespace Name Mixin selector official b
Ldmg;b:Z
intermediary field_19577
Lnet/minecraft/class_4341;field_19577:Z
named initialized
Lnet/minecraft/client/realms/RealmsClient;initialized:Z
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Ldmg;c:Lorg/apache/logging/log4j/Logger;
intermediary field_19578
Lnet/minecraft/class_4341;field_19578:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/realms/RealmsClient;LOGGER:Lorg/apache/logging/log4j/Logger;
-
JSON
- Mappings:
Namespace Name Mixin selector official g
Ldmg;g:Ldmn;
intermediary field_22568
Lnet/minecraft/class_4341;field_22568:Lnet/minecraft/class_4869;
named JSON
Lnet/minecraft/client/realms/RealmsClient;JSON:Lnet/minecraft/client/realms/CheckedGson;
-
sessionId
- Mappings:
Namespace Name Mixin selector official d
Ldmg;d:Ljava/lang/String;
intermediary field_19579
Lnet/minecraft/class_4341;field_19579:Ljava/lang/String;
named sessionId
Lnet/minecraft/client/realms/RealmsClient;sessionId:Ljava/lang/String;
-
username
- Mappings:
Namespace Name Mixin selector official e
Ldmg;e:Ljava/lang/String;
intermediary field_19580
Lnet/minecraft/class_4341;field_19580:Ljava/lang/String;
named username
Lnet/minecraft/client/realms/RealmsClient;username:Ljava/lang/String;
-
client
- Mappings:
Namespace Name Mixin selector official f
Ldmg;f:Ldqk;
intermediary field_26901
Lnet/minecraft/class_4341;field_26901:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/realms/RealmsClient;client:Lnet/minecraft/client/MinecraftClient;
-
-
Constructor Details
-
RealmsClient
- Mappings:
Namespace Name Mixin selector official <init>
Ldmg;<init>(Ljava/lang/String;Ljava/lang/String;Ldqk;)V
intermediary <init>
Lnet/minecraft/class_4341;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/realms/RealmsClient;<init>(Ljava/lang/String;Ljava/lang/String;Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
createRealmsClient
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a()Ldmg;
intermediary method_20989
Lnet/minecraft/class_4341;method_20989()Lnet/minecraft/class_4341;
named createRealmsClient
Lnet/minecraft/client/realms/RealmsClient;createRealmsClient()Lnet/minecraft/client/realms/RealmsClient;
-
switchToStage
public static void switchToStage()- Mappings:
Namespace Name Mixin selector official b
Ldmg;b()V
intermediary method_21001
Lnet/minecraft/class_4341;method_21001()V
named switchToStage
Lnet/minecraft/client/realms/RealmsClient;switchToStage()V
-
switchToProd
public static void switchToProd()- Mappings:
Namespace Name Mixin selector official c
Ldmg;c()V
intermediary method_21008
Lnet/minecraft/class_4341;method_21008()V
named switchToProd
Lnet/minecraft/client/realms/RealmsClient;switchToProd()V
-
switchToLocal
public static void switchToLocal()- Mappings:
Namespace Name Mixin selector official d
Ldmg;d()V
intermediary method_21012
Lnet/minecraft/class_4341;method_21012()V
named switchToLocal
Lnet/minecraft/client/realms/RealmsClient;switchToLocal()V
-
listWorlds
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official e
Ldmg;e()Ldmx;
intermediary method_21015
Lnet/minecraft/class_4341;method_21015()Lnet/minecraft/class_4879;
named listWorlds
Lnet/minecraft/client/realms/RealmsClient;listWorlds()Lnet/minecraft/client/realms/dto/RealmsServerList;
-
getOwnWorld
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(J)Ldmv;
intermediary method_20991
Lnet/minecraft/class_4341;method_20991(J)Lnet/minecraft/class_4877;
named getOwnWorld
Lnet/minecraft/client/realms/RealmsClient;getOwnWorld(J)Lnet/minecraft/client/realms/dto/RealmsServer;
-
getLiveStats
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official f
Ldmg;f()Ldna;
intermediary method_21018
Lnet/minecraft/class_4341;method_21018()Lnet/minecraft/class_4882;
named getLiveStats
Lnet/minecraft/client/realms/RealmsClient;getLiveStats()Lnet/minecraft/client/realms/dto/RealmsServerPlayerLists;
-
join
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official b
Ldmg;b(J)Ldmw;
intermediary method_21009
Lnet/minecraft/class_4341;method_21009(J)Lnet/minecraft/class_4878;
named join
Lnet/minecraft/client/realms/RealmsClient;join(J)Lnet/minecraft/client/realms/dto/RealmsServerAddress;
-
initializeWorld
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(JLjava/lang/String;Ljava/lang/String;)V
intermediary method_20996
Lnet/minecraft/class_4341;method_20996(JLjava/lang/String;Ljava/lang/String;)V
named initializeWorld
Lnet/minecraft/client/realms/RealmsClient;initializeWorld(JLjava/lang/String;Ljava/lang/String;)V
-
mcoEnabled
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official g
Ldmg;g()Ljava/lang/Boolean;
intermediary method_21021
Lnet/minecraft/class_4341;method_21021()Ljava/lang/Boolean;
named mcoEnabled
Lnet/minecraft/client/realms/RealmsClient;mcoEnabled()Ljava/lang/Boolean;
-
stageAvailable
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official h
Ldmg;h()Ljava/lang/Boolean;
intermediary method_21024
Lnet/minecraft/class_4341;method_21024()Ljava/lang/Boolean;
named stageAvailable
Lnet/minecraft/client/realms/RealmsClient;stageAvailable()Ljava/lang/Boolean;
-
clientCompatible
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official i
Ldmg;i()Ldmg$a;
intermediary method_21027
Lnet/minecraft/class_4341;method_21027()Lnet/minecraft/class_4341$class_4342;
named clientCompatible
Lnet/minecraft/client/realms/RealmsClient;clientCompatible()Lnet/minecraft/client/realms/RealmsClient$CompatibleVersionResponse;
-
uninvite
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(JLjava/lang/String;)V
intermediary method_20994
Lnet/minecraft/class_4341;method_20994(JLjava/lang/String;)V
named uninvite
Lnet/minecraft/client/realms/RealmsClient;uninvite(JLjava/lang/String;)V
-
uninviteMyselfFrom
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official c
Ldmg;c(J)V
intermediary method_21013
Lnet/minecraft/class_4341;method_21013(J)V
named uninviteMyselfFrom
Lnet/minecraft/client/realms/RealmsClient;uninviteMyselfFrom(J)V
-
invite
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official b
Ldmg;b(JLjava/lang/String;)Ldmv;
intermediary method_21004
Lnet/minecraft/class_4341;method_21004(JLjava/lang/String;)Lnet/minecraft/class_4877;
named invite
Lnet/minecraft/client/realms/RealmsClient;invite(JLjava/lang/String;)Lnet/minecraft/client/realms/dto/RealmsServer;
-
backupsFor
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official d
Ldmg;d(J)Ldmm;
intermediary method_21016
Lnet/minecraft/class_4341;method_21016(J)Lnet/minecraft/class_4868;
named backupsFor
Lnet/minecraft/client/realms/RealmsClient;backupsFor(J)Lnet/minecraft/client/realms/dto/BackupList;
-
update
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official b
Ldmg;b(JLjava/lang/String;Ljava/lang/String;)V
intermediary method_21005
Lnet/minecraft/class_4341;method_21005(JLjava/lang/String;Ljava/lang/String;)V
named update
Lnet/minecraft/client/realms/RealmsClient;update(JLjava/lang/String;Ljava/lang/String;)V
-
updateSlot
public void updateSlot(long worldId, int slot, RealmsWorldOptions options) throws RealmsServiceException- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(JILdnb;)V
intermediary method_20993
Lnet/minecraft/class_4341;method_20993(JILnet/minecraft/class_4883;)V
named updateSlot
Lnet/minecraft/client/realms/RealmsClient;updateSlot(JILnet/minecraft/client/realms/dto/RealmsWorldOptions;)V
-
switchSlot
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(JI)Z
intermediary method_20992
Lnet/minecraft/class_4341;method_20992(JI)Z
named switchSlot
Lnet/minecraft/client/realms/RealmsClient;switchSlot(JI)Z
-
restoreWorld
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official c
Ldmg;c(JLjava/lang/String;)V
intermediary method_21010
Lnet/minecraft/class_4341;method_21010(JLjava/lang/String;)V
named restoreWorld
Lnet/minecraft/client/realms/RealmsClient;restoreWorld(JLjava/lang/String;)V
-
fetchWorldTemplates
public WorldTemplatePaginatedList fetchWorldTemplates(int page, int pageSize, RealmsServer.WorldType type) throws RealmsServiceException- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(IILdmv$c;)Ldnk;
intermediary method_20990
Lnet/minecraft/class_4341;method_20990(IILnet/minecraft/class_4877$class_4321;)Lnet/minecraft/class_4891;
named fetchWorldTemplates
Lnet/minecraft/client/realms/RealmsClient;fetchWorldTemplates(IILnet/minecraft/client/realms/dto/RealmsServer$WorldType;)Lnet/minecraft/client/realms/dto/WorldTemplatePaginatedList;
-
putIntoMinigameMode
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official d
Ldmg;d(JLjava/lang/String;)Ljava/lang/Boolean;
intermediary method_21014
Lnet/minecraft/class_4341;method_21014(JLjava/lang/String;)Ljava/lang/Boolean;
named putIntoMinigameMode
Lnet/minecraft/client/realms/RealmsClient;putIntoMinigameMode(JLjava/lang/String;)Ljava/lang/Boolean;
-
op
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official e
Ldmg;e(JLjava/lang/String;)Ldmo;
intermediary method_21017
Lnet/minecraft/class_4341;method_21017(JLjava/lang/String;)Lnet/minecraft/class_4870;
named op
Lnet/minecraft/client/realms/RealmsClient;op(JLjava/lang/String;)Lnet/minecraft/client/realms/dto/Ops;
-
deop
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official f
Ldmg;f(JLjava/lang/String;)Ldmo;
intermediary method_21020
Lnet/minecraft/class_4341;method_21020(JLjava/lang/String;)Lnet/minecraft/class_4870;
named deop
Lnet/minecraft/client/realms/RealmsClient;deop(JLjava/lang/String;)Lnet/minecraft/client/realms/dto/Ops;
-
open
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official e
Ldmg;e(J)Ljava/lang/Boolean;
intermediary method_21019
Lnet/minecraft/class_4341;method_21019(J)Ljava/lang/Boolean;
named open
Lnet/minecraft/client/realms/RealmsClient;open(J)Ljava/lang/Boolean;
-
close
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official f
Ldmg;f(J)Ljava/lang/Boolean;
intermediary method_21022
Lnet/minecraft/class_4341;method_21022(J)Ljava/lang/Boolean;
named close
Lnet/minecraft/client/realms/RealmsClient;close(J)Ljava/lang/Boolean;
-
resetWorldWithSeed
public Boolean resetWorldWithSeed(long worldId, ResetWorldInfo resetWorldInfo) throws RealmsServiceException- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(JLdpf;)Ljava/lang/Boolean;
intermediary method_20995
Lnet/minecraft/class_4341;method_20995(JLnet/minecraft/class_4413;)Ljava/lang/Boolean;
named resetWorldWithSeed
Lnet/minecraft/client/realms/RealmsClient;resetWorldWithSeed(JLnet/minecraft/client/realms/gui/screen/ResetWorldInfo;)Ljava/lang/Boolean;
-
resetWorldWithTemplate
public Boolean resetWorldWithTemplate(long worldId, String worldTemplateId) throws RealmsServiceException- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official g
Ldmg;g(JLjava/lang/String;)Ljava/lang/Boolean;
intermediary method_21023
Lnet/minecraft/class_4341;method_21023(JLjava/lang/String;)Ljava/lang/Boolean;
named resetWorldWithTemplate
Lnet/minecraft/client/realms/RealmsClient;resetWorldWithTemplate(JLjava/lang/String;)Ljava/lang/Boolean;
-
subscriptionFor
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official g
Ldmg;g(J)Ldnf;
intermediary method_21025
Lnet/minecraft/class_4341;method_21025(J)Lnet/minecraft/class_4887;
named subscriptionFor
Lnet/minecraft/client/realms/RealmsClient;subscriptionFor(J)Lnet/minecraft/client/realms/dto/Subscription;
-
pendingInvitesCount
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official j
Ldmg;j()I
intermediary method_21029
Lnet/minecraft/class_4341;method_21029()I
named pendingInvitesCount
Lnet/minecraft/client/realms/RealmsClient;pendingInvitesCount()I
-
pendingInvites
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official k
Ldmg;k()Ldmq;
intermediary method_21030
Lnet/minecraft/class_4341;method_21030()Lnet/minecraft/class_4872;
named pendingInvites
Lnet/minecraft/client/realms/RealmsClient;pendingInvites()Lnet/minecraft/client/realms/dto/PendingInvitesList;
-
isOwnerBlocked
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(Ldmp;)Z
intermediary method_31381
Lnet/minecraft/class_4341;method_31381(Lnet/minecraft/class_4871;)Z
named isOwnerBlocked
Lnet/minecraft/client/realms/RealmsClient;isOwnerBlocked(Lnet/minecraft/client/realms/dto/PendingInvite;)Z
-
acceptInvitation
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(Ljava/lang/String;)V
intermediary method_20999
Lnet/minecraft/class_4341;method_20999(Ljava/lang/String;)V
named acceptInvitation
Lnet/minecraft/client/realms/RealmsClient;acceptInvitation(Ljava/lang/String;)V
-
download
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official b
Ldmg;b(JI)Ldni;
intermediary method_21003
Lnet/minecraft/class_4341;method_21003(JI)Lnet/minecraft/class_4889;
named download
Lnet/minecraft/client/realms/RealmsClient;download(JI)Lnet/minecraft/client/realms/dto/WorldDownload;
-
upload
@Nullable public UploadInfo upload(long worldId, @Nullable String token) throws RealmsServiceException- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official h
Ldmg;h(JLjava/lang/String;)Ldng;
intermediary method_21026
Lnet/minecraft/class_4341;method_21026(JLjava/lang/String;)Lnet/minecraft/class_4888;
named upload
Lnet/minecraft/client/realms/RealmsClient;upload(JLjava/lang/String;)Lnet/minecraft/client/realms/dto/UploadInfo;
-
rejectInvitation
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official b
Ldmg;b(Ljava/lang/String;)V
intermediary method_21006
Lnet/minecraft/class_4341;method_21006(Ljava/lang/String;)V
named rejectInvitation
Lnet/minecraft/client/realms/RealmsClient;rejectInvitation(Ljava/lang/String;)V
-
agreeToTos
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official l
Ldmg;l()V
intermediary method_21031
Lnet/minecraft/class_4341;method_21031()V
named agreeToTos
Lnet/minecraft/client/realms/RealmsClient;agreeToTos()V
-
getNews
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official m
Ldmg;m()Ldmu;
intermediary method_21032
Lnet/minecraft/class_4341;method_21032()Lnet/minecraft/class_4876;
named getNews
Lnet/minecraft/client/realms/RealmsClient;getNews()Lnet/minecraft/client/realms/dto/RealmsNews;
-
sendPingResults
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(Ldmr;)V
intermediary method_20997
Lnet/minecraft/class_4341;method_20997(Lnet/minecraft/class_4873;)V
named sendPingResults
Lnet/minecraft/client/realms/RealmsClient;sendPingResults(Lnet/minecraft/client/realms/dto/PingResult;)V
-
trialAvailable
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official n
Ldmg;n()Ljava/lang/Boolean;
intermediary method_21033
Lnet/minecraft/class_4341;method_21033()Ljava/lang/Boolean;
named trialAvailable
Lnet/minecraft/client/realms/RealmsClient;trialAvailable()Ljava/lang/Boolean;
-
deleteWorld
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official h
Ldmg;h(J)V
intermediary method_21028
Lnet/minecraft/class_4341;method_21028(J)V
named deleteWorld
Lnet/minecraft/client/realms/RealmsClient;deleteWorld(J)V
-
url
- Mappings:
Namespace Name Mixin selector official c
Ldmg;c(Ljava/lang/String;)Ljava/lang/String;
intermediary method_21011
Lnet/minecraft/class_4341;method_21011(Ljava/lang/String;)Ljava/lang/String;
named url
Lnet/minecraft/client/realms/RealmsClient;url(Ljava/lang/String;)Ljava/lang/String;
-
url
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_21007
Lnet/minecraft/class_4341;method_21007(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named url
Lnet/minecraft/client/realms/RealmsClient;url(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
execute
- Throws:
RealmsServiceException
- Mappings:
Namespace Name Mixin selector official a
Ldmg;a(Ldmj;)Ljava/lang/String;
intermediary method_20998
Lnet/minecraft/class_4341;method_20998(Lnet/minecraft/class_4346;)Ljava/lang/String;
named execute
Lnet/minecraft/client/realms/RealmsClient;execute(Lnet/minecraft/client/realms/Request;)Ljava/lang/String;
-