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
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private long
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer
private Button
private boolean
private boolean
private int
private static final String[]
private static final ReentrantLock
private final RealmsDownloadLatestWorldScreen.DownloadStatus
private final ITextComponent
private ITextComponent
private boolean
private boolean
private final Screen
private static final org.apache.logging.log4j.Logger
private final com.google.common.util.concurrent.RateLimiter
private Long
private Long
private String
private boolean
private ITextComponent
private final WorldDownload
private final String
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionRealmsDownloadLatestWorldScreen
(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 void
private void
private void
private void
private void
drawDots
(MatrixStack p_237835_1_) private void
drawDownloadSpeed
(MatrixStack p_237838_1_) private void
drawDownloadSpeed0
(MatrixStack p_237833_1_, long p_237833_2_) private void
drawProgressBar
(MatrixStack p_237836_1_) private long
getContentLength
(String p_224152_1_) void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) void
tick()
Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, row
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
Methods 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:
tick
in interfaceIScreen
- Overrides:
tick
in classRealmsScreen
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
backButtonClicked
private void backButtonClicked() -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
drawDots
-
drawProgressBar
-
drawDownloadSpeed
-
drawDownloadSpeed0
-
downloadSave
private void downloadSave() -
downloadCancelled
private void downloadCancelled()
-