Class RealmsDownloadLatestWorldScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT) public class RealmsDownloadLatestWorldScreen extends RealmsScreen
Mappings:
Namespace Name
official egu
intermediary net/minecraft/class_4392
named net/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Legu;a:Lorg/slf4j/Logger;
      intermediary field_19844 Lnet/minecraft/class_4392;field_19844:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;LOGGER:Lorg/slf4j/Logger;
    • DOWNLOAD_LOCK

      private static final ReentrantLock DOWNLOAD_LOCK
      Mappings:
      Namespace Name Mixin selector
      official b Legu;b:Ljava/util/concurrent/locks/ReentrantLock;
      intermediary field_19868 Lnet/minecraft/class_4392;field_19868:Ljava/util/concurrent/locks/ReentrantLock;
      named DOWNLOAD_LOCK Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;DOWNLOAD_LOCK:Ljava/util/concurrent/locks/ReentrantLock;
    • DOTS

      private static final String[] DOTS
      Mappings:
      Namespace Name Mixin selector
      official Z Legu;Z:[Ljava/lang/String;
      intermediary field_19863 Lnet/minecraft/class_4392;field_19863:[Ljava/lang/String;
      named DOTS Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;DOTS:[Ljava/lang/String;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official c Legu;c:Lepb;
      intermediary field_19845 Lnet/minecraft/class_4392;field_19845:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • worldDownload

      private final WorldDownload worldDownload
      Mappings:
      Namespace Name Mixin selector
      official I Legu;I:Lefx;
      intermediary field_19846 Lnet/minecraft/class_4392;field_19846:Lnet/minecraft/class_4889;
      named worldDownload Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;worldDownload:Lnet/minecraft/client/realms/dto/WorldDownload;
    • downloadTitle

      private final Text downloadTitle
      Mappings:
      Namespace Name Mixin selector
      official J Legu;J:Lss;
      intermediary field_19847 Lnet/minecraft/class_4392;field_19847:Lnet/minecraft/class_2561;
      named downloadTitle Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadTitle:Lnet/minecraft/text/Text;
    • narrationRateLimiter

      private final RateLimiter narrationRateLimiter
      Mappings:
      Namespace Name Mixin selector
      official K Legu;K:Lcom/google/common/util/concurrent/RateLimiter;
      intermediary field_19848 Lnet/minecraft/class_4392;field_19848:Lcom/google/common/util/concurrent/RateLimiter;
      named narrationRateLimiter Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;
    • cancelButton

      private ButtonWidget cancelButton
      Mappings:
      Namespace Name Mixin selector
      official L Legu;L:Leky;
      intermediary field_22694 Lnet/minecraft/class_4392;field_22694:Lnet/minecraft/class_4185;
      named cancelButton Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • worldName

      private final String worldName
      Mappings:
      Namespace Name Mixin selector
      official M Legu;M:Ljava/lang/String;
      intermediary field_19850 Lnet/minecraft/class_4392;field_19850:Ljava/lang/String;
      named worldName Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;worldName:Ljava/lang/String;
    • downloadStatus

      private final RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus
      Mappings:
      Namespace Name Mixin selector
      official N Legu;N:Legu$a;
      intermediary field_19851 Lnet/minecraft/class_4392;field_19851:Lnet/minecraft/class_4392$class_4393;
      named downloadStatus Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadStatus:Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;
    • downloadError

      @Nullable private volatile @Nullable Text downloadError
      Mappings:
      Namespace Name Mixin selector
      official O Legu;O:Lss;
      intermediary field_20494 Lnet/minecraft/class_4392;field_20494:Lnet/minecraft/class_2561;
      named downloadError Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadError:Lnet/minecraft/text/Text;
    • status

      private volatile Text status
      Mappings:
      Namespace Name Mixin selector
      official P Legu;P:Lss;
      intermediary field_19853 Lnet/minecraft/class_4392;field_19853:Lnet/minecraft/class_2561;
      named status Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;status:Lnet/minecraft/text/Text;
    • progress

      @Nullable private volatile @Nullable String progress
      Mappings:
      Namespace Name Mixin selector
      official Q Legu;Q:Ljava/lang/String;
      intermediary field_19854 Lnet/minecraft/class_4392;field_19854:Ljava/lang/String;
      named progress Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;progress:Ljava/lang/String;
    • cancelled

      private volatile boolean cancelled
      Mappings:
      Namespace Name Mixin selector
      official R Legu;R:Z
      intermediary field_19855 Lnet/minecraft/class_4392;field_19855:Z
      named cancelled Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;cancelled:Z
    • showDots

      private volatile boolean showDots
      Mappings:
      Namespace Name Mixin selector
      official S Legu;S:Z
      intermediary field_19856 Lnet/minecraft/class_4392;field_19856:Z
      named showDots Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;showDots:Z
    • finished

      private volatile boolean finished
      Mappings:
      Namespace Name Mixin selector
      official T Legu;T:Z
      intermediary field_19857 Lnet/minecraft/class_4392;field_19857:Z
      named finished Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;finished:Z
    • extracting

      private volatile boolean extracting
      Mappings:
      Namespace Name Mixin selector
      official U Legu;U:Z
      intermediary field_19858 Lnet/minecraft/class_4392;field_19858:Z
      named extracting Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;extracting:Z
    • previousWrittenBytes

      @Nullable private @Nullable Long previousWrittenBytes
      Mappings:
      Namespace Name Mixin selector
      official V Legu;V:Ljava/lang/Long;
      intermediary field_19859 Lnet/minecraft/class_4392;field_19859:Ljava/lang/Long;
      named previousWrittenBytes Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;previousWrittenBytes:Ljava/lang/Long;
    • previousTimeSnapshot

      @Nullable private @Nullable Long previousTimeSnapshot
      Mappings:
      Namespace Name Mixin selector
      official W Legu;W:Ljava/lang/Long;
      intermediary field_19860 Lnet/minecraft/class_4392;field_19860:Ljava/lang/Long;
      named previousTimeSnapshot Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;previousTimeSnapshot:Ljava/lang/Long;
    • bytesPerSecond

      private long bytesPerSecond
      Mappings:
      Namespace Name Mixin selector
      official X Legu;X:J
      intermediary field_19861 Lnet/minecraft/class_4392;field_19861:J
      named bytesPerSecond Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;bytesPerSecond:J
    • animTick

      private int animTick
      Mappings:
      Namespace Name Mixin selector
      official Y Legu;Y:I
      intermediary field_19862 Lnet/minecraft/class_4392;field_19862:I
      named animTick Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;animTick:I
    • dotIndex

      private int dotIndex
      Mappings:
      Namespace Name Mixin selector
      official aa Legu;aa:I
      intermediary field_19864 Lnet/minecraft/class_4392;field_19864:I
      named dotIndex Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;dotIndex:I
    • checked

      private boolean checked
      Mappings:
      Namespace Name Mixin selector
      official ab Legu;ab:Z
      intermediary field_19867 Lnet/minecraft/class_4392;field_19867:Z
      named checked Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checked:Z
    • onBack

      private final BooleanConsumer onBack
      Mappings:
      Namespace Name Mixin selector
      official ac Legu;ac:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
      intermediary field_22693 Lnet/minecraft/class_4392;field_22693:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
      named onBack Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;onBack:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
  • Constructor Details

    • RealmsDownloadLatestWorldScreen

      public RealmsDownloadLatestWorldScreen(Screen parent, WorldDownload worldDownload, String worldName, BooleanConsumer onBack)
      Mappings:
      Namespace Name Mixin selector
      official <init> Legu;<init>(Lepb;Lefx;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)V
      intermediary <init> Lnet/minecraft/class_4392;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_4889;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)V
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/realms/dto/WorldDownload;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)V
  • Method Details

    • init

      public void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Lepb;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • checkDownloadSize

      private void checkDownloadSize()
      Mappings:
      Namespace Name Mixin selector
      official w Legu;w()V
      intermediary method_21265 Lnet/minecraft/class_4392;method_21265()V
      named checkDownloadSize Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checkDownloadSize()V
    • getContentLength

      private long getContentLength(String downloadLink)
      Mappings:
      Namespace Name Mixin selector
      official a Legu;a(Ljava/lang/String;)J
      intermediary method_21259 Lnet/minecraft/class_4392;method_21259(Ljava/lang/String;)J
      named getContentLength Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;getContentLength(Ljava/lang/String;)J
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official d Lepb;d()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • getNarration

      private Text getNarration()
      Mappings:
      Namespace Name Mixin selector
      official x Legu;x()Lss;
      intermediary method_37012 Lnet/minecraft/class_4392;method_37012()Lnet/minecraft/class_2561;
      named getNarration Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;getNarration()Lnet/minecraft/text/Text;
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lemg;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • backButtonClicked

      private void backButtonClicked()
      Mappings:
      Namespace Name Mixin selector
      official y Legu;y()V
      intermediary method_21269 Lnet/minecraft/class_4392;method_21269()V
      named backButtonClicked Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;backButtonClicked()V
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lely;a(Leed;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • drawDots

      private void drawDots(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official b Legu;b(Leed;)V
      intermediary method_21272 Lnet/minecraft/class_4392;method_21272(Lnet/minecraft/class_4587;)V
      named drawDots Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDots(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawProgressBar

      private void drawProgressBar(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official c Legu;c(Leed;)V
      intermediary method_21274 Lnet/minecraft/class_4392;method_21274(Lnet/minecraft/class_4587;)V
      named drawProgressBar Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawProgressBar(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawDownloadSpeed

      private void drawDownloadSpeed(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official d Legu;d(Leed;)V
      intermediary method_21276 Lnet/minecraft/class_4392;method_21276(Lnet/minecraft/class_4587;)V
      named drawDownloadSpeed Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDownloadSpeed(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawDownloadSpeed0

      private void drawDownloadSpeed0(MatrixStack matrices, long bytesPerSecond)
      Mappings:
      Namespace Name Mixin selector
      official a Legu;a(Leed;J)V
      intermediary method_21266 Lnet/minecraft/class_4392;method_21266(Lnet/minecraft/class_4587;J)V
      named drawDownloadSpeed0 Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDownloadSpeed0(Lnet/minecraft/client/util/math/MatrixStack;J)V
    • downloadSave

      private void downloadSave()
      Mappings:
      Namespace Name Mixin selector
      official z Legu;z()V
      intermediary method_21278 Lnet/minecraft/class_4392;method_21278()V
      named downloadSave Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadSave()V
    • downloadCancelled

      private void downloadCancelled()
      Mappings:
      Namespace Name Mixin selector
      official A Legu;A()V
      intermediary method_21279 Lnet/minecraft/class_4392;method_21279()V
      named downloadCancelled Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadCancelled()V