Class RealmsUploadScreen
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.RealmsUploadScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name official epb
intermediary net/minecraft/class_4427
named net/minecraft/client/realms/gui/screen/RealmsUploadScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private ButtonWidget
private long
private ButtonWidget
private boolean
private static final String[]
private static final int
private static final int
private static final int
private static final int
private static final Logger
private final RateLimiter
private final RealmsCreateWorldScreen
private @Nullable Long
private @Nullable Long
private String
private final LevelSummary
private boolean
private final int
private Text
private @Nullable Text[]
private static final ReentrantLock
private boolean
private boolean
private final UploadStatus
private static final Text
private final long
Fields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33036, field_33038, field_33039, 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, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionRealmsUploadScreen
(long worldId, int slotId, RealmsCreateWorldScreen parent, LevelSummary selectedLevel) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addFileToTarGz
(TarArchiveOutputStream tOut, String path, String base, boolean root) private void
drawDots
(DrawContext context) private void
drawProgressBar
(DrawContext context) private void
drawUploadSpeed
(DrawContext context) private void
drawUploadSpeed0
(DrawContext context, long bytesPerSecond) 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.private void
onBack()
private void
onCancel()
void
render
(DrawContext context, int mouseX, int mouseY, float delta) private void
setStatusTexts
(Text[] statusTexts) private File
tarGzipArchive
(File pathToDirectoryFile) void
tick()
private void
upload()
private void
private boolean
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, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, 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, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lepb;a:Lorg/slf4j/Logger;
intermediary field_20174
Lnet/minecraft/class_4427;field_20174:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;LOGGER:Lorg/slf4j/Logger;
-
UPLOAD_LOCK
- Mappings:
Namespace Name Mixin selector official b
Lepb;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;
-
field_41776
private static final int field_41776- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lepb;c:I
intermediary field_41776
Lnet/minecraft/class_4427;field_41776:I
named field_41776
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41776:I
-
field_41773
private static final int field_41773- See Also:
- Mappings:
Namespace Name Mixin selector official y
Lepb;y:I
intermediary field_41773
Lnet/minecraft/class_4427;field_41773:I
named field_41773
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41773:I
-
field_41774
private static final int field_41774- See Also:
- Mappings:
Namespace Name Mixin selector official z
Lepb;z:I
intermediary field_41774
Lnet/minecraft/class_4427;field_41774:I
named field_41774
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41774:I
-
field_41775
private static final int field_41775- See Also:
- Mappings:
Namespace Name Mixin selector official A
Lepb;A:I
intermediary field_41775
Lnet/minecraft/class_4427;field_41775:I
named field_41775
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41775:I
-
DOTS
- Mappings:
Namespace Name Mixin selector official B
Lepb;B:[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
- Mappings:
Namespace Name Mixin selector official C
Lepb;C:Ltl;
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
- Mappings:
Namespace Name Mixin selector official D
Lepb;D:Leou;
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/RealmsCreateWorldScreen;
-
selectedLevel
- Mappings:
Namespace Name Mixin selector official E
Lepb;E:Lech;
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 F
Lepb;F: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 G
Lepb;G:I
intermediary field_20178
Lnet/minecraft/class_4427;field_20178:I
named slotId
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;slotId:I
-
uploadStatus
- Mappings:
Namespace Name Mixin selector official H
Lepb;H:Lemj;
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
- Mappings:
Namespace Name Mixin selector official I
Lepb;I: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;
-
statusTexts
- Mappings:
Namespace Name Mixin selector official J
Lepb;J:[Ltl;
intermediary field_20503
Lnet/minecraft/class_4427;field_20503:[Lnet/minecraft/class_2561;
named statusTexts
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;statusTexts:[Lnet/minecraft/text/Text;
-
status
- Mappings:
Namespace Name Mixin selector official K
Lepb;K:Ltl;
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
- Mappings:
Namespace Name Mixin selector official L
Lepb;L: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 M
Lepb;M: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 N
Lepb;N: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 O
Lepb;O: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 P
Lepb;P:Z
intermediary field_20187
Lnet/minecraft/class_4427;field_20187:Z
named uploadStarted
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStarted:Z
-
backButton
- Mappings:
Namespace Name Mixin selector official Q
Lepb;Q:Lesq;
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
- Mappings:
Namespace Name Mixin selector official R
Lepb;R:Lesq;
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 S
Lepb;S:I
intermediary field_20190
Lnet/minecraft/class_4427;field_20190:I
named animTick
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;animTick:I
-
previousWrittenBytes
- Mappings:
Namespace Name Mixin selector official T
Lepb;T: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
- Mappings:
Namespace Name Mixin selector official U
Lepb;U: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;
-
bytesPerSecond
private long bytesPerSecond- Mappings:
Namespace Name Mixin selector official V
Lepb;V:J
intermediary field_20195
Lnet/minecraft/class_4427;field_20195:J
named bytesPerSecond
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;bytesPerSecond:J
-
-
Constructor Details
-
RealmsUploadScreen
public RealmsUploadScreen(long worldId, int slotId, RealmsCreateWorldScreen parent, LevelSummary selectedLevel) - Mappings:
Namespace Name Mixin selector official <init>
Lepb;<init>(JILeou;Lech;)V
intermediary <init>
Lnet/minecraft/class_4427;<init>(JILnet/minecraft/class_4410;Lnet/minecraft/class_34;)V
named <init>
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;<init>(JILnet/minecraft/client/realms/gui/screen/RealmsCreateWorldScreen;Lnet/minecraft/world/level/storage/LevelSummary;)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(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
onBack
private void onBack()- Mappings:
Namespace Name Mixin selector official D
Lepb;D()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 E
Lepb;E()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 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 official a
Leuk;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
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lets;a(Lesf;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
drawDots
- Mappings:
Namespace Name Mixin selector official c
Lepb;c(Lesf;)V
intermediary method_21530
Lnet/minecraft/class_4427;method_21530(Lnet/minecraft/class_332;)V
named drawDots
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawDots(Lnet/minecraft/client/gui/DrawContext;)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector official d
Lepb;d(Lesf;)V
intermediary method_21532
Lnet/minecraft/class_4427;method_21532(Lnet/minecraft/class_332;)V
named drawProgressBar
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawProgressBar(Lnet/minecraft/client/gui/DrawContext;)V
-
drawUploadSpeed
- Mappings:
Namespace Name Mixin selector official e
Lepb;e(Lesf;)V
intermediary method_21534
Lnet/minecraft/class_4427;method_21534(Lnet/minecraft/class_332;)V
named drawUploadSpeed
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed(Lnet/minecraft/client/gui/DrawContext;)V
-
drawUploadSpeed0
- Mappings:
Namespace Name Mixin selector official a
Lepb;a(Lesf;J)V
intermediary method_21526
Lnet/minecraft/class_4427;method_21526(Lnet/minecraft/class_332;J)V
named drawUploadSpeed0
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed0(Lnet/minecraft/client/gui/DrawContext;J)V
-
tick
public void tick() -
getNarration
- Mappings:
Namespace Name Mixin selector official F
Lepb;F()Ltl;
intermediary method_37014
Lnet/minecraft/class_4427;method_37014()Lnet/minecraft/class_2561;
named getNarration
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;getNarration()Lnet/minecraft/text/Text;
-
upload
private void upload()- Mappings:
Namespace Name Mixin selector official G
Lepb;G()V
intermediary method_21536
Lnet/minecraft/class_4427;method_21536()V
named upload
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;upload()V
-
setStatusTexts
- Mappings:
Namespace Name Mixin selector official a
Lepb;a([Ltl;)V
intermediary method_27460
Lnet/minecraft/class_4427;method_27460([Lnet/minecraft/class_2561;)V
named setStatusTexts
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;setStatusTexts([Lnet/minecraft/text/Text;)V
-
uploadCancelled
private void uploadCancelled()- Mappings:
Namespace Name Mixin selector official H
Lepb;H()V
intermediary method_21538
Lnet/minecraft/class_4427;method_21538()V
named uploadCancelled
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadCancelled()V
-
verify
- Mappings:
Namespace Name Mixin selector official a
Lepb;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
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lepb;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
Lepb;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
-