类 RealmsDownloadLatestWorldScreen

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

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

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • DOWNLOAD_LOCK

      private static final ReentrantLock DOWNLOAD_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
      另请参阅:
    • lastScreen

      private final Screen lastScreen
    • worldDownload

      private final WorldDownload worldDownload
    • downloadTitle

      private final Component downloadTitle
    • narrationRateLimiter

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

      private Button cancelButton
    • worldName

      private final String worldName
    • downloadStatus

      private final RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus
    • errorMessage

      @Nullable private volatile Component errorMessage
    • status

      private volatile Component status
    • progress

      @Nullable private volatile String progress
    • cancelled

      private volatile boolean cancelled
    • showDots

      private volatile boolean showDots
    • finished

      private volatile boolean finished
    • extracting

      private volatile boolean extracting
    • previousWrittenBytes

      @Nullable private Long previousWrittenBytes
    • previousTimeSnapshot

      @Nullable private Long previousTimeSnapshot
    • bytesPersSecond

      private long bytesPersSecond
    • animTick

      private int animTick
    • DOTS

      private static final String[] DOTS
    • dotIndex

      private int dotIndex
    • checked

      private boolean checked
    • callback

      private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
  • 构造器详细资料

    • RealmsDownloadLatestWorldScreen

      public RealmsDownloadLatestWorldScreen(Screen pLastScreen, WorldDownload pWorldDownload, String pWorldName, it.unimi.dsi.fastutil.booleans.BooleanConsumer pCallback)
  • 方法详细资料

    • init

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

      private void checkDownloadSize()
    • getContentLength

      private long getContentLength(String pUri)
    • tick

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

      private Component createProgressNarrationMessage()
    • keyPressed

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

      private void backButtonClicked()
    • 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)
    • drawDownloadSpeed

      private void drawDownloadSpeed(GuiGraphics pGuiGraphics)
    • drawDownloadSpeed0

      private void drawDownloadSpeed0(GuiGraphics pGuiGraphics, long pBytesPerSecond)
    • downloadSave

      private void downloadSave()
    • downloadCancelled

      private void downloadCancelled()