Class FileDownload

java.lang.Object
net.minecraft.client.realms.FileDownload

@Environment(CLIENT) public class FileDownload extends Object
Mappings:
Namespace Name
named net/minecraft/client/realms/FileDownload
intermediary net/minecraft/class_4333
official fye
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/FileDownload;LOGGER:Lorg/slf4j/Logger;
      intermediary field_19522 Lnet/minecraft/class_4333;field_19522:Lorg/slf4j/Logger;
      official a Lfye;a:Lorg/slf4j/Logger;
    • INVALID_FILE_NAMES

      private static final String[] INVALID_FILE_NAMES
      Mappings:
      Namespace Name Mixin selector
      named INVALID_FILE_NAMES Lnet/minecraft/client/realms/FileDownload;INVALID_FILE_NAMES:[Ljava/lang/String;
      intermediary field_19532 Lnet/minecraft/class_4333;field_19532:[Ljava/lang/String;
      official j Lfye;j:[Ljava/lang/String;
    • cancelled

      private volatile boolean cancelled
      Mappings:
      Namespace Name Mixin selector
      named cancelled Lnet/minecraft/client/realms/FileDownload;cancelled:Z
      intermediary field_19523 Lnet/minecraft/class_4333;field_19523:Z
      official b Lfye;b:Z
    • finished

      private volatile boolean finished
      Mappings:
      Namespace Name Mixin selector
      named finished Lnet/minecraft/client/realms/FileDownload;finished:Z
      intermediary field_19524 Lnet/minecraft/class_4333;field_19524:Z
      official c Lfye;c:Z
    • error

      private volatile boolean error
      Mappings:
      Namespace Name Mixin selector
      named error Lnet/minecraft/client/realms/FileDownload;error:Z
      intermediary field_19525 Lnet/minecraft/class_4333;field_19525:Z
      official d Lfye;d:Z
    • extracting

      private volatile boolean extracting
      Mappings:
      Namespace Name Mixin selector
      named extracting Lnet/minecraft/client/realms/FileDownload;extracting:Z
      intermediary field_19526 Lnet/minecraft/class_4333;field_19526:Z
      official e Lfye;e:Z
    • backupFile

      private volatile File backupFile
      Mappings:
      Namespace Name Mixin selector
      named backupFile Lnet/minecraft/client/realms/FileDownload;backupFile:Ljava/io/File;
      intermediary field_20490 Lnet/minecraft/class_4333;field_20490:Ljava/io/File;
      official f Lfye;f:Ljava/io/File;
    • resourcePackPath

      private volatile File resourcePackPath
      Mappings:
      Namespace Name Mixin selector
      named resourcePackPath Lnet/minecraft/client/realms/FileDownload;resourcePackPath:Ljava/io/File;
      intermediary field_19528 Lnet/minecraft/class_4333;field_19528:Ljava/io/File;
      official g Lfye;g:Ljava/io/File;
    • field_64188

      private volatile @Nullable CompletableFuture<?> field_64188
      Mappings:
      Namespace Name Mixin selector
      named field_64188 Lnet/minecraft/client/realms/FileDownload;field_64188:Ljava/util/concurrent/CompletableFuture;
      intermediary field_64188 Lnet/minecraft/class_4333;field_64188:Ljava/util/concurrent/CompletableFuture;
      official h Lfye;h:Ljava/util/concurrent/CompletableFuture;
    • currentThread

      private Thread currentThread
      Mappings:
      Namespace Name Mixin selector
      named currentThread Lnet/minecraft/client/realms/FileDownload;currentThread:Ljava/lang/Thread;
      intermediary field_19530 Lnet/minecraft/class_4333;field_19530:Ljava/lang/Thread;
      official i Lfye;i:Ljava/lang/Thread;
  • Constructor Details

    • FileDownload

      public FileDownload()
  • Method Details

    • method_76238

      private <T> @Nullable T method_76238(CompletableFuture<T> completableFuture) throws Throwable
      Throws:
      Throwable
      Mappings:
      Namespace Name Mixin selector
      named method_76238 Lnet/minecraft/client/realms/FileDownload;method_76238(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/Object;
      intermediary method_76238 Lnet/minecraft/class_4333;method_76238(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/Object;
      official a Lfye;a(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/Object;
    • method_76240

      private static HttpClient method_76240()
      Mappings:
      Namespace Name Mixin selector
      named method_76240 Lnet/minecraft/client/realms/FileDownload;method_76240()Ljava/net/http/HttpClient;
      intermediary method_76240 Lnet/minecraft/class_4333;method_76240()Ljava/net/http/HttpClient;
      official e Lfye;e()Ljava/net/http/HttpClient;
    • method_76239

      private static HttpRequest.Builder method_76239(String string)
      Mappings:
      Namespace Name Mixin selector
      named method_76239 Lnet/minecraft/client/realms/FileDownload;method_76239(Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
      intermediary method_76239 Lnet/minecraft/class_4333;method_76239(Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
      official c Lfye;c(Ljava/lang/String;)Ljava/net/http/HttpRequest$Builder;
    • contentLength

      @CheckReturnValue public static OptionalLong contentLength(String string)
      Mappings:
      Namespace Name Mixin selector
      named contentLength Lnet/minecraft/client/realms/FileDownload;contentLength(Ljava/lang/String;)Ljava/util/OptionalLong;
      intermediary method_20955 Lnet/minecraft/class_4333;method_20955(Ljava/lang/String;)Ljava/util/OptionalLong;
      official a Lfye;a(Ljava/lang/String;)Ljava/util/OptionalLong;
    • downloadWorld

      public void downloadWorld(WorldDownload worldDownload, String message, RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus, LevelStorage storage)
      Mappings:
      Namespace Name Mixin selector
      named downloadWorld Lnet/minecraft/client/realms/FileDownload;downloadWorld(Lnet/minecraft/client/realms/dto/WorldDownload;Ljava/lang/String;Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;Lnet/minecraft/world/level/storage/LevelStorage;)V
      intermediary method_22100 Lnet/minecraft/class_4333;method_22100(Lnet/minecraft/class_4889;Ljava/lang/String;Lnet/minecraft/class_4392$class_4393;Lnet/minecraft/class_32;)V
      official a Lfye;a(Lgag;Ljava/lang/String;Lgaz$a;Lflv;)V
    • method_76236

      private void method_76236(RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus, HttpClient httpClient, String string, File file) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named method_76236 Lnet/minecraft/client/realms/FileDownload;method_76236(Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;Ljava/net/http/HttpClient;Ljava/lang/String;Ljava/io/File;)V
      intermediary method_76236 Lnet/minecraft/class_4333;method_76236(Lnet/minecraft/class_4392$class_4393;Ljava/net/http/HttpClient;Ljava/lang/String;Ljava/io/File;)V
      official a Lfye;a(Lgaz$a;Ljava/net/http/HttpClient;Ljava/lang/String;Ljava/io/File;)V
    • cancel

      public void cancel()
      Mappings:
      Namespace Name Mixin selector
      named cancel Lnet/minecraft/client/realms/FileDownload;cancel()V
      intermediary method_20948 Lnet/minecraft/class_4333;method_20948()V
      official a Lfye;a()V
    • isFinished

      public boolean isFinished()
      Mappings:
      Namespace Name Mixin selector
      named isFinished Lnet/minecraft/client/realms/FileDownload;isFinished()Z
      intermediary method_20957 Lnet/minecraft/class_4333;method_20957()Z
      official b Lfye;b()Z
    • isError

      public boolean isError()
      Mappings:
      Namespace Name Mixin selector
      named isError Lnet/minecraft/client/realms/FileDownload;isError()Z
      intermediary method_20961 Lnet/minecraft/class_4333;method_20961()Z
      official c Lfye;c()Z
    • isExtracting

      public boolean isExtracting()
      Mappings:
      Namespace Name Mixin selector
      named isExtracting Lnet/minecraft/client/realms/FileDownload;isExtracting()Z
      intermediary method_20964 Lnet/minecraft/class_4333;method_20964()Z
      official d Lfye;d()Z
    • findAvailableFolderName

      public static String findAvailableFolderName(String folder)
      Mappings:
      Namespace Name Mixin selector
      named findAvailableFolderName Lnet/minecraft/client/realms/FileDownload;findAvailableFolderName(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_20960 Lnet/minecraft/class_4333;method_20960(Ljava/lang/String;)Ljava/lang/String;
      official b Lfye;b(Ljava/lang/String;)Ljava/lang/String;
    • untarGzipArchive

      private void untarGzipArchive(String name, @Nullable File archive, LevelStorage storage) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named untarGzipArchive Lnet/minecraft/client/realms/FileDownload;untarGzipArchive(Ljava/lang/String;Ljava/io/File;Lnet/minecraft/world/level/storage/LevelStorage;)V
      intermediary method_20956 Lnet/minecraft/class_4333;method_20956(Ljava/lang/String;Ljava/io/File;Lnet/minecraft/class_32;)V
      official a Lfye;a(Ljava/lang/String;Ljava/io/File;Lflv;)V
    • method_76237

      private void method_76237(String string, File file, LevelStorage levelStorage, RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus)
      Mappings:
      Namespace Name Mixin selector
      named method_76237 Lnet/minecraft/client/realms/FileDownload;method_76237(Ljava/lang/String;Ljava/io/File;Lnet/minecraft/world/level/storage/LevelStorage;Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;)V
      intermediary method_76237 Lnet/minecraft/class_4333;method_76237(Ljava/lang/String;Ljava/io/File;Lnet/minecraft/class_32;Lnet/minecraft/class_4392$class_4393;)V
      official a Lfye;a(Ljava/lang/String;Ljava/io/File;Lflv;Lgaz$a;)V
    • method_76235

      private void method_76235(RealmsDownloadLatestWorldScreen.DownloadStatus downloadStatus, File file, WorldDownload worldDownload)
      Mappings:
      Namespace Name Mixin selector
      named method_76235 Lnet/minecraft/client/realms/FileDownload;method_76235(Lnet/minecraft/client/realms/gui/screen/RealmsDownloadLatestWorldScreen$DownloadStatus;Ljava/io/File;Lnet/minecraft/client/realms/dto/WorldDownload;)V
      intermediary method_76235 Lnet/minecraft/class_4333;method_76235(Lnet/minecraft/class_4392$class_4393;Ljava/io/File;Lnet/minecraft/class_4889;)V
      official a Lfye;a(Lgaz$a;Ljava/io/File;Lgag;)V