net.minecraft.data

public class DataCache

net.minecraft.data.HashCache
net.minecraft.data.HashCache
net.minecraft.class_2408
net.minecraft.data.DataCache

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_11287
LOGGER
private static final String
HEADER_MARKER
HEADER_MARKER
field_38912
HEADER
private final Path
rootDir
rootDir
field_11285
root
private final Path
cacheDir
cacheDir
field_38913
cachePath
private final String
versionId
versionId
field_38914
versionName
private final Map<String, DataCache$CachedData>
caches
caches
field_40832
cachedDatas
private final Set<String>
cachesToWrite
cachesToWrite
field_38916
dataWriters
private final Set<Path>
cachePaths
cachePaths
field_38917
paths
private final int
initialCount
initialCount
field_38918
totalSize
private int
writes
writes
field_40833
totalCacheMissCount

Constructor summary

ModifierConstructor
public (Path root, Collection<String> providerNames, GameVersion gameVersion)

Method summary

Modifier and TypeMethod
private Path
getProviderCachePath(String provider)
getProviderCachePath(String provider)
method_43353(String arg0)
getPath(String providerName)
private static DataCache$CachedData
readCache(Path rootDir, Path providerCachePath)
readCache(Path rootDir, Path providerCachePath)
method_43348(Path arg0, Path arg1)
parseOrCreateCache(Path root, Path dataProviderPath)
public boolean
shouldRunInThisVersion(String providerId)
shouldRunInThisVersion(String providerId)
method_43347(String arg0)
isVersionDifferent(String providerName)
public CompletableFuture<DataCache$RunResult>
generateUpdate(String providerId, HashCache$UpdateFunction function)
generateUpdate(String providerId, HashCache$UpdateFunction function)
method_46570(String arg0, class_2408$class_7859 arg1)
run(String providerName, DataCache$Runner runner)
public void
applyUpdate(HashCache$UpdateResult result)
applyUpdate(HashCache$UpdateResult result)
method_46569(class_2408$class_7860 arg0)
store(DataCache$RunResult runResult)
public void
purgeStaleAndWrite()
purgeStaleAndWrite()
method_10326()
write()