Package net.minecraft.data
Class HashCache
java.lang.Object
net.minecraft.data.HashCache
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Path
private final Map<DataProvider,
HashCache.CacheUpdater> private final Map<DataProvider,
HashCache.ProviderCache> private static final String
private final int
(package private) static final org.slf4j.Logger
private final Path
private final String
-
Constructor Summary
ConstructorDescriptionHashCache
(Path p_236087_, List<DataProvider> p_236088_, WorldVersion p_236089_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Path
getProviderCachePath
(DataProvider p_236110_) getUpdater
(DataProvider p_236108_) void
private static HashCache.ProviderCache
boolean
shouldRunInThisVersion
(DataProvider p_236091_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
HEADER_MARKER
- See Also:
-
rootDir
-
cacheDir
-
versionId
-
existingCaches
-
cachesToWrite
-
cachePaths
-
initialCount
private final int initialCount
-
-
Constructor Details
-
HashCache
public HashCache(Path p_236087_, List<DataProvider> p_236088_, WorldVersion p_236089_) throws IOException - Throws:
IOException
-
-
Method Details
-
getProviderCachePath
-
readCache
-
shouldRunInThisVersion
-
getUpdater
-
purgeStaleAndWrite
- Throws:
IOException
-