Package net.minecraft.data
Class DataCache
java.lang.Object
net.minecraft.data.DataCache
- Mappings:
Namespace Name official ji
intermediary net/minecraft/class_2408
named net/minecraft/data/DataCache
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private class
private static final record
static interface
static final record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataCache
(Path root, Collection<String> providerNames, GameVersion gameVersion) -
Method Summary
Modifier and TypeMethodDescriptionprivate Path
boolean
isVersionDifferent
(String providerName) private static DataCache.CachedData
parseOrCreateCache
(Path root, Path dataProviderPath) run
(String providerName, DataCache.Runner runner) void
store
(DataCache.RunResult runResult) void
write()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lji;a:Lorg/slf4j/Logger;
intermediary field_11287
Lnet/minecraft/class_2408;field_11287:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/data/DataCache;LOGGER:Lorg/slf4j/Logger;
-
HEADER
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lji;b:Ljava/lang/String;
intermediary field_38912
Lnet/minecraft/class_2408;field_38912:Ljava/lang/String;
named HEADER
Lnet/minecraft/data/DataCache;HEADER:Ljava/lang/String;
-
root
- Mappings:
Namespace Name Mixin selector official c
Lji;c:Ljava/nio/file/Path;
intermediary field_11285
Lnet/minecraft/class_2408;field_11285:Ljava/nio/file/Path;
named root
Lnet/minecraft/data/DataCache;root:Ljava/nio/file/Path;
-
cachePath
- Mappings:
Namespace Name Mixin selector official d
Lji;d:Ljava/nio/file/Path;
intermediary field_38913
Lnet/minecraft/class_2408;field_38913:Ljava/nio/file/Path;
named cachePath
Lnet/minecraft/data/DataCache;cachePath:Ljava/nio/file/Path;
-
versionName
- Mappings:
Namespace Name Mixin selector official e
Lji;e:Ljava/lang/String;
intermediary field_38914
Lnet/minecraft/class_2408;field_38914:Ljava/lang/String;
named versionName
Lnet/minecraft/data/DataCache;versionName:Ljava/lang/String;
-
cachedDatas
- Mappings:
Namespace Name Mixin selector official f
Lji;f:Ljava/util/Map;
intermediary field_40832
Lnet/minecraft/class_2408;field_40832:Ljava/util/Map;
named cachedDatas
Lnet/minecraft/data/DataCache;cachedDatas:Ljava/util/Map;
-
dataWriters
- Mappings:
Namespace Name Mixin selector official g
Lji;g:Ljava/util/Set;
intermediary field_38916
Lnet/minecraft/class_2408;field_38916:Ljava/util/Set;
named dataWriters
Lnet/minecraft/data/DataCache;dataWriters:Ljava/util/Set;
-
paths
- Mappings:
Namespace Name Mixin selector official h
Lji;h:Ljava/util/Set;
intermediary field_38917
Lnet/minecraft/class_2408;field_38917:Ljava/util/Set;
named paths
Lnet/minecraft/data/DataCache;paths:Ljava/util/Set;
-
totalSize
private final int totalSize- Mappings:
Namespace Name Mixin selector official i
Lji;i:I
intermediary field_38918
Lnet/minecraft/class_2408;field_38918:I
named totalSize
Lnet/minecraft/data/DataCache;totalSize:I
-
totalCacheMissCount
private int totalCacheMissCount- Mappings:
Namespace Name Mixin selector official j
Lji;j:I
intermediary field_40833
Lnet/minecraft/class_2408;field_40833:I
named totalCacheMissCount
Lnet/minecraft/data/DataCache;totalCacheMissCount:I
-
-
Constructor Details
-
DataCache
public DataCache(Path root, Collection<String> providerNames, GameVersion gameVersion) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official <init>
Lji;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lad;)V
intermediary <init>
Lnet/minecraft/class_2408;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lnet/minecraft/class_6489;)V
named <init>
Lnet/minecraft/data/DataCache;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lnet/minecraft/GameVersion;)V
-
-
Method Details
-
getPath
- Mappings:
Namespace Name Mixin selector official b
Lji;b(Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_43353
Lnet/minecraft/class_2408;method_43353(Ljava/lang/String;)Ljava/nio/file/Path;
named getPath
Lnet/minecraft/data/DataCache;getPath(Ljava/lang/String;)Ljava/nio/file/Path;
-
parseOrCreateCache
- Mappings:
Namespace Name Mixin selector official a
Lji;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lji$b;
intermediary method_43348
Lnet/minecraft/class_2408;method_43348(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/class_2408$class_7405;
named parseOrCreateCache
Lnet/minecraft/data/DataCache;parseOrCreateCache(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/data/DataCache$CachedData;
-
isVersionDifferent
- Mappings:
Namespace Name Mixin selector official a
Lji;a(Ljava/lang/String;)Z
intermediary method_43347
Lnet/minecraft/class_2408;method_43347(Ljava/lang/String;)Z
named isVersionDifferent
Lnet/minecraft/data/DataCache;isVersionDifferent(Ljava/lang/String;)Z
-
run
- Mappings:
Namespace Name Mixin selector official a
Lji;a(Ljava/lang/String;Lji$d;)Ljava/util/concurrent/CompletableFuture;
intermediary method_46570
Lnet/minecraft/class_2408;method_46570(Ljava/lang/String;Lnet/minecraft/class_2408$class_7859;)Ljava/util/concurrent/CompletableFuture;
named run
Lnet/minecraft/data/DataCache;run(Ljava/lang/String;Lnet/minecraft/data/DataCache$Runner;)Ljava/util/concurrent/CompletableFuture;
-
store
- Mappings:
Namespace Name Mixin selector official a
Lji;a(Lji$e;)V
intermediary method_46569
Lnet/minecraft/class_2408;method_46569(Lnet/minecraft/class_2408$class_7860;)V
named store
Lnet/minecraft/data/DataCache;store(Lnet/minecraft/data/DataCache$RunResult;)V
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lji;a()V
intermediary method_10326
Lnet/minecraft/class_2408;method_10326()V
named write
Lnet/minecraft/data/DataCache;write()V
-