类 DownloadQueue
java.lang.Object
net.minecraft.server.packs.DownloadQueue
- 所有已实现的接口:
AutoCloseable
-
嵌套类概要
嵌套类修饰符和类型类说明static final record
static final record
static final record
(专用程序包) static final record
(专用程序包) static final record
-
字段概要
字段修饰符和类型字段说明private final Path
private final JsonEventLog
<DownloadQueue.LogEntry> private static final org.slf4j.Logger
private static final int
private final ConsecutiveExecutor
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
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_)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- 另请参阅:
-
cacheDir
-
eventLog
-
tasks
-
-
构造器详细资料
-
DownloadQueue
- 抛出:
IOException
-
-
方法详细资料
-
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
- 指定者:
close
在接口中AutoCloseable
- 抛出:
IOException
-