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
,UploadProgressTracker
@Environment(CLIENT)
public class RealmsUploadScreen
extends RealmsScreen
implements UploadProgressTracker
- Mappings:
Namespace Name named net/minecraft/client/realms/gui/screen/RealmsUploadScreen
intermediary net/minecraft/class_4427
official fkl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private @Nullable ButtonWidget
private @Nullable ButtonWidget
private boolean
private final @Nullable WorldCreationTask
private static final String[]
private static final int
private static final int
private static final int
private static final int
private final ThreePartsLayoutWidget
private final RateLimiter
private final RealmsCreateWorldScreen
private final LevelSummary
private boolean
private final int
private Text
(package private) final AtomicReference
<RealmsUploader> private boolean
private final UploadProgress
private boolean
private static final Text
private final long
Fields inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
field_33040, field_33041, field_33055, field_33057, field_33061, field_33062, field_33063, field_39676, field_54866, 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, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionRealmsUploadScreen
(@Nullable WorldCreationTask creationTask, long worldId, int slotId, RealmsCreateWorldScreen parent, LevelSummary selectedLevel) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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()
protected void
void
render
(DrawContext context, int mouseX, int mouseY, float delta) private void
setStatusTexts
(@Nullable Text[] statusTexts) void
tick()
void
private void
upload()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, row
Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, updateNarrator
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
-
field_41776
private static final int field_41776- See Also:
- Mappings:
Namespace Name Mixin selector named field_41776
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41776:I
intermediary field_41776
Lnet/minecraft/class_4427;field_41776:I
official b
Lfkl;b:I
-
field_41773
private static final int field_41773- See Also:
- Mappings:
Namespace Name Mixin selector named field_41773
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41773:I
intermediary field_41773
Lnet/minecraft/class_4427;field_41773:I
official c
Lfkl;c:I
-
field_41774
private static final int field_41774- See Also:
- Mappings:
Namespace Name Mixin selector named field_41774
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41774:I
intermediary field_41774
Lnet/minecraft/class_4427;field_41774:I
official C
Lfkl;C:I
-
field_41775
private static final int field_41775- See Also:
- Mappings:
Namespace Name Mixin selector named field_41775
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41775:I
intermediary field_41775
Lnet/minecraft/class_4427;field_41775:I
official D
Lfkl;D:I
-
DOTS
- Mappings:
Namespace Name Mixin selector named DOTS
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;DOTS:[Ljava/lang/String;
intermediary field_20191
Lnet/minecraft/class_4427;field_20191:[Ljava/lang/String;
official E
Lfkl;E:[Ljava/lang/String;
-
VERIFYING_TEXT
- Mappings:
Namespace Name Mixin selector named VERIFYING_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;VERIFYING_TEXT:Lnet/minecraft/text/Text;
intermediary field_26526
Lnet/minecraft/class_4427;field_26526:Lnet/minecraft/class_2561;
official F
Lfkl;F:Lxv;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsCreateWorldScreen;
intermediary field_20175
Lnet/minecraft/class_4427;field_20175:Lnet/minecraft/class_4410;
official G
Lfkl;G:Lfke;
-
selectedLevel
- Mappings:
Namespace Name Mixin selector named selectedLevel
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;selectedLevel:Lnet/minecraft/world/level/storage/LevelSummary;
intermediary field_20176
Lnet/minecraft/class_4427;field_20176:Lnet/minecraft/class_34;
official H
Lfkl;H:Lewd;
-
creationTask
- Mappings:
Namespace Name Mixin selector named creationTask
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;creationTask:Lnet/minecraft/client/realms/task/WorldCreationTask;
intermediary field_48388
Lnet/minecraft/class_4427;field_48388:Lnet/minecraft/class_4445;
official I
Lfkl;I:Lflg;
-
worldId
private final long worldId- Mappings:
Namespace Name Mixin selector named worldId
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;worldId:J
intermediary field_20177
Lnet/minecraft/class_4427;field_20177:J
official J
Lfkl;J:J
-
slotId
private final int slotId- Mappings:
Namespace Name Mixin selector named slotId
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;slotId:I
intermediary field_20178
Lnet/minecraft/class_4427;field_20178:I
official K
Lfkl;K:I
-
uploader
- Mappings:
Namespace Name Mixin selector named uploader
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploader:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_54387
Lnet/minecraft/class_4427;field_54387:Ljava/util/concurrent/atomic/AtomicReference;
official a
Lfkl;a:Ljava/util/concurrent/atomic/AtomicReference;
-
uploadProgress
- Mappings:
Namespace Name Mixin selector named uploadProgress
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadProgress:Lnet/minecraft/client/realms/util/UploadProgress;
intermediary field_20179
Lnet/minecraft/class_4427;field_20179:Lnet/minecraft/class_4351;
official L
Lfkl;L:Lfhl;
-
narrationRateLimiter
- Mappings:
Namespace Name Mixin selector named narrationRateLimiter
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;
intermediary field_20180
Lnet/minecraft/class_4427;field_20180:Lcom/google/common/util/concurrent/RateLimiter;
official M
Lfkl;M:Lcom/google/common/util/concurrent/RateLimiter;
-
statusTexts
- Mappings:
Namespace Name Mixin selector named statusTexts
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;statusTexts:[Lnet/minecraft/text/Text;
intermediary field_20503
Lnet/minecraft/class_4427;field_20503:[Lnet/minecraft/class_2561;
official N
Lfkl;N:[Lxv;
-
status
- Mappings:
Namespace Name Mixin selector named status
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;status:Lnet/minecraft/text/Text;
intermediary field_20182
Lnet/minecraft/class_4427;field_20182:Lnet/minecraft/class_2561;
official O
Lfkl;O:Lxv;
-
progress
- Mappings:
Namespace Name Mixin selector named progress
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;progress:Ljava/lang/String;
intermediary field_20183
Lnet/minecraft/class_4427;field_20183:Ljava/lang/String;
official P
Lfkl;P:Ljava/lang/String;
-
cancelled
private volatile boolean cancelled- Mappings:
Namespace Name Mixin selector named cancelled
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelled:Z
intermediary field_20184
Lnet/minecraft/class_4427;field_20184:Z
official Q
Lfkl;Q:Z
-
uploadFinished
private volatile boolean uploadFinished- Mappings:
Namespace Name Mixin selector named uploadFinished
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadFinished:Z
intermediary field_20185
Lnet/minecraft/class_4427;field_20185:Z
official R
Lfkl;R:Z
-
showDots
private volatile boolean showDots- Mappings:
Namespace Name Mixin selector named showDots
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;showDots:Z
intermediary field_20186
Lnet/minecraft/class_4427;field_20186:Z
official S
Lfkl;S:Z
-
uploadStarted
private volatile boolean uploadStarted- Mappings:
Namespace Name Mixin selector named uploadStarted
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStarted:Z
intermediary field_20187
Lnet/minecraft/class_4427;field_20187:Z
official T
Lfkl;T:Z
-
backButton
- Mappings:
Namespace Name Mixin selector named backButton
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;backButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_20188
Lnet/minecraft/class_4427;field_20188:Lnet/minecraft/class_4185;
official U
Lfkl;U:Lfoe;
-
cancelButton
- Mappings:
Namespace Name Mixin selector named cancelButton
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_20189
Lnet/minecraft/class_4427;field_20189:Lnet/minecraft/class_4185;
official V
Lfkl;V:Lfoe;
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector named animTick
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;animTick:I
intermediary field_20190
Lnet/minecraft/class_4427;field_20190:I
official W
Lfkl;W:I
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
intermediary field_48389
Lnet/minecraft/class_4427;field_48389:Lnet/minecraft/class_8132;
official X
Lfkl;X:Lfrt;
-
-
Constructor Details
-
RealmsUploadScreen
public RealmsUploadScreen(@Nullable @Nullable WorldCreationTask creationTask, long worldId, int slotId, RealmsCreateWorldScreen parent, LevelSummary selectedLevel) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;<init>(Lnet/minecraft/client/realms/task/WorldCreationTask;JILnet/minecraft/client/realms/gui/screen/RealmsCreateWorldScreen;Lnet/minecraft/world/level/storage/LevelSummary;)V
intermediary <init>
Lnet/minecraft/class_4427;<init>(Lnet/minecraft/class_4445;JILnet/minecraft/class_4410;Lnet/minecraft/class_34;)V
official <init>
Lfkl;<init>(Lflg;JILfke;Lewd;)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.
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositions
in classScreen
- Mappings:
Namespace Name Mixin selector named refreshWidgetPositions
Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
intermediary method_48640
Lnet/minecraft/class_437;method_48640()V
official c
Lftx;c()V
-
onBack
private void onBack()- Mappings:
Namespace Name Mixin selector named onBack
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onBack()V
intermediary method_21525
Lnet/minecraft/class_4427;method_21525()V
official E
Lfkl;E()V
-
onCancel
private void onCancel()- Mappings:
Namespace Name Mixin selector named onCancel
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onCancel()V
intermediary method_21528
Lnet/minecraft/class_4427;method_21528()V
official F
Lfkl;F()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 named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfqc;a(III)Z
-
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
Lfpi;a(Lfnr;IIF)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector named drawProgressBar
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawProgressBar(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_21532
Lnet/minecraft/class_4427;method_21532(Lnet/minecraft/class_332;)V
official c
Lfkl;c(Lfnr;)V
-
drawUploadSpeed
- Mappings:
Namespace Name Mixin selector named drawUploadSpeed
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_21534
Lnet/minecraft/class_4427;method_21534(Lnet/minecraft/class_332;)V
official d
Lfkl;d(Lfnr;)V
-
drawUploadSpeed0
- Mappings:
Namespace Name Mixin selector named drawUploadSpeed0
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed0(Lnet/minecraft/client/gui/DrawContext;J)V
intermediary method_21526
Lnet/minecraft/class_4427;method_21526(Lnet/minecraft/class_332;J)V
official a
Lfkl;a(Lfnr;J)V
-
tick
public void tick() -
getNarration
- Mappings:
Namespace Name Mixin selector named getNarration
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;getNarration()Lnet/minecraft/text/Text;
intermediary method_37014
Lnet/minecraft/class_4427;method_37014()Lnet/minecraft/class_2561;
official G
Lfkl;G()Lxv;
-
upload
private void upload()- Mappings:
Namespace Name Mixin selector named upload
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;upload()V
intermediary method_21536
Lnet/minecraft/class_4427;method_21536()V
official J
Lfkl;J()V
-
setStatusTexts
- Mappings:
Namespace Name Mixin selector named setStatusTexts
Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;setStatusTexts([Lnet/minecraft/text/Text;)V
intermediary method_27460
Lnet/minecraft/class_4427;method_27460([Lnet/minecraft/class_2561;)V
official a
Lfkl;a([Lxv;)V
-
getUploadProgress
- Specified by:
getUploadProgress
in interfaceUploadProgressTracker
- Mappings:
Namespace Name Mixin selector named getUploadProgress
Lnet/minecraft/client/realms/util/UploadProgressTracker;getUploadProgress()Lnet/minecraft/client/realms/util/UploadProgress;
intermediary method_64349
Lnet/minecraft/class_10239;method_64349()Lnet/minecraft/class_4351;
official b
Lfhv;b()Lfhl;
-
updateProgressDisplay
public void updateProgressDisplay()- Specified by:
updateProgressDisplay
in interfaceUploadProgressTracker
- Mappings:
Namespace Name Mixin selector named updateProgressDisplay
Lnet/minecraft/client/realms/util/UploadProgressTracker;updateProgressDisplay()V
intermediary method_64350
Lnet/minecraft/class_10239;method_64350()V
official d
Lfhv;d()V
-