Class RealmsUploadScreen

    • Field Detail

      • LOGGER

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

        private static final java.util.concurrent.locks.ReentrantLock UPLOAD_LOCK
      • DOTS

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

        private final long worldId
      • slotId

        private final int slotId
      • narrationRateLimiter

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

        private volatile java.lang.String progress
      • cancelled

        private volatile boolean cancelled
      • uploadFinished

        private volatile boolean uploadFinished
      • showDots

        private volatile boolean showDots
      • uploadStarted

        private volatile boolean uploadStarted
      • backButton

        private Button backButton
      • cancelButton

        private Button cancelButton
      • tickCount

        private int tickCount
      • previousWrittenBytes

        private java.lang.Long previousWrittenBytes
      • previousTimeSnapshot

        private java.lang.Long previousTimeSnapshot
      • bytesPersSecond

        private long bytesPersSecond
      • callback

        private final java.lang.Runnable callback
    • Constructor Detail

      • RealmsUploadScreen

        public RealmsUploadScreen​(long p_i232226_1_,
                                  int p_i232226_3_,
                                  RealmsResetWorldScreen p_i232226_4_,
                                  WorldSummary p_i232226_5_,
                                  java.lang.Runnable p_i232226_6_)
    • Method Detail

      • init

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

        public void removed()
        Overrides:
        removed in class Screen
      • onBack

        private void onBack()
      • onCancel

        private void onCancel()
      • drawDots

        private void drawDots​(MatrixStack p_238086_1_)
      • drawProgressBar

        private void drawProgressBar​(MatrixStack p_238088_1_)
      • drawUploadSpeed

        private void drawUploadSpeed​(MatrixStack p_238089_1_)
      • drawUploadSpeed0

        private void drawUploadSpeed0​(MatrixStack p_238083_1_,
                                      long p_238083_2_)
      • upload

        private void upload()
      • setErrorMessage

        private void setErrorMessage​(ITextComponent... p_238085_1_)
      • uploadCancelled

        private void uploadCancelled()
      • verify

        private boolean verify​(java.io.File p_224692_1_)
      • tarGzipArchive

        private java.io.File tarGzipArchive​(java.io.File p_224675_1_)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • addFileToTarGz

        private void addFileToTarGz​(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_224669_1_,
                                    java.lang.String p_224669_2_,
                                    java.lang.String p_224669_3_,
                                    boolean p_224669_4_)
                             throws java.io.IOException
        Throws:
        java.io.IOException