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 fxs
-
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
BLUE, DARK_GRAY, field_33055, field_33057, field_39676, field_54866, GRAY, GREEN, MAX_FILE_SIZE, PURPLE, REALMS_LOGO_TEXTURE, REALMS_LOGO_TEXTURE_HEIGHT, REALMS_LOGO_TEXTURE_WIDTH, REALMS_LOGO_WIDGET_HEIGHT, REALMS_LOGO_WIDGET_WIDTHFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
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(KeyInput input) 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, createRealmsLogoIconWidget, narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, close, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, 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, isClickable, 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 bLfxs;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 cLfxs;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 FLfxs;F: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 GLfxs;G: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 HLfxs;H:[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 ILfxs;I:Lxx;
-
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 JLfxs;J:Lfxo;
-
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 KLfxs;K:Lfii;
-
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 LLfxs;L:Lfyz;
-
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 MLfxs;M: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 NLfxs;N: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 aLfxs;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 OLfxs;O:Lfur;
-
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 PLfxs;P: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 QLfxs;Q:[Lxx;
-
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 RLfxs;R:Lxx;
-
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 SLfxs;S: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 TLfxs;T: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 ULfxs;U: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 VLfxs;V: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 WLfxs;W: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 XLfxs;X:Lgdp;
-
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 YLfxs;Y:Lgdp;
-
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 ZLfxs;Z: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 aaLfxs;aa:Lgjc;
-
-
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>Lfxs;<init>(Lfyz;JILfxo;Lfii;)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 cLgmj;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 oLfxs;o()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 ILfxs;I()V
-
keyPressed
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- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLggw;a(Lgth;)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 aLget;a(Lgdd;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 dLfxs;d(Lgdd;)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 eLfxs;e(Lgdd;)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 aLfxs;a(Lgdd;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 JLfxs;J()Lxx;
-
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 KLfxs;K()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 aLfxs;a([Lxx;)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 bLfvb;b()Lfur;
-
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 dLfvb;d()V
-