Package net.minecraft.data
Class HashCache
java.lang.Object
net.minecraft.data.HashCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Pathprivate final Map<DataProvider,HashCache.CacheUpdater> private final Map<DataProvider,HashCache.ProviderCache> private static final Stringprivate final int(package private) static final org.slf4j.Loggerprivate final Pathprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionHashCache(Path p_236087_, List<DataProvider> p_236088_, WorldVersion p_236089_) -
Method Summary
Modifier and TypeMethodDescriptionprivate PathgetProviderCachePath(DataProvider p_236110_) getUpdater(DataProvider p_236108_) voidprivate static HashCache.ProviderCachebooleanshouldRunInThisVersion(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
-