Package net.minecraft.util
Class Downloader
java.lang.Object
net.minecraft.util.Downloader
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/util/Downloaderintermediary net/minecraft/class_9028official asl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordprivate static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pathprivate final TaskExecutor<Runnable> private static final Loggerprivate final LogWriter<Downloader.LogEntry> private static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private Downloader.DownloadResultdownload(Downloader.Config config, Map<UUID, Downloader.DownloadEntry> entries) downloadAsync(Downloader.Config config, Map<UUID, Downloader.DownloadEntry> entries) private com.mojang.datafixers.util.Either<String, Downloader.FileInfo> getFileInfo(Path path)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/util/Downloader;LOGGER:Lorg/slf4j/Logger;intermediary field_47572Lnet/minecraft/class_9028;field_47572:Lorg/slf4j/Logger;official aLasl;a:Lorg/slf4j/Logger;
-
MAX_RETAINED_CACHE_FILES
private static final int MAX_RETAINED_CACHE_FILES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RETAINED_CACHE_FILESLnet/minecraft/util/Downloader;MAX_RETAINED_CACHE_FILES:Iintermediary field_47679Lnet/minecraft/class_9028;field_47679:Iofficial bLasl;b:I
-
directory
- Mappings:
Namespace Name Mixin selector named directoryLnet/minecraft/util/Downloader;directory:Ljava/nio/file/Path;intermediary field_47573Lnet/minecraft/class_9028;field_47573:Ljava/nio/file/Path;official cLasl;c:Ljava/nio/file/Path;
-
logWriter
- Mappings:
Namespace Name Mixin selector named logWriterLnet/minecraft/util/Downloader;logWriter:Lnet/minecraft/util/logging/LogWriter;intermediary field_47574Lnet/minecraft/class_9028;field_47574:Lnet/minecraft/class_7935;official dLasl;d:Lbly;
-
executor
- Mappings:
Namespace Name Mixin selector named executorLnet/minecraft/util/Downloader;executor:Lnet/minecraft/util/thread/TaskExecutor;intermediary field_47575Lnet/minecraft/class_9028;field_47575:Lnet/minecraft/class_3846;official eLasl;e:Lbpk;
-
-
Constructor Details
-
Downloader
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/Downloader;<init>(Ljava/nio/file/Path;)Vintermediary <init>Lnet/minecraft/class_9028;<init>(Ljava/nio/file/Path;)Vofficial <init>Lasl;<init>(Ljava/nio/file/Path;)V
-
-
Method Details
-
download
private Downloader.DownloadResult download(Downloader.Config config, Map<UUID, Downloader.DownloadEntry> entries) - Mappings:
Namespace Name Mixin selector named downloadLnet/minecraft/util/Downloader;download(Lnet/minecraft/util/Downloader$Config;Ljava/util/Map;)Lnet/minecraft/util/Downloader$DownloadResult;intermediary method_55488Lnet/minecraft/class_9028;method_55488(Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Lnet/minecraft/class_9028$class_9030;official bLasl;b(Lasl$a;Ljava/util/Map;)Lasl$b;
-
getFileInfo
- Mappings:
Namespace Name Mixin selector named getFileInfoLnet/minecraft/util/Downloader;getFileInfo(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;intermediary method_55487Lnet/minecraft/class_9028;method_55487(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;official aLasl;a(Ljava/nio/file/Path;)Lcom/mojang/datafixers/util/Either;
-
downloadAsync
public CompletableFuture<Downloader.DownloadResult> downloadAsync(Downloader.Config config, Map<UUID, Downloader.DownloadEntry> entries) - Mappings:
Namespace Name Mixin selector named downloadAsyncLnet/minecraft/util/Downloader;downloadAsync(Lnet/minecraft/util/Downloader$Config;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;intermediary method_55486Lnet/minecraft/class_9028;method_55486(Lnet/minecraft/class_9028$class_9029;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;official aLasl;a(Lasl$a;Ljava/util/Map;)Ljava/util/concurrent/CompletableFuture;
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-