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/RealmsUploadScreenintermediary net/minecraft/class_4427official fov
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate @Nullable ButtonWidgetprivate @Nullable ButtonWidgetprivate booleanprivate final @Nullable WorldCreationTaskprivate static final String[]private static final intprivate static final intprivate static final intprivate static final intprivate final ThreePartsLayoutWidgetprivate final RateLimiterprivate final RealmsCreateWorldScreenprivate final LevelSummaryprivate booleanprivate final intprivate Text(package private) final AtomicReference<RealmsUploader> private booleanprivate final UploadProgressprivate booleanprivate static final Textprivate final longFields 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_SIZEFields 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, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRealmsUploadScreen(@Nullable WorldCreationTask creationTask, long worldId, int slotId, RealmsCreateWorldScreen parent, LevelSummary selectedLevel) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawProgressBar(DrawContext context) private voiddrawUploadSpeed(DrawContext context) private voiddrawUploadSpeed0(DrawContext context, long bytesPerSecond) private Textvoidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.private voidonBack()private voidonCancel()protected voidvoidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) private voidsetStatusTexts(@Nullable Text[] statusTexts) voidtick()voidprivate voidupload()Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
addLabel, narrateLabels, rowMethods 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, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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_41776Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41776:Iintermediary field_41776Lnet/minecraft/class_4427;field_41776:Iofficial bLfov;b:I
-
field_41773
private static final int field_41773- See Also:
- Mappings:
Namespace Name Mixin selector named field_41773Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41773:Iintermediary field_41773Lnet/minecraft/class_4427;field_41773:Iofficial cLfov;c:I
-
field_41774
private static final int field_41774- See Also:
- Mappings:
Namespace Name Mixin selector named field_41774Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41774:Iintermediary field_41774Lnet/minecraft/class_4427;field_41774:Iofficial CLfov;C:I
-
field_41775
private static final int field_41775- See Also:
- Mappings:
Namespace Name Mixin selector named field_41775Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_41775:Iintermediary field_41775Lnet/minecraft/class_4427;field_41775:Iofficial DLfov;D:I
-
DOTS
- Mappings:
Namespace Name Mixin selector named DOTSLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;DOTS:[Ljava/lang/String;intermediary field_20191Lnet/minecraft/class_4427;field_20191:[Ljava/lang/String;official ELfov;E:[Ljava/lang/String;
-
VERIFYING_TEXT
- Mappings:
Namespace Name Mixin selector named VERIFYING_TEXTLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;VERIFYING_TEXT:Lnet/minecraft/text/Text;intermediary field_26526Lnet/minecraft/class_4427;field_26526:Lnet/minecraft/class_2561;official FLfov;F:Lxg;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsCreateWorldScreen;intermediary field_20175Lnet/minecraft/class_4427;field_20175:Lnet/minecraft/class_4410;official GLfov;G:Lfon;
-
selectedLevel
- Mappings:
Namespace Name Mixin selector named selectedLevelLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;selectedLevel:Lnet/minecraft/world/level/storage/LevelSummary;intermediary field_20176Lnet/minecraft/class_4427;field_20176:Lnet/minecraft/class_34;official HLfov;H:Lfai;
-
creationTask
- Mappings:
Namespace Name Mixin selector named creationTaskLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;creationTask:Lnet/minecraft/client/realms/task/WorldCreationTask;intermediary field_48388Lnet/minecraft/class_4427;field_48388:Lnet/minecraft/class_4445;official ILfov;I:Lfpq;
-
worldId
private final long worldId- Mappings:
Namespace Name Mixin selector named worldIdLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;worldId:Jintermediary field_20177Lnet/minecraft/class_4427;field_20177:Jofficial JLfov;J:J
-
slotId
private final int slotId- Mappings:
Namespace Name Mixin selector named slotIdLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;slotId:Iintermediary field_20178Lnet/minecraft/class_4427;field_20178:Iofficial KLfov;K:I
-
uploader
- Mappings:
Namespace Name Mixin selector named uploaderLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploader:Ljava/util/concurrent/atomic/AtomicReference;intermediary field_54387Lnet/minecraft/class_4427;field_54387:Ljava/util/concurrent/atomic/AtomicReference;official aLfov;a:Ljava/util/concurrent/atomic/AtomicReference;
-
uploadProgress
- Mappings:
Namespace Name Mixin selector named uploadProgressLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadProgress:Lnet/minecraft/client/realms/util/UploadProgress;intermediary field_20179Lnet/minecraft/class_4427;field_20179:Lnet/minecraft/class_4351;official LLfov;L:Lflu;
-
narrationRateLimiter
- Mappings:
Namespace Name Mixin selector named narrationRateLimiterLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;intermediary field_20180Lnet/minecraft/class_4427;field_20180:Lcom/google/common/util/concurrent/RateLimiter;official MLfov;M:Lcom/google/common/util/concurrent/RateLimiter;
-
statusTexts
- Mappings:
Namespace Name Mixin selector named statusTextsLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;statusTexts:[Lnet/minecraft/text/Text;intermediary field_20503Lnet/minecraft/class_4427;field_20503:[Lnet/minecraft/class_2561;official NLfov;N:[Lxg;
-
status
- Mappings:
Namespace Name Mixin selector named statusLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;status:Lnet/minecraft/text/Text;intermediary field_20182Lnet/minecraft/class_4427;field_20182:Lnet/minecraft/class_2561;official OLfov;O:Lxg;
-
progress
- Mappings:
Namespace Name Mixin selector named progressLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;progress:Ljava/lang/String;intermediary field_20183Lnet/minecraft/class_4427;field_20183:Ljava/lang/String;official PLfov;P:Ljava/lang/String;
-
cancelled
private volatile boolean cancelled- Mappings:
Namespace Name Mixin selector named cancelledLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelled:Zintermediary field_20184Lnet/minecraft/class_4427;field_20184:Zofficial QLfov;Q:Z
-
uploadFinished
private volatile boolean uploadFinished- Mappings:
Namespace Name Mixin selector named uploadFinishedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadFinished:Zintermediary field_20185Lnet/minecraft/class_4427;field_20185:Zofficial RLfov;R:Z
-
showDots
private volatile boolean showDots- Mappings:
Namespace Name Mixin selector named showDotsLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;showDots:Zintermediary field_20186Lnet/minecraft/class_4427;field_20186:Zofficial SLfov;S:Z
-
uploadStarted
private volatile boolean uploadStarted- Mappings:
Namespace Name Mixin selector named uploadStartedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStarted:Zintermediary field_20187Lnet/minecraft/class_4427;field_20187:Zofficial TLfov;T:Z
-
backButton
- Mappings:
Namespace Name Mixin selector named backButtonLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;backButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_20188Lnet/minecraft/class_4427;field_20188:Lnet/minecraft/class_4185;official ULfov;U:Lfty;
-
cancelButton
- Mappings:
Namespace Name Mixin selector named cancelButtonLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_20189Lnet/minecraft/class_4427;field_20189:Lnet/minecraft/class_4185;official VLfov;V:Lfty;
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector named animTickLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;animTick:Iintermediary field_20190Lnet/minecraft/class_4427;field_20190:Iofficial WLfov;W:I
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;intermediary field_48389Lnet/minecraft/class_4427;field_48389:Lnet/minecraft/class_8132;official XLfov;X:Lfxm;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_4427;<init>(Lnet/minecraft/class_4445;JILnet/minecraft/class_4410;Lnet/minecraft/class_34;)Vofficial <init>Lfov;<init>(Lfpq;JILfon;Lfai;)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:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLfzq;c()V
-
onBack
private void onBack()- Mappings:
Namespace Name Mixin selector named onBackLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onBack()Vintermediary method_21525Lnet/minecraft/class_4427;method_21525()Vofficial ELfov;E()V
-
onCancel
private void onCancel()- Mappings:
Namespace Name Mixin selector named onCancelLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onCancel()Vintermediary method_21528Lnet/minecraft/class_4427;method_21528()Vofficial FLfov;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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfvv;a(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfvb;a(Lftk;IIF)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector named drawProgressBarLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawProgressBar(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_21532Lnet/minecraft/class_4427;method_21532(Lnet/minecraft/class_332;)Vofficial cLfov;c(Lftk;)V
-
drawUploadSpeed
- Mappings:
Namespace Name Mixin selector named drawUploadSpeedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_21534Lnet/minecraft/class_4427;method_21534(Lnet/minecraft/class_332;)Vofficial dLfov;d(Lftk;)V
-
drawUploadSpeed0
- Mappings:
Namespace Name Mixin selector named drawUploadSpeed0Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed0(Lnet/minecraft/client/gui/DrawContext;J)Vintermediary method_21526Lnet/minecraft/class_4427;method_21526(Lnet/minecraft/class_332;J)Vofficial aLfov;a(Lftk;J)V
-
tick
public void tick() -
getNarration
- Mappings:
Namespace Name Mixin selector named getNarrationLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;getNarration()Lnet/minecraft/text/Text;intermediary method_37014Lnet/minecraft/class_4427;method_37014()Lnet/minecraft/class_2561;official GLfov;G()Lxg;
-
upload
private void upload()- Mappings:
Namespace Name Mixin selector named uploadLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;upload()Vintermediary method_21536Lnet/minecraft/class_4427;method_21536()Vofficial HLfov;H()V
-
setStatusTexts
- Mappings:
Namespace Name Mixin selector named setStatusTextsLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;setStatusTexts([Lnet/minecraft/text/Text;)Vintermediary method_27460Lnet/minecraft/class_4427;method_27460([Lnet/minecraft/class_2561;)Vofficial aLfov;a([Lxg;)V
-
getUploadProgress
- Specified by:
getUploadProgressin interfaceUploadProgressTracker- Mappings:
Namespace Name Mixin selector named getUploadProgressLnet/minecraft/client/realms/util/UploadProgressTracker;getUploadProgress()Lnet/minecraft/client/realms/util/UploadProgress;intermediary method_64349Lnet/minecraft/class_10239;method_64349()Lnet/minecraft/class_4351;official bLfme;b()Lflu;
-
updateProgressDisplay
public void updateProgressDisplay()- Specified by:
updateProgressDisplayin interfaceUploadProgressTracker- Mappings:
Namespace Name Mixin selector named updateProgressDisplayLnet/minecraft/client/realms/util/UploadProgressTracker;updateProgressDisplay()Vintermediary method_64350Lnet/minecraft/class_10239;method_64350()Vofficial dLfme;d()V
-