Package net.minecraft.server.packs
Class DownloadQueue
java.lang.Object
net.minecraft.server.packs.DownloadQueue
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
(package private) static final record
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Path
private final JsonEventLog<DownloadQueue.LogEntry>
private static final org.slf4j.Logger
private static final int
private final ProcessorMailbox<Runnable>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
downloadBatch
(DownloadQueue.BatchConfig p_312532_, Map<UUID, DownloadQueue.DownloadRequest> p_312658_) private com.mojang.datafixers.util.Either<String,
DownloadQueue.FileInfoEntry> getFileInfo
(Path p_310185_) private DownloadQueue.BatchResult
runDownload
(DownloadQueue.BatchConfig p_312964_, Map<UUID, DownloadQueue.DownloadRequest> p_311709_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- See Also:
-
cacheDir
-
eventLog
-
tasks
-
-
Constructor Details
-
DownloadQueue
- Throws:
IOException
-
-
Method Details
-
runDownload
private DownloadQueue.BatchResult runDownload(DownloadQueue.BatchConfig p_312964_, Map<UUID, DownloadQueue.DownloadRequest> p_311709_) -
getFileInfo
private com.mojang.datafixers.util.Either<String,DownloadQueue.FileInfoEntry> getFileInfo(Path p_310185_) -
downloadBatch
public CompletableFuture<DownloadQueue.BatchResult> downloadBatch(DownloadQueue.BatchConfig p_312532_, Map<UUID, DownloadQueue.DownloadRequest> p_312658_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-