Class RealmsDownloadLatestWorldScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsDownloadLatestWorldScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class RealmsDownloadLatestWorldScreen extends RealmsScreen
- Mappings:
Namespace Name official doa
intermediary net/minecraft/class_4392
named net/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RealmsDownloadLatestWorldScreen.DownloadStatus
-
Field Summary
Fields Modifier and Type Field Description private int
animTick
private long
bytesPersSecond
private boolean
cancelled
private boolean
checked
private int
dotIndex
private static String[]
DOTS
private static ReentrantLock
downloadLock
private RealmsDownloadLatestWorldScreen.DownloadStatus
downloadStatus
private Text
downloadTitle
private boolean
extracting
private Text
field_20494
private BooleanConsumer
field_22693
private ButtonWidget
field_22694
private boolean
finished
private static Logger
LOGGER
private RateLimiter
narrationRateLimiter
private Screen
parent
private Long
previousTimeSnapshot
private Long
previousWrittenBytes
private String
progress
private boolean
showDots
private Text
status
private WorldDownload
worldDownload
private String
worldName
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description RealmsDownloadLatestWorldScreen(Screen parent, WorldDownload worldDownload, String worldName, BooleanConsumer booleanConsumer)
-
Method Summary
Modifier and Type Method Description private void
backButtonClicked()
private void
checkDownloadSize()
private void
downloadCancelled()
private void
downloadSave()
private void
drawDots(MatrixStack matrices)
private void
drawDownloadSpeed(MatrixStack matrices)
private void
drawDownloadSpeed0(MatrixStack matrices, long long2)
private void
drawProgressBar(MatrixStack matrices)
private long
getContentLength(String downloadLink)
void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldoa;a:Lorg/apache/logging/log4j/Logger;
intermediary field_19844
Lnet/minecraft/class_4392;field_19844:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
downloadLock
- Mappings:
Namespace Name Mixin selector official b
Ldoa;b:Ljava/util/concurrent/locks/ReentrantLock;
intermediary field_19868
Lnet/minecraft/class_4392;field_19868:Ljava/util/concurrent/locks/ReentrantLock;
named downloadLock
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadLock:Ljava/util/concurrent/locks/ReentrantLock;
-
DOTS
- Mappings:
Namespace Name Mixin selector official G
Ldoa;G:[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
- Mappings:
Namespace Name Mixin selector official c
Ldoa;c:Ldve;
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
- Mappings:
Namespace Name Mixin selector official p
Ldoa;p:Ldni;
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
- Mappings:
Namespace Name Mixin selector official q
Ldoa;q:Loi;
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
- Mappings:
Namespace Name Mixin selector official r
Ldoa;r: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;
-
field_22694
- Mappings:
Namespace Name Mixin selector official s
Ldoa;s:Ldru;
intermediary field_22694
Lnet/minecraft/class_4392;field_22694:Lnet/minecraft/class_4185;
named field_22694
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_22694:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
worldName
- Mappings:
Namespace Name Mixin selector official t
Ldoa;t: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
- Mappings:
Namespace Name Mixin selector official u
Ldoa;u:Ldoa$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;
-
field_20494
- Mappings:
Namespace Name Mixin selector official v
Ldoa;v:Loi;
intermediary field_20494
Lnet/minecraft/class_4392;field_20494:Lnet/minecraft/class_2561;
named field_20494
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_20494:Lnet/minecraft/text/Text;
-
status
- Mappings:
Namespace Name Mixin selector official w
Ldoa;w:Loi;
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
- Mappings:
Namespace Name Mixin selector official x
Ldoa;x: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 y
Ldoa;y: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 z
Ldoa;z: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 A
Ldoa;A: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 B
Ldoa;B:Z
intermediary field_19858
Lnet/minecraft/class_4392;field_19858:Z
named extracting
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;extracting:Z
-
previousWrittenBytes
- Mappings:
Namespace Name Mixin selector official C
Ldoa;C: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
- Mappings:
Namespace Name Mixin selector official D
Ldoa;D: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;
-
bytesPersSecond
private long bytesPersSecond- Mappings:
Namespace Name Mixin selector official E
Ldoa;E:J
intermediary field_19861
Lnet/minecraft/class_4392;field_19861:J
named bytesPersSecond
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;bytesPersSecond:J
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector official F
Ldoa;F: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 H
Ldoa;H: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 I
Ldoa;I:Z
intermediary field_19867
Lnet/minecraft/class_4392;field_19867:Z
named checked
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checked:Z
-
field_22693
- Mappings:
Namespace Name Mixin selector official J
Ldoa;J:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
intermediary field_22693
Lnet/minecraft/class_4392;field_22693:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
named field_22693
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_22693:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
-
Constructor Details
-
RealmsDownloadLatestWorldScreen
public RealmsDownloadLatestWorldScreen(Screen parent, WorldDownload worldDownload, String worldName, BooleanConsumer booleanConsumer)- Mappings:
Namespace Name Mixin selector official <init>
Ldoa;<init>(Ldve;Ldni;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.
-
checkDownloadSize
private void checkDownloadSize()- Mappings:
Namespace Name Mixin selector official h
Ldoa;h()V
intermediary method_21265
Lnet/minecraft/class_4392;method_21265()V
named checkDownloadSize
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checkDownloadSize()V
-
getContentLength
- Mappings:
Namespace Name Mixin selector official b
Ldoa;b(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()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classRealmsScreen
- 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
-
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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- 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
-
backButtonClicked
private void backButtonClicked()- Mappings:
Namespace Name Mixin selector official i
Ldoa;i()V
intermediary method_21269
Lnet/minecraft/class_4392;method_21269()V
named backButtonClicked
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;backButtonClicked()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- 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
- Mappings:
Namespace Name Mixin selector official b
Ldoa;b(Ldlr;)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
- Mappings:
Namespace Name Mixin selector official c
Ldoa;c(Ldlr;)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
- Mappings:
Namespace Name Mixin selector official d
Ldoa;d(Ldlr;)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
- Mappings:
Namespace Name Mixin selector official a
Ldoa;a(Ldlr;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 k
Ldoa;k()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 l
Ldoa;l()V
intermediary method_21279
Lnet/minecraft/class_4392;method_21279()V
named downloadCancelled
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadCancelled()V
-