Class RealmsDownloadLatestWorldScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URLFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionRealmsDownloadLatestWorldScreen(Screen p_88625_, WorldDownload p_88626_, String p_88627_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_88628_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate Componentprivate voidprivate voidprivate voidprivate voiddrawDownloadSpeed(PoseStack p_88654_) private voiddrawDownloadSpeed0(PoseStack p_88639_, long p_88640_) private voiddrawProgressBar(PoseStack p_88649_) private longgetContentLength(String p_88647_) voidinit()booleankeyPressed(int p_88630_, int p_88631_, int p_88632_) voidvoidtick()Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DOWNLOAD_LOCK
-
lastScreen
-
worldDownload
-
downloadTitle
-
narrationRateLimiter
private final com.google.common.util.concurrent.RateLimiter narrationRateLimiter -
cancelButton
-
worldName
-
downloadStatus
-
errorMessage
-
status
-
progress
-
cancelled
private volatile boolean cancelled -
showDots
private volatile boolean showDots -
finished
private volatile boolean finished -
extracting
private volatile boolean extracting -
previousWrittenBytes
-
previousTimeSnapshot
-
bytesPersSecond
private long bytesPersSecond -
animTick
private int animTick -
DOTS
-
dotIndex
private int dotIndex -
checked
private boolean checked -
callback
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
-
-
Constructor Details
-
RealmsDownloadLatestWorldScreen
public RealmsDownloadLatestWorldScreen(Screen p_88625_, WorldDownload p_88626_, String p_88627_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_88628_)
-
-
Method Details
-
init
public void init() -
checkDownloadSize
private void checkDownloadSize() -
getContentLength
-
tick
public void tick() -
createProgressNarrationMessage
-
keyPressed
public boolean keyPressed(int p_88630_, int p_88631_, int p_88632_) - Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
backButtonClicked
private void backButtonClicked() -
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
drawDots
-
drawProgressBar
-
drawDownloadSpeed
-
drawDownloadSpeed0
-
downloadSave
private void downloadSave() -
downloadCancelled
private void downloadCancelled()
-