Class Downloader

java.lang.Object
net.minecraft.util.Downloader
All Implemented Interfaces:
AutoCloseable

public class Downloader extends Object implements AutoCloseable
Mappings:
Namespace Name
official aos
intermediary net/minecraft/class_9028
named net/minecraft/util/Downloader
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Laos;a:Lorg/slf4j/Logger;
      intermediary field_47572 Lnet/minecraft/class_9028;field_47572:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/util/Downloader;LOGGER:Lorg/slf4j/Logger;
    • MAX_RETAINED_CACHE_FILES

      private static final int MAX_RETAINED_CACHE_FILES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Laos;b:I
      intermediary field_47679 Lnet/minecraft/class_9028;field_47679:I
      named MAX_RETAINED_CACHE_FILES Lnet/minecraft/util/Downloader;MAX_RETAINED_CACHE_FILES:I
    • directory

      private final Path directory
      Mappings:
      Namespace Name Mixin selector
      official c Laos;c:Ljava/nio/file/Path;
      intermediary field_47573 Lnet/minecraft/class_9028;field_47573:Ljava/nio/file/Path;
      named directory Lnet/minecraft/util/Downloader;directory:Ljava/nio/file/Path;
    • logWriter

      private final LogWriter<Downloader.LogEntry> logWriter
      Mappings:
      Namespace Name Mixin selector
      official d Laos;d:Lbgf;
      intermediary field_47574 Lnet/minecraft/class_9028;field_47574:Lnet/minecraft/class_7935;
      named logWriter Lnet/minecraft/util/Downloader;logWriter:Lnet/minecraft/util/logging/LogWriter;
    • executor

      private final TaskExecutor<Runnable> executor
      Mappings:
      Namespace Name Mixin selector
      official e Laos;e:Lbiu;
      intermediary field_47575 Lnet/minecraft/class_9028;field_47575:Lnet/minecraft/class_3846;
      named executor Lnet/minecraft/util/Downloader;executor:Lnet/minecraft/util/thread/TaskExecutor;
  • Constructor Details

    • Downloader

      public Downloader(Path directory) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Laos;<init>(Ljava/nio/file/Path;)V
      intermediary <init> Lnet/minecraft/class_9028;<init>(Ljava/nio/file/Path;)V
      named <init> Lnet/minecraft/util/Downloader;<init>(Ljava/nio/file/Path;)V
  • Method Details

    • download

      Mappings:
      Namespace Name Mixin selector
      official b Laos;b(Laos$a;Ljava/util/Map;)Laos$b;
      intermediary method_55488 Lnet/minecraft/class_9028;method_55488(Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Lnet/minecraft/class_9028$class_9030;
      named download Lnet/minecraft/util/Downloader;download(Lnet/minecraft/util/Downloader$Config;Ljava/util/Map;)Lnet/minecraft/util/Downloader$DownloadResult;
    • getFileInfo

      private com.mojang.datafixers.util.Either<String,Downloader.FileInfo> getFileInfo(Path path)
      Mappings:
      Namespace Name Mixin selector
      official a Laos;a(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;
      intermediary method_55487 Lnet/minecraft/class_9028;method_55487(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;
      named getFileInfo Lnet/minecraft/util/Downloader;getFileInfo(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;
    • downloadAsync

      Mappings:
      Namespace Name Mixin selector
      official a Laos;a(Laos$a;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_55486 Lnet/minecraft/class_9028;method_55486(Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;
      named downloadAsync Lnet/minecraft/util/Downloader;downloadAsync(Lnet/minecraft/util/Downloader$Config;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException