Class FileDownload

java.lang.Object
com.mojang.realmsclient.client.FileDownload

public class FileDownload extends Object
  • Field Details

    • LOGGER

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

      private volatile boolean cancelled
    • finished

      private volatile boolean finished
    • error

      private volatile boolean error
    • extracting

      private volatile boolean extracting
    • tempFile

      private volatile File tempFile
    • resourcePackPath

      private volatile File resourcePackPath
    • request

      private volatile org.apache.http.client.methods.HttpGet request
    • currentThread

      private Thread currentThread
    • requestConfig

      private final org.apache.http.client.config.RequestConfig requestConfig
    • INVALID_FILE_NAMES

      private static final String[] INVALID_FILE_NAMES
  • Constructor Details

    • FileDownload

      public FileDownload()
  • Method Details

    • contentLength

      public long contentLength(String p_224827_1_)
    • download

      public void download(WorldDownload p_237688_1_, String p_237688_2_, RealmsDownloadLatestWorldScreen.DownloadStatus p_237688_3_, SaveFormat p_237688_4_)
    • cancel

      public void cancel()
    • isFinished

      public boolean isFinished()
    • isError

      public boolean isError()
    • isExtracting

      public boolean isExtracting()
    • findAvailableFolderName

      public static String findAvailableFolderName(String p_224828_0_)
    • untarGzipArchive

      private void untarGzipArchive(String p_237690_1_, File p_237690_2_, SaveFormat p_237690_3_) throws IOException
      Throws:
      IOException
    • deletePlayerTag

      private static void deletePlayerTag(File p_237689_0_)