Class RealmsDownloadLatestWorldScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsDownloadLatestWorldScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsDownloadLatestWorldScreen extends RealmsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRealmsDownloadLatestWorldScreen.DownloadStatus -
Field Summary
Fields Modifier and Type Field Description private intanimTickprivate longbytesPersSecondprivate booleancancelledprivate booleancheckedprivate intdotIndexprivate static String[]DOTSprivate static ReentrantLockdownloadLockprivate RealmsDownloadLatestWorldScreen.DownloadStatusdownloadStatusprivate TextdownloadTitleprivate booleanextractingprivate Textfield_20494private BooleanConsumerfield_22693private ButtonWidgetfield_22694private booleanfinishedprivate ScreenlastScreenprivate static LoggerLOGGERprivate RateLimiternarrationRateLimiterprivate LongpreviousTimeSnapshotprivate LongpreviousWrittenBytesprivate Stringprogressprivate booleanshowDotsprivate Textstatusprivate WorldDownloadworldDownloadprivate StringworldNameFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsDownloadLatestWorldScreen(Screen screen, WorldDownload worldDownload, String worldName, BooleanConsumer booleanConsumer) -
Method Summary
Modifier and Type Method Description private voidbackButtonClicked()private voidcheckDownloadSize()private voiddownloadCancelled()private voiddownloadSave()private voiddrawDots(MatrixStack matrixStack)private voiddrawDownloadSpeed(MatrixStack matrixStack)private voiddrawDownloadSpeed0(MatrixStack matrixStack, long long2)private voiddrawProgressBar(MatrixStack matrixStack)private longgetContentLength(String downloadLink)voidinit()booleankeyPressed(int keyCode, int scanCode, int modifiers)voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, method_29638, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
-
downloadLock
-
DOTS
-
lastScreen
-
worldDownload
-
downloadTitle
-
narrationRateLimiter
-
field_22694
-
worldName
-
downloadStatus
-
field_20494
-
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 -
dotIndex
private int dotIndex -
checked
private boolean checked -
field_22693
-
-
Constructor Details
-
RealmsDownloadLatestWorldScreen
public RealmsDownloadLatestWorldScreen(Screen screen, WorldDownload worldDownload, String worldName, BooleanConsumer booleanConsumer)
-
-
Method Details
-
init
public void init() -
checkDownloadSize
private void checkDownloadSize() -
getContentLength
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classRealmsScreen
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen
-
backButtonClicked
private void backButtonClicked() -
render
-
drawDots
-
drawProgressBar
-
drawDownloadSpeed
-
drawDownloadSpeed0
-
downloadSave
private void downloadSave() -
downloadCancelled
private void downloadCancelled()
-