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_314536_, Map<UUID, DownloadQueue.DownloadRequest> p_314654_) private com.mojang.datafixers.util.Either
<String, DownloadQueue.FileInfoEntry> getFileInfo
(Path p_314601_) private DownloadQueue.BatchResult
runDownload
(DownloadQueue.BatchConfig p_314482_, Map<UUID, DownloadQueue.DownloadRequest> p_314452_)
-
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_314482_, Map<UUID, DownloadQueue.DownloadRequest> p_314452_) -
getFileInfo
private com.mojang.datafixers.util.Either<String,DownloadQueue.FileInfoEntry> getFileInfo(Path p_314601_) -
downloadBatch
public CompletableFuture<DownloadQueue.BatchResult> downloadBatch(DownloadQueue.BatchConfig p_314536_, Map<UUID, DownloadQueue.DownloadRequest> p_314654_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-