Class RealmsUploadScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsUploadScreen
- All Implemented Interfaces:
RealmsWorldUploadStatusTracker, ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Buttonprivate static final intprivate static final intprivate static final intprivate static final intprivate @Nullable Buttonprivate boolean(package private) final AtomicReference<@Nullable RealmsWorldUpload> private static final String[]private Component @Nullable []private final RealmsResetWorldScreenprivate final HeaderAndFooterLayoutprivate final RateLimiterprivate @Nullable Stringprivate final @Nullable RealmCreationTaskprivate final longprivate final LevelSummaryprivate booleanprivate final intprivate Componentprivate intprivate booleanprivate booleanprivate final UploadStatusprivate static final ComponentFields inherited from class RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, EXPIRATION_NOTIFICATION_DAYS, HARDCORE_HEART_SIZE, LOGO_HEIGHT, LOGO_LOCATION, LOGO_TEXTURE_HEIGHT, LOGO_TEXTURE_WIDTH, LOGO_WIDTH, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionRealmsUploadScreen(@Nullable RealmCreationTask realmCreationTask, long realmId, int slotId, RealmsResetWorldScreen lastScreen, LevelSummary selectedLevel) -
Method Summary
Modifier and TypeMethodDescriptionprivate Componentprivate voiddrawProgressBar(GuiGraphics graphics) private voiddrawUploadSpeed(GuiGraphics graphics) private voiddrawUploadSpeed0(GuiGraphics graphics, long bytesPerSecond) voidinit()booleankeyPressed(KeyEvent event) private voidonBack()private voidonCancel()voidrender(GuiGraphics graphics, int xm, int ym, float a) Renders the graphical user interface (GUI) element.protected voidprivate voidsetErrorMessage(Component @Nullable ... messages) voidvoidtick()private voidupload()Methods inherited from class RealmsScreen
addLabel, createLabelNarration, realmsLogo, rowMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
BAR_WIDTH
private static final int BAR_WIDTH- See Also:
-
BAR_TOP
private static final int BAR_TOP- See Also:
-
BAR_BOTTOM
private static final int BAR_BOTTOM- See Also:
-
BAR_BORDER
private static final int BAR_BORDER- See Also:
-
DOTS
-
VERIFYING_TEXT
-
lastScreen
-
selectedLevel
-
realmCreationTask
-
realmId
private final long realmId -
slotId
private final int slotId -
currentUpload
-
uploadStatus
-
narrationRateLimiter
-
errorMessage
-
status
-
progress
-
cancelled
private volatile boolean cancelled -
uploadFinished
private volatile boolean uploadFinished -
showDots
private volatile boolean showDots -
uploadStarted
private volatile boolean uploadStarted -
backButton
-
cancelButton
-
tickCount
private int tickCount -
layout
-
-
Constructor Details
-
RealmsUploadScreen
public RealmsUploadScreen(@Nullable RealmCreationTask realmCreationTask, long realmId, int slotId, RealmsResetWorldScreen lastScreen, LevelSummary selectedLevel)
-
-
Method Details
-
init
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onBack
private void onBack() -
onCancel
private void onCancel() -
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.xm- the x-coordinate of the mouse cursor.ym- the y-coordinate of the mouse cursor.a- the partial tick time.
-
drawProgressBar
-
drawUploadSpeed
-
drawUploadSpeed0
-
tick
-
createProgressNarrationMessage
-
upload
private void upload() -
setErrorMessage
-
getUploadStatus
- Specified by:
getUploadStatusin interfaceRealmsWorldUploadStatusTracker
-
setUploading
public void setUploading()- Specified by:
setUploadingin interfaceRealmsWorldUploadStatusTracker
-