Package net.minecraft.data
Class HashCache.CacheUpdater
java.lang.Object
net.minecraft.data.HashCache.CacheUpdater
- All Implemented Interfaces:
CachedOutput
- Enclosing class:
HashCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final HashCache.ProviderCacheBuilderprivate final HashCache.ProviderCacheprivate final Stringprivate final AtomicIntegerFields inherited from interface net.minecraft.data.CachedOutput
NO_CACHE -
Constructor Summary
ConstructorsConstructorDescriptionCacheUpdater(String p_253971_, String p_254002_, HashCache.ProviderCache p_254244_) -
Method Summary
Modifier 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
-
closed
private volatile boolean closed
-
-
Constructor Details
-
CacheUpdater
CacheUpdater(String p_253971_, String p_254002_, HashCache.ProviderCache p_254244_)
-
-
Method Details
-
shouldWrite
-
writeIfNeeded
public void writeIfNeeded(Path p_236123_, byte[] p_236124_, com.google.common.hash.HashCode p_236125_) throws IOException - Specified by:
writeIfNeededin interfaceCachedOutput- Throws:
IOException
-
close
-