Package net.minecraft.data
Class HashCache.CacheUpdater
java.lang.Object
net.minecraft.data.HashCache.CacheUpdater
- All Implemented Interfaces:
CachedOutput
- Enclosing class:
- HashCache
-
Field Summary
Modifier and TypeFieldDescription(package private) final HashCache.ProviderCache
private final HashCache.ProviderCache
(package private) int
Fields inherited from interface net.minecraft.data.CachedOutput
NO_CACHE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
shouldWrite
(Path p_236120_, com.google.common.hash.HashCode p_236121_) void
writeIfNeeded
(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:
writeIfNeeded
in interfaceCachedOutput
- Throws:
IOException
-