Package net.minecraft.data
Class HashCache
java.lang.Object
net.minecraft.data.HashCache
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) class(package private) static final record(package private) static final recordstatic interfacestatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Pathprivate final Map<String,HashCache.ProviderCache> private static final Stringprivate final int(package private) static final org.slf4j.Loggerprivate final Map<String,HashCache.ProviderCache> private final Pathprivate final Stringprivate int
- 
Constructor SummaryConstructorsConstructorDescriptionHashCache(Path p_236087_, Collection<String> p_253748_, WorldVersion p_236089_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyUpdate(HashCache.UpdateResult p_253725_) generateUpdate(String p_253944_, HashCache.UpdateFunction p_254321_) private PathgetProviderCachePath(String p_254395_) voidprivate static HashCache.ProviderCachebooleanshouldRunInThisVersion(String p_254319_) 
- 
Field Details- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
HEADER_MARKER- See Also:
 
- 
rootDir
- 
cacheDir
- 
versionId
- 
caches
- 
originalCaches
- 
cachesToWrite
- 
cachePaths
- 
initialCountprivate final int initialCount
- 
writesprivate int writes
 
- 
- 
Constructor Details- 
HashCachepublic HashCache(Path p_236087_, Collection<String> p_253748_, WorldVersion p_236089_) throws IOException - Throws:
- IOException
 
 
- 
- 
Method Details- 
getProviderCachePath
- 
readCache
- 
shouldRunInThisVersion
- 
generateUpdatepublic CompletableFuture<HashCache.UpdateResult> generateUpdate(String p_253944_, HashCache.UpdateFunction p_254321_) 
- 
applyUpdate
- 
purgeStaleAndWrite- Throws:
- IOException
 
 
-