类 HashCache.CacheUpdater
java.lang.Object
net.minecraft.data.HashCache.CacheUpdater
- 所有已实现的接口:
CachedOutput
- 封闭类:
HashCache
-
字段概要
字段修饰符和类型字段说明private boolean
private final HashCache.ProviderCacheBuilder
private final HashCache.ProviderCache
private final String
private final AtomicInteger
从接口继承的字段 net.minecraft.data.CachedOutput
NO_CACHE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明close()
private 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_)
-
字段详细资料
-
provider
-
oldCache
-
newCache
-
writes
-
closed
private volatile boolean closed
-
-
构造器详细资料
-
CacheUpdater
CacheUpdater(String p_253971_, String p_254002_, HashCache.ProviderCache p_254244_)
-
-
方法详细资料
-
shouldWrite
-
writeIfNeeded
public void writeIfNeeded(Path p_236123_, byte[] p_236124_, com.google.common.hash.HashCode p_236125_) throws IOException - 指定者:
writeIfNeeded
在接口中CachedOutput
- 抛出:
IOException
-
close
-