Class RealmsDownloadLatestWorldScreen
java.lang.Object
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
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen
intermediary net/minecraft/class_4392
official fcs
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private long
private ButtonWidget
private boolean
private boolean
private int
private static final String[]
private static final ReentrantLock
private final RealmsDownloadLatestWorldScreen.DownloadStatus
private final Text
private boolean
private static final int
private static final int
private static final int
private static final int
private boolean
private static final Logger
private final RateLimiter
private final BooleanConsumer
private final Screen
private boolean
private Text
private final WorldDownload
private final String
Fields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33040, field_33041, field_33042, field_33055, field_33057, field_33061, field_33062, field_33063, field_39676, MAX_FILE_SIZE
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionRealmsDownloadLatestWorldScreen
(Screen parent, WorldDownload worldDownload, String worldName, BooleanConsumer onBack) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
private void
private void
private void
drawDots
(DrawContext context) private void
drawDownloadSpeed
(DrawContext context) private void
drawDownloadSpeed0
(DrawContext context, long bytesPerSecond) private void
drawProgressBar
(DrawContext context) private long
getContentLength
(String downloadLink) private Text
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
(DrawContext context, int mouseX, int mouseY, float delta) void
tick()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;LOGGER:Lorg/slf4j/Logger;
intermediary field_19844
Lnet/minecraft/class_4392;field_19844:Lorg/slf4j/Logger;
official a
Lfcs;a:Lorg/slf4j/Logger;
-
DOWNLOAD_LOCK
- Mappings:
Namespace Name Mixin selector named DOWNLOAD_LOCK
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;DOWNLOAD_LOCK:Ljava/util/concurrent/locks/ReentrantLock;
intermediary field_19868
Lnet/minecraft/class_4392;field_19868:Ljava/util/concurrent/locks/ReentrantLock;
official b
Lfcs;b:Ljava/util/concurrent/locks/ReentrantLock;
-
field_41772
private static final int field_41772- See Also:
- Mappings:
Namespace Name Mixin selector named field_41772
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_41772:I
intermediary field_41772
Lnet/minecraft/class_4392;field_41772:I
official c
Lfcs;c:I
-
field_41769
private static final int field_41769- See Also:
- Mappings:
Namespace Name Mixin selector named field_41769
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_41769:I
intermediary field_41769
Lnet/minecraft/class_4392;field_41769:I
official B
Lfcs;B:I
-
field_41770
private static final int field_41770- See Also:
- Mappings:
Namespace Name Mixin selector named field_41770
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_41770:I
intermediary field_41770
Lnet/minecraft/class_4392;field_41770:I
official C
Lfcs;C:I
-
field_41771
private static final int field_41771- See Also:
- Mappings:
Namespace Name Mixin selector named field_41771
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;field_41771:I
intermediary field_41771
Lnet/minecraft/class_4392;field_41771:I
official D
Lfcs;D:I
-
DOTS
- Mappings:
Namespace Name Mixin selector named DOTS
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;DOTS:[Ljava/lang/String;
intermediary field_19863
Lnet/minecraft/class_4392;field_19863:[Ljava/lang/String;
official W
Lfcs;W:[Ljava/lang/String;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_19845
Lnet/minecraft/class_4392;field_19845:Lnet/minecraft/class_437;
official E
Lfcs;E:Lfne;
-
worldDownload
- Mappings:
Namespace Name Mixin selector named worldDownload
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;worldDownload:Lnet/minecraft/client/realms/dto/WorldDownload;
intermediary field_19846
Lnet/minecraft/class_4392;field_19846:Lnet/minecraft/class_4889;
official F
Lfcs;F:Lfbw;
-
downloadTitle
- Mappings:
Namespace Name Mixin selector named downloadTitle
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadTitle:Lnet/minecraft/text/Text;
intermediary field_19847
Lnet/minecraft/class_4392;field_19847:Lnet/minecraft/class_2561;
official G
Lfcs;G:Lxp;
-
narrationRateLimiter
- Mappings:
Namespace Name Mixin selector named narrationRateLimiter
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;
intermediary field_19848
Lnet/minecraft/class_4392;field_19848:Lcom/google/common/util/concurrent/RateLimiter;
official H
Lfcs;H:Lcom/google/common/util/concurrent/RateLimiter;
-
cancelButton
- Mappings:
Namespace Name Mixin selector named cancelButton
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_22694
Lnet/minecraft/class_4392;field_22694:Lnet/minecraft/class_4185;
official I
Lfcs;I:Lfhf;
-
worldName
- Mappings:
Namespace Name Mixin selector named worldName
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;worldName:Ljava/lang/String;
intermediary field_19850
Lnet/minecraft/class_4392;field_19850:Ljava/lang/String;
official J
Lfcs;J:Ljava/lang/String;
-
downloadStatus
- Mappings:
Namespace Name Mixin selector named downloadStatus
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadStatus:Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;
intermediary field_19851
Lnet/minecraft/class_4392;field_19851:Lnet/minecraft/class_4392$class_4393;
official K
Lfcs;K:Lfcs$a;
-
downloadError
- Mappings:
Namespace Name Mixin selector named downloadError
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadError:Lnet/minecraft/text/Text;
intermediary field_20494
Lnet/minecraft/class_4392;field_20494:Lnet/minecraft/class_2561;
official L
Lfcs;L:Lxp;
-
status
- Mappings:
Namespace Name Mixin selector named status
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;status:Lnet/minecraft/text/Text;
intermediary field_19853
Lnet/minecraft/class_4392;field_19853:Lnet/minecraft/class_2561;
official M
Lfcs;M:Lxp;
-
progress
- Mappings:
Namespace Name Mixin selector named progress
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;progress:Ljava/lang/String;
intermediary field_19854
Lnet/minecraft/class_4392;field_19854:Ljava/lang/String;
official N
Lfcs;N:Ljava/lang/String;
-
cancelled
private volatile boolean cancelled- Mappings:
Namespace Name Mixin selector named cancelled
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;cancelled:Z
intermediary field_19855
Lnet/minecraft/class_4392;field_19855:Z
official O
Lfcs;O:Z
-
showDots
private volatile boolean showDots- Mappings:
Namespace Name Mixin selector named showDots
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;showDots:Z
intermediary field_19856
Lnet/minecraft/class_4392;field_19856:Z
official P
Lfcs;P:Z
-
finished
private volatile boolean finished- Mappings:
Namespace Name Mixin selector named finished
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;finished:Z
intermediary field_19857
Lnet/minecraft/class_4392;field_19857:Z
official Q
Lfcs;Q:Z
-
extracting
private volatile boolean extracting- Mappings:
Namespace Name Mixin selector named extracting
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;extracting:Z
intermediary field_19858
Lnet/minecraft/class_4392;field_19858:Z
official R
Lfcs;R:Z
-
previousWrittenBytes
- Mappings:
Namespace Name Mixin selector named previousWrittenBytes
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;previousWrittenBytes:Ljava/lang/Long;
intermediary field_19859
Lnet/minecraft/class_4392;field_19859:Ljava/lang/Long;
official S
Lfcs;S:Ljava/lang/Long;
-
previousTimeSnapshot
- Mappings:
Namespace Name Mixin selector named previousTimeSnapshot
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;previousTimeSnapshot:Ljava/lang/Long;
intermediary field_19860
Lnet/minecraft/class_4392;field_19860:Ljava/lang/Long;
official T
Lfcs;T:Ljava/lang/Long;
-
bytesPerSecond
private long bytesPerSecond- Mappings:
Namespace Name Mixin selector named bytesPerSecond
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;bytesPerSecond:J
intermediary field_19861
Lnet/minecraft/class_4392;field_19861:J
official U
Lfcs;U:J
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector named animTick
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;animTick:I
intermediary field_19862
Lnet/minecraft/class_4392;field_19862:I
official V
Lfcs;V:I
-
dotIndex
private int dotIndex- Mappings:
Namespace Name Mixin selector named dotIndex
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;dotIndex:I
intermediary field_19864
Lnet/minecraft/class_4392;field_19864:I
official X
Lfcs;X:I
-
checked
private boolean checked- Mappings:
Namespace Name Mixin selector named checked
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checked:Z
intermediary field_19867
Lnet/minecraft/class_4392;field_19867:Z
official Y
Lfcs;Y:Z
-
onBack
- Mappings:
Namespace Name Mixin selector named onBack
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;onBack:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
intermediary field_22693
Lnet/minecraft/class_4392;field_22693:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
official Z
Lfcs;Z:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
-
Constructor Details
-
RealmsDownloadLatestWorldScreen
public RealmsDownloadLatestWorldScreen(Screen parent, WorldDownload worldDownload, String worldName, BooleanConsumer onBack) - Mappings:
Namespace Name Mixin selector 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
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
official <init>
Lfcs;<init>(Lfne;Lfbw;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.
This should call
Screen.setInitialFocus()
to set the element that is initially focused. -
checkDownloadSize
private void checkDownloadSize()- Mappings:
Namespace Name Mixin selector named checkDownloadSize
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;checkDownloadSize()V
intermediary method_21265
Lnet/minecraft/class_4392;method_21265()V
official E
Lfcs;E()V
-
getContentLength
- Mappings:
Namespace Name Mixin selector named getContentLength
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;getContentLength(Ljava/lang/String;)J
intermediary method_21259
Lnet/minecraft/class_4392;method_21259(Ljava/lang/String;)J
official a
Lfcs;a(Ljava/lang/String;)J
-
tick
public void tick() -
getNarration
- Mappings:
Namespace Name Mixin selector named getNarration
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;getNarration()Lnet/minecraft/text/Text;
intermediary method_37012
Lnet/minecraft/class_4392;method_37012()Lnet/minecraft/class_2561;
official F
Lfcs;F()Lxp;
-
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:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfjb;a(III)Z
-
backButtonClicked
private void backButtonClicked()- Mappings:
Namespace Name Mixin selector named backButtonClicked
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;backButtonClicked()V
intermediary method_21269
Lnet/minecraft/class_4392;method_21269()V
official I
Lfcs;I()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfii;a(Lfgs;IIF)V
-
drawDots
- Mappings:
Namespace Name Mixin selector named drawDots
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDots(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_21272
Lnet/minecraft/class_4392;method_21272(Lnet/minecraft/class_332;)V
official c
Lfcs;c(Lfgs;)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector named drawProgressBar
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawProgressBar(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_21274
Lnet/minecraft/class_4392;method_21274(Lnet/minecraft/class_332;)V
official d
Lfcs;d(Lfgs;)V
-
drawDownloadSpeed
- Mappings:
Namespace Name Mixin selector named drawDownloadSpeed
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDownloadSpeed(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_21276
Lnet/minecraft/class_4392;method_21276(Lnet/minecraft/class_332;)V
official e
Lfcs;e(Lfgs;)V
-
drawDownloadSpeed0
- Mappings:
Namespace Name Mixin selector named drawDownloadSpeed0
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;drawDownloadSpeed0(Lnet/minecraft/client/gui/DrawContext;J)V
intermediary method_21266
Lnet/minecraft/class_4392;method_21266(Lnet/minecraft/class_332;J)V
official a
Lfcs;a(Lfgs;J)V
-
downloadSave
private void downloadSave()- Mappings:
Namespace Name Mixin selector named downloadSave
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadSave()V
intermediary method_21278
Lnet/minecraft/class_4392;method_21278()V
official J
Lfcs;J()V
-
downloadCancelled
private void downloadCancelled()- Mappings:
Namespace Name Mixin selector named downloadCancelled
Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen;downloadCancelled()V
intermediary method_21279
Lnet/minecraft/class_4392;method_21279()V
official K
Lfcs;K()V
-