Package net.minecraft.data
Class HashCache.CacheUpdater
java.lang.Object
net.minecraft.data.HashCache.CacheUpdater
- All Implemented Interfaces:
- CachedOutput
- Enclosing class:
- HashCache
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate final HashCache.ProviderCacheBuilderprivate final HashCache.ProviderCacheprivate final Stringprivate final AtomicIntegerFields inherited from interface net.minecraft.data.CachedOutputNO_CACHE
- 
Constructor SummaryConstructorsConstructorDescriptionCacheUpdater(String p_253971_, String p_254002_, HashCache.ProviderCache p_254244_) 
- 
Method SummaryModifier and TypeMethodDescriptionclose()private booleanshouldWrite(Path p_236120_, com.google.common.hash.HashCode p_236121_) voidwriteIfNeeded(Path p_236123_, byte[] p_236124_, com.google.common.hash.HashCode p_236125_) 
- 
Field Details- 
provider
- 
oldCache
- 
newCache
- 
writes
- 
closedprivate volatile boolean closed
 
- 
- 
Constructor Details- 
CacheUpdaterCacheUpdater(String p_253971_, String p_254002_, HashCache.ProviderCache p_254244_) 
 
- 
- 
Method Details- 
shouldWrite
- 
writeIfNeededpublic void writeIfNeeded(Path p_236123_, byte[] p_236124_, com.google.common.hash.HashCode p_236125_) throws IOException - Specified by:
- writeIfNeededin interface- CachedOutput
- Throws:
- IOException
 
- 
close
 
-