Class RealmsDownloadLatestWorldScreen

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • DOWNLOAD_LOCK

        private static final java.util.concurrent.locks.ReentrantLock DOWNLOAD_LOCK
      • lastScreen

        private final Screen lastScreen
      • narrationRateLimiter

        private final com.google.common.util.concurrent.RateLimiter narrationRateLimiter
      • cancelButton

        private Button cancelButton
      • worldName

        private final java.lang.String worldName
      • progress

        private volatile java.lang.String progress
      • cancelled

        private volatile boolean cancelled
      • showDots

        private volatile boolean showDots
      • finished

        private volatile boolean finished
      • extracting

        private volatile boolean extracting
      • previousWrittenBytes

        private java.lang.Long previousWrittenBytes
      • previousTimeSnapshot

        private java.lang.Long previousTimeSnapshot
      • bytesPersSecond

        private long bytesPersSecond
      • animTick

        private int animTick
      • DOTS

        private static final java.lang.String[] DOTS
      • dotIndex

        private int dotIndex
      • checked

        private boolean checked
      • callback

        private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
    • Constructor Detail

      • RealmsDownloadLatestWorldScreen

        public RealmsDownloadLatestWorldScreen​(Screen p_i232203_1_,
                                               WorldDownload p_i232203_2_,
                                               java.lang.String p_i232203_3_,
                                               it.unimi.dsi.fastutil.booleans.BooleanConsumer p_i232203_4_)
    • Method Detail

      • init

        public void init()
        Overrides:
        init in class Screen
      • checkDownloadSize

        private void checkDownloadSize()
      • getContentLength

        private long getContentLength​(java.lang.String p_224152_1_)
      • backButtonClicked

        private void backButtonClicked()
      • drawDots

        private void drawDots​(MatrixStack p_237835_1_)
      • drawProgressBar

        private void drawProgressBar​(MatrixStack p_237836_1_)
      • drawDownloadSpeed

        private void drawDownloadSpeed​(MatrixStack p_237838_1_)
      • drawDownloadSpeed0

        private void drawDownloadSpeed0​(MatrixStack p_237833_1_,
                                        long p_237833_2_)
      • downloadSave

        private void downloadSave()
      • downloadCancelled

        private void downloadCancelled()