Package net.minecraft.server.packs
Class DownloadQueue
java.lang.Object
net.minecraft.server.packs.DownloadQueue
- All Implemented Interfaces:
 AutoCloseable
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record(package private) static final record(package private) static final record - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pathprivate final JsonEventLog<DownloadQueue.LogEntry>private static final org.slf4j.Loggerprivate static final intprivate final ProcessorMailbox<Runnable> - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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
- 
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:
 closein interfaceAutoCloseable- Throws:
 IOException
 
 -