类 RealmsUploadScreen

所有已实现的接口:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsUploadScreen extends RealmsScreen
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • UPLOAD_LOCK

      private static final ReentrantLock UPLOAD_LOCK
    • BAR_WIDTH

      private static final int BAR_WIDTH
      另请参阅:
    • BAR_TOP

      private static final int BAR_TOP
      另请参阅:
    • BAR_BOTTOM

      private static final int BAR_BOTTOM
      另请参阅:
    • BAR_BORDER

      private static final int BAR_BORDER
      另请参阅:
    • DOTS

      private static final String[] DOTS
    • VERIFYING_TEXT

      private static final Component VERIFYING_TEXT
    • lastScreen

      private final RealmsResetWorldScreen lastScreen
    • selectedLevel

      private final LevelSummary selectedLevel
    • worldId

      private final long worldId
    • slotId

      private final int slotId
    • uploadStatus

      private final UploadStatus uploadStatus
    • narrationRateLimiter

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

      @Nullable private volatile Component[] errorMessage
    • status

      private volatile Component status
    • progress

      private volatile 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

      @Nullable private Long previousWrittenBytes
    • previousTimeSnapshot

      @Nullable private Long previousTimeSnapshot
    • bytesPersSecond

      private long bytesPersSecond
    • callback

      private final Runnable callback
  • 构造器详细资料

  • 方法详细资料

    • init

      public void init()
      覆盖:
      init 在类中 Screen
    • onBack

      private void onBack()
    • onCancel

      private void onCancel()
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      指定者:
      keyPressed 在接口中 ContainerEventHandler
      指定者:
      keyPressed 在接口中 GuiEventListener
      覆盖:
      keyPressed 在类中 Screen
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      指定者:
      render 在接口中 Renderable
      覆盖:
      render 在类中 Screen
    • drawDots

      private void drawDots(GuiGraphics pGuiGraphics)
    • drawProgressBar

      private void drawProgressBar(GuiGraphics pGuiGraphics)
    • drawUploadSpeed

      private void drawUploadSpeed(GuiGraphics pGuiGraphics)
    • drawUploadSpeed0

      private void drawUploadSpeed0(GuiGraphics pGuiGraphics, long pBytesPerSecond)
    • tick

      public void tick()
      覆盖:
      tick 在类中 Screen
    • createProgressNarrationMessage

      private Component createProgressNarrationMessage()
    • upload

      private void upload()
    • setErrorMessage

      private void setErrorMessage(Component... pErrorMessage)
    • uploadCancelled

      private void uploadCancelled()
    • verify

      private boolean verify(File pFile)
    • tarGzipArchive

      private File tarGzipArchive(File pFile) throws IOException
      抛出:
      IOException
    • addFileToTarGz

      private void addFileToTarGz(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream pTarArchiveOutputStream, String pPathname, String p_90110_, boolean p_90111_) throws IOException
      抛出:
      IOException