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
  • Field Details

    • currentEnvironment

      public static RealmsClient.Environment 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

      private static final Logger 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

      private static final CheckedGson 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

      private final String 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

      private final 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

      private final MinecraftClient 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

      public RealmsClient​(String sessionId, String username, MinecraftClient client)
      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

      public static RealmsClient 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

      public RealmsServerList listWorlds() throws RealmsServiceException
      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

      public RealmsServer getOwnWorld​(long worldId) throws RealmsServiceException
      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

      public RealmsServerPlayerLists getLiveStats() throws RealmsServiceException
      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

      public RealmsServerAddress join​(long worldId) throws RealmsServiceException
      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

      public void initializeWorld​(long worldId, String name, String motd) throws RealmsServiceException
      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

      public Boolean mcoEnabled() throws RealmsServiceException
      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

      public Boolean stageAvailable() throws RealmsServiceException
      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

      public void uninvite​(long worldId, String profileUuid) throws RealmsServiceException
      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

      public void uninviteMyselfFrom​(long worldId) throws RealmsServiceException
      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

      public RealmsServer invite​(long worldId, String profileName) throws RealmsServiceException
      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

      public BackupList backupsFor​(long worldId) throws RealmsServiceException
      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

      public void update​(long worldId, String name, String motd) throws RealmsServiceException
      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

      public boolean switchSlot​(long worldId, int slot) throws RealmsServiceException
      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

      public void restoreWorld​(long worldId, String backupId) throws RealmsServiceException
      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

      public Boolean putIntoMinigameMode​(long worldId, String minigameId) throws RealmsServiceException
      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

      public Ops op​(long worldId, String profileUuid) throws RealmsServiceException
      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

      public Ops deop​(long worldId, String profileUuid) throws RealmsServiceException
      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

      public Boolean open​(long worldId) throws RealmsServiceException
      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

      public Boolean close​(long worldId) throws RealmsServiceException
      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

      public Subscription subscriptionFor​(long worldId) throws RealmsServiceException
      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

      public int pendingInvitesCount() throws RealmsServiceException
      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

      public PendingInvitesList pendingInvites() throws RealmsServiceException
      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

      private boolean isOwnerBlocked​(PendingInvite pendingInvite)
      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

      public void acceptInvitation​(String invitationId) throws RealmsServiceException
      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

      public WorldDownload download​(long worldId, int slotId) throws RealmsServiceException
      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

      public void rejectInvitation​(String invitationId) throws RealmsServiceException
      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

      public void agreeToTos() throws RealmsServiceException
      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

      public RealmsNews getNews() throws RealmsServiceException
      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

      public void sendPingResults​(PingResult pingResult) throws RealmsServiceException
      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

      public Boolean trialAvailable() throws RealmsServiceException
      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

      public void deleteWorld​(long worldId) throws RealmsServiceException
      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

      @Nullable private String url​(String path)
      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

      @Nullable private String url​(String path, @Nullable String queryString)
      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

      private String execute​(Request<?> r) throws RealmsServiceException
      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;