Class RealmsUploadScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldor;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_20174 Lnet/minecraft/class_4427;field_20174:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
    • UPLOAD_LOCK

      private static final ReentrantLock UPLOAD_LOCK
      Mappings:
      Namespace Name Mixin selector
      official b Ldor;b:Ljava/util/concurrent/locks/ReentrantLock;
      intermediary field_20196 Lnet/minecraft/class_4427;field_20196:Ljava/util/concurrent/locks/ReentrantLock;
      named UPLOAD_LOCK Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;UPLOAD_LOCK:Ljava/util/concurrent/locks/ReentrantLock;
    • DOTS

      private static final String[] DOTS
      Mappings:
      Namespace Name Mixin selector
      official c Ldor;c:[Ljava/lang/String;
      intermediary field_20191 Lnet/minecraft/class_4427;field_20191:[Ljava/lang/String;
      named DOTS Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;DOTS:[Ljava/lang/String;
    • VERIFYING_TEXT

      private static final Text VERIFYING_TEXT
      Mappings:
      Namespace Name Mixin selector
      official p Ldor;p:Loi;
      intermediary field_26526 Lnet/minecraft/class_4427;field_26526:Lnet/minecraft/class_2561;
      named VERIFYING_TEXT Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;VERIFYING_TEXT:Lnet/minecraft/text/Text;
    • parent

      private final RealmsResetWorldScreen parent
      Mappings:
      Namespace Name Mixin selector
      official q Ldor;q:Ldok;
      intermediary field_20175 Lnet/minecraft/class_4427;field_20175:Lnet/minecraft/class_4410;
      named parent Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;
    • selectedLevel

      private final LevelSummary selectedLevel
      Mappings:
      Namespace Name Mixin selector
      official r Ldor;r:Lddv;
      intermediary field_20176 Lnet/minecraft/class_4427;field_20176:Lnet/minecraft/class_34;
      named selectedLevel Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;selectedLevel:Lnet/minecraft/world/level/storage/LevelSummary;
    • worldId

      private final long worldId
      Mappings:
      Namespace Name Mixin selector
      official s Ldor;s:J
      intermediary field_20177 Lnet/minecraft/class_4427;field_20177:J
      named worldId Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;worldId:J
    • slotId

      private final int slotId
      Mappings:
      Namespace Name Mixin selector
      official t Ldor;t:I
      intermediary field_20178 Lnet/minecraft/class_4427;field_20178:I
      named slotId Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;slotId:I
    • uploadStatus

      private final UploadStatus uploadStatus
      Mappings:
      Namespace Name Mixin selector
      official u Ldor;u:Ldmk;
      intermediary field_20179 Lnet/minecraft/class_4427;field_20179:Lnet/minecraft/class_4351;
      named uploadStatus Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStatus:Lnet/minecraft/client/realms/UploadStatus;
    • narrationRateLimiter

      private final RateLimiter narrationRateLimiter
      Mappings:
      Namespace Name Mixin selector
      official v Ldor;v:Lcom/google/common/util/concurrent/RateLimiter;
      intermediary field_20180 Lnet/minecraft/class_4427;field_20180:Lcom/google/common/util/concurrent/RateLimiter;
      named narrationRateLimiter Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;
    • field_20503

      private volatile Text[] field_20503
      Mappings:
      Namespace Name Mixin selector
      official w Ldor;w:[Loi;
      intermediary field_20503 Lnet/minecraft/class_4427;field_20503:[Lnet/minecraft/class_2561;
      named field_20503 Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_20503:[Lnet/minecraft/text/Text;
    • status

      private volatile Text status
      Mappings:
      Namespace Name Mixin selector
      official x Ldor;x:Loi;
      intermediary field_20182 Lnet/minecraft/class_4427;field_20182:Lnet/minecraft/class_2561;
      named status Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;status:Lnet/minecraft/text/Text;
    • progress

      private volatile String progress
      Mappings:
      Namespace Name Mixin selector
      official y Ldor;y:Ljava/lang/String;
      intermediary field_20183 Lnet/minecraft/class_4427;field_20183:Ljava/lang/String;
      named progress Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;progress:Ljava/lang/String;
    • cancelled

      private volatile boolean cancelled
      Mappings:
      Namespace Name Mixin selector
      official z Ldor;z:Z
      intermediary field_20184 Lnet/minecraft/class_4427;field_20184:Z
      named cancelled Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelled:Z
    • uploadFinished

      private volatile boolean uploadFinished
      Mappings:
      Namespace Name Mixin selector
      official A Ldor;A:Z
      intermediary field_20185 Lnet/minecraft/class_4427;field_20185:Z
      named uploadFinished Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadFinished:Z
    • showDots

      private volatile boolean showDots
      Mappings:
      Namespace Name Mixin selector
      official B Ldor;B:Z
      intermediary field_20186 Lnet/minecraft/class_4427;field_20186:Z
      named showDots Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;showDots:Z
    • uploadStarted

      private volatile boolean uploadStarted
      Mappings:
      Namespace Name Mixin selector
      official C Ldor;C:Z
      intermediary field_20187 Lnet/minecraft/class_4427;field_20187:Z
      named uploadStarted Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStarted:Z
    • backButton

      private ButtonWidget backButton
      Mappings:
      Namespace Name Mixin selector
      official D Ldor;D:Ldru;
      intermediary field_20188 Lnet/minecraft/class_4427;field_20188:Lnet/minecraft/class_4185;
      named backButton Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;backButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • cancelButton

      private ButtonWidget cancelButton
      Mappings:
      Namespace Name Mixin selector
      official E Ldor;E:Ldru;
      intermediary field_20189 Lnet/minecraft/class_4427;field_20189:Lnet/minecraft/class_4185;
      named cancelButton Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • animTick

      private int animTick
      Mappings:
      Namespace Name Mixin selector
      official F Ldor;F:I
      intermediary field_20190 Lnet/minecraft/class_4427;field_20190:I
      named animTick Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;animTick:I
    • previousWrittenBytes

      private Long previousWrittenBytes
      Mappings:
      Namespace Name Mixin selector
      official G Ldor;G:Ljava/lang/Long;
      intermediary field_20193 Lnet/minecraft/class_4427;field_20193:Ljava/lang/Long;
      named previousWrittenBytes Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;previousWrittenBytes:Ljava/lang/Long;
    • previousTimeSnapshot

      private Long previousTimeSnapshot
      Mappings:
      Namespace Name Mixin selector
      official H Ldor;H:Ljava/lang/Long;
      intermediary field_20194 Lnet/minecraft/class_4427;field_20194:Ljava/lang/Long;
      named previousTimeSnapshot Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;previousTimeSnapshot:Ljava/lang/Long;
    • bytesPersSecond

      private long bytesPersSecond
      Mappings:
      Namespace Name Mixin selector
      official I Ldor;I:J
      intermediary field_20195 Lnet/minecraft/class_4427;field_20195:J
      named bytesPersSecond Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;bytesPersSecond:J
    • field_22728

      private final Runnable field_22728
      Mappings:
      Namespace Name Mixin selector
      official J Ldor;J:Ljava/lang/Runnable;
      intermediary field_22728 Lnet/minecraft/class_4427;field_22728:Ljava/lang/Runnable;
      named field_22728 Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_22728:Ljava/lang/Runnable;
  • Constructor Details

    • RealmsUploadScreen

      public RealmsUploadScreen​(long worldId, int slotId, RealmsResetWorldScreen parent, LevelSummary levelSummary, Runnable runnable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldor;<init>(JILdok;Lddv;Ljava/lang/Runnable;)V
      intermediary <init> Lnet/minecraft/class_4427;<init>(JILnet/minecraft/class_4410;Lnet/minecraft/class_34;Ljava/lang/Runnable;)V
      named <init> Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;<init>(JILnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;Lnet/minecraft/world/level/storage/LevelSummary;Ljava/lang/Runnable;)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 Ldve;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Ldve;e()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
    • onBack

      private void onBack()
      Mappings:
      Namespace Name Mixin selector
      official h Ldor;h()V
      intermediary method_21525 Lnet/minecraft/class_4427;method_21525()V
      named onBack Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onBack()V
    • onCancel

      private void onCancel()
      Mappings:
      Namespace Name Mixin selector
      official i Ldor;i()V
      intermediary method_21528 Lnet/minecraft/class_4427;method_21528()V
      named onCancel Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onCancel()V
    • 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:
      Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
      Mappings:
      Namespace Name Mixin selector
      official a Ldst;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • 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 Ldsq;a(Ldlr;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 Ldor;b(Ldlr;)V
      intermediary method_21530 Lnet/minecraft/class_4427;method_21530(Lnet/minecraft/class_4587;)V
      named drawDots Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawDots(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawProgressBar

      private void drawProgressBar​(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official c Ldor;c(Ldlr;)V
      intermediary method_21532 Lnet/minecraft/class_4427;method_21532(Lnet/minecraft/class_4587;)V
      named drawProgressBar Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawProgressBar(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawUploadSpeed

      private void drawUploadSpeed​(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official d Ldor;d(Ldlr;)V
      intermediary method_21534 Lnet/minecraft/class_4427;method_21534(Lnet/minecraft/class_4587;)V
      named drawUploadSpeed Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed(Lnet/minecraft/client/util/math/MatrixStack;)V
    • drawUploadSpeed0

      private void drawUploadSpeed0​(MatrixStack matrices, long long2)
      Mappings:
      Namespace Name Mixin selector
      official a Ldor;a(Ldlr;J)V
      intermediary method_21526 Lnet/minecraft/class_4427;method_21526(Lnet/minecraft/class_4587;J)V
      named drawUploadSpeed0 Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed0(Lnet/minecraft/client/util/math/MatrixStack;J)V
    • tick

      public void tick()
      Specified by:
      tick in interface TickableElement
      Overrides:
      tick in class RealmsScreen
      Mappings:
      Namespace Name Mixin selector
      official d Ldsn;d()V
      intermediary method_25393 Lnet/minecraft/class_4893;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/TickableElement;tick()V
    • upload

      private void upload()
      Mappings:
      Namespace Name Mixin selector
      official k Ldor;k()V
      intermediary method_21536 Lnet/minecraft/class_4427;method_21536()V
      named upload Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;upload()V
    • method_27460

      private void method_27460​(Text[] text)
      Mappings:
      Namespace Name Mixin selector
      official a Ldor;a([Loi;)V
      intermediary method_27460 Lnet/minecraft/class_4427;method_27460([Lnet/minecraft/class_2561;)V
      named method_27460 Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;method_27460([Lnet/minecraft/text/Text;)V
    • uploadCancelled

      private void uploadCancelled()
      Mappings:
      Namespace Name Mixin selector
      official l Ldor;l()V
      intermediary method_21538 Lnet/minecraft/class_4427;method_21538()V
      named uploadCancelled Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadCancelled()V
    • verify

      private boolean verify​(File archive)
      Mappings:
      Namespace Name Mixin selector
      official a Ldor;a(Ljava/io/File;)Z
      intermediary method_21515 Lnet/minecraft/class_4427;method_21515(Ljava/io/File;)Z
      named verify Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;verify(Ljava/io/File;)Z
    • tarGzipArchive

      private File tarGzipArchive​(File pathToDirectoryFile) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Ldor;b(Ljava/io/File;)Ljava/io/File;
      intermediary method_21524 Lnet/minecraft/class_4427;method_21524(Ljava/io/File;)Ljava/io/File;
      named tarGzipArchive Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;tarGzipArchive(Ljava/io/File;)Ljava/io/File;
    • addFileToTarGz

      private void addFileToTarGz​(TarArchiveOutputStream tOut, String path, String base, boolean root) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldor;a(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)V
      intermediary method_21516 Lnet/minecraft/class_4427;method_21516(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)V
      named addFileToTarGz Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;addFileToTarGz(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)V