Package net.minecraft.server.packs
Class DownloadQueue
java.lang.Object
net.minecraft.server.packs.DownloadQueue
- All Implemented Interfaces:
- AutoCloseable
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record(package private) static final record(package private) static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Pathprivate final JsonEventLog<DownloadQueue.LogEntry>private static final org.slf4j.Loggerprivate static final intprivate final ProcessorMailbox<Runnable>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()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.BatchResultrunDownload(DownloadQueue.BatchConfig p_314482_, Map<UUID, DownloadQueue.DownloadRequest> p_314452_) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
MAX_KEPT_PACKSprivate static final int MAX_KEPT_PACKS- See Also:
 
- 
cacheDir
- 
eventLog
- 
tasks
 
- 
- 
Constructor Details- 
DownloadQueue- Throws:
- IOException
 
 
- 
- 
Method Details- 
runDownloadprivate DownloadQueue.BatchResult runDownload(DownloadQueue.BatchConfig p_314482_, Map<UUID, DownloadQueue.DownloadRequest> p_314452_) 
- 
getFileInfoprivate com.mojang.datafixers.util.Either<String,DownloadQueue.FileInfoEntry> getFileInfo(Path p_314601_) 
- 
downloadBatchpublic CompletableFuture<DownloadQueue.BatchResult> downloadBatch(DownloadQueue.BatchConfig p_314536_, Map<UUID, DownloadQueue.DownloadRequest> p_314654_) 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
-