Class RealmsDownloadLatestWorldScreen
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.RealmsDownloadLatestWorldScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate static final intprivate static final intprivate static final intprivate longprivate final it.unimi.dsi.fastutil.booleans.BooleanConsumerprivate Buttonprivate booleanprivate booleanprivate intprivate static final String[]private static final ReentrantLockprivate final RealmsDownloadLatestWorldScreen.DownloadStatusprivate final Componentprivate Componentprivate booleanprivate booleanprivate final Screenprivate static final org.slf4j.Loggerprivate final com.google.common.util.concurrent.RateLimiterprivate Longprivate Longprivate Stringprivate booleanprivate Componentprivate final WorldDownloadprivate final StringFields inherited from class net.minecraft.realms.RealmsScreenCOLOR_BRIGHT_YELLOW, COLOR_DARK_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED_FADE, COLOR_YELLOW, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionRealmsDownloadLatestWorldScreen(Screen p_88625_, WorldDownload p_88626_, String p_88627_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_88628_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidprivate voidprivate Componentprivate voidprivate voidprivate voiddrawDots(GuiGraphics p_281948_) private voiddrawDownloadSpeed(GuiGraphics p_282236_) private voiddrawDownloadSpeed0(GuiGraphics p_283338_, long p_281931_) private voiddrawProgressBar(GuiGraphics p_281556_) private longgetContentLength(String p_88647_) voidinit()booleankeyPressed(int p_88630_, int p_88631_, int p_88632_) voidrender(GuiGraphics p_282124_, int p_88635_, int p_88636_, float p_88637_) voidtick()Methods inherited from class net.minecraft.realms.RealmsScreenaddLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
DOWNLOAD_LOCK
- 
BAR_WIDTHprivate static final int BAR_WIDTH- See Also:
 
- 
BAR_TOPprivate static final int BAR_TOP- See Also:
 
- 
BAR_BOTTOMprivate static final int BAR_BOTTOM- See Also:
 
- 
BAR_BORDERprivate static final int BAR_BORDER- See Also:
 
- 
lastScreen
- 
worldDownload
- 
downloadTitle
- 
narrationRateLimiterprivate final com.google.common.util.concurrent.RateLimiter narrationRateLimiter
- 
cancelButton
- 
worldName
- 
downloadStatus
- 
errorMessage
- 
status
- 
progress
- 
cancelledprivate volatile boolean cancelled
- 
showDotsprivate volatile boolean showDots
- 
finishedprivate volatile boolean finished
- 
extractingprivate volatile boolean extracting
- 
previousWrittenBytes
- 
previousTimeSnapshot
- 
bytesPersSecondprivate long bytesPersSecond
- 
animTickprivate int animTick
- 
DOTS
- 
dotIndexprivate int dotIndex
- 
checkedprivate boolean checked
- 
callbackprivate final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
 
- 
- 
Constructor Details- 
RealmsDownloadLatestWorldScreenpublic RealmsDownloadLatestWorldScreen(Screen p_88625_, WorldDownload p_88626_, String p_88627_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_88628_) 
 
- 
- 
Method Details- 
initpublic void init()
- 
checkDownloadSizeprivate void checkDownloadSize()
- 
getContentLength
- 
tickpublic void tick()
- 
createProgressNarrationMessage
- 
keyPressedpublic boolean keyPressed(int p_88630_, int p_88631_, int p_88632_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
backButtonClickedprivate void backButtonClicked()
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
drawDots
- 
drawProgressBar
- 
drawDownloadSpeed
- 
drawDownloadSpeed0
- 
downloadSaveprivate void downloadSave()
- 
downloadCancelledprivate void downloadCancelled()
 
-