Class RealmsDownloadLatestWorldScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable,IScreen
-
Nested Class Summary
Nested Classes -
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 ITextComponentprivate ITextComponentprivate booleanprivate booleanprivate final Screenprivate static final org.apache.logging.log4j.Loggerprivate final com.google.common.util.concurrent.RateLimiterprivate Longprivate Longprivate Stringprivate booleanprivate ITextComponentprivate final WorldDownloadprivate final StringFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, widthFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionRealmsDownloadLatestWorldScreen(Screen p_i232203_1_, WorldDownload p_i232203_2_, String p_i232203_3_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_i232203_4_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidprivate voidprivate voiddrawDots(MatrixStack p_237835_1_) private voiddrawDownloadSpeed(MatrixStack p_237838_1_) private voiddrawDownloadSpeed0(MatrixStack p_237833_1_, long p_237833_2_) private voiddrawProgressBar(MatrixStack p_237836_1_) private longgetContentLength(String p_224152_1_) voidinit()booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) voidtick()Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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_i232203_1_, WorldDownload p_i232203_2_, String p_i232203_3_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_i232203_4_)
-
-
Method Details
-
init
public void init() -
checkDownloadSize
private void checkDownloadSize() -
getContentLength
-
tick
public void tick()- Specified by:
tickin interfaceIScreen- Overrides:
tickin classRealmsScreen
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler- Overrides:
keyPressedin classScreen
-
backButtonClicked
private void backButtonClicked() -
render
- Specified by:
renderin interfaceIRenderable- Overrides:
renderin classScreen
-
drawDots
-
drawProgressBar
-
drawDownloadSpeed
-
drawDownloadSpeed0
-
downloadSave
private void downloadSave() -
downloadCancelled
private void downloadCancelled()
-