类 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 pKey, com.google.common.hash.HashCode pValue) void
writeIfNeeded
(Path pFilePath, byte[] pData, com.google.common.hash.HashCode pHashCode)
-
字段详细资料
-
provider
-
oldCache
-
newCache
-
writes
-
closed
private volatile boolean closed
-
-
构造器详细资料
-
CacheUpdater
CacheUpdater(String pProvider, String pVersion, HashCache.ProviderCache pOldCache)
-
-
方法详细资料
-
shouldWrite
-
writeIfNeeded
public void writeIfNeeded(Path pFilePath, byte[] pData, com.google.common.hash.HashCode pHashCode) throws IOException - 指定者:
writeIfNeeded
在接口中CachedOutput
- 抛出:
IOException
-
close
-