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 TypeFieldDescription(package private) final HashCache.ProviderCacheprivate final HashCache.ProviderCache(package private) intFields inherited from interface net.minecraft.data.CachedOutput
NO_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
-
oldCache
-
newCache
-
writes
int writes
-
-
Constructor Details
-
CacheUpdater
CacheUpdater(String p_236117_, HashCache.ProviderCache p_236118_)
-
-
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
-