类 HashCache
java.lang.Object
net.minecraft.data.HashCache
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
(专用程序包) static final record
(专用程序包) static final record
static interface
static final record
-
字段概要
字段修饰符和类型字段说明private final Path
private final Map<String,
HashCache.ProviderCache> private static final String
private final int
(专用程序包) static final org.slf4j.Logger
private final Map<String,
HashCache.ProviderCache> private final Path
private final String
private int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
applyUpdate
(HashCache.UpdateResult pUpdateResult) generateUpdate
(String pProvider, HashCache.UpdateFunction pUpdateFunction) private Path
getProviderCachePath
(String pProvider) void
private static HashCache.ProviderCache
boolean
shouldRunInThisVersion
(String pProvider)
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
HEADER_MARKER
- 另请参阅:
-
rootDir
-
cacheDir
-
versionId
-
caches
-
originalCaches
-
cachesToWrite
-
cachePaths
-
initialCount
private final int initialCount -
writes
private int writes
-
-
构造器详细资料
-
HashCache
public HashCache(Path pRootDir, Collection<String> pProviders, WorldVersion pVersion) throws IOException - 抛出:
IOException
-
-
方法详细资料
-
getProviderCachePath
-
readCache
-
shouldRunInThisVersion
-
generateUpdate
public CompletableFuture<HashCache.UpdateResult> generateUpdate(String pProvider, HashCache.UpdateFunction pUpdateFunction) -
applyUpdate
-
purgeStaleAndWrite
- 抛出:
IOException
-