Package net.minecraft.data
Class DataCache
java.lang.Object
net.minecraft.data.DataCache
- Mappings:
Namespace Name official ja
intermediary net/minecraft/class_2408
named net/minecraft/data/DataCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<DataProvider,
DataCache.CachedData> private final Path
private final Map<DataProvider,
DataCache.CachedDataWriter> private static final String
(package private) static final Logger
private final Path
private final int
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionDataCache
(Path root, List<DataProvider> dataProviders, GameVersion gameVersion) -
Method Summary
Modifier and TypeMethodDescriptiongetOrCreateWriter
(DataProvider dataProvider) private Path
getPath
(DataProvider dataProvider) boolean
isVersionDifferent
(DataProvider dataProvider) private static DataCache.CachedData
parseOrCreateCache
(Path root, Path dataProviderPath) void
write()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lja;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
Lja;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
Lja;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
Lja;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
Lja;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
Lja;f:Ljava/util/Map;
intermediary field_38915
Lnet/minecraft/class_2408;field_38915:Ljava/util/Map;
named cachedDatas
Lnet/minecraft/data/DataCache;cachedDatas:Ljava/util/Map;
-
dataWriters
- Mappings:
Namespace Name Mixin selector official g
Lja;g:Ljava/util/Map;
intermediary field_38916
Lnet/minecraft/class_2408;field_38916:Ljava/util/Map;
named dataWriters
Lnet/minecraft/data/DataCache;dataWriters:Ljava/util/Map;
-
paths
- Mappings:
Namespace Name Mixin selector official h
Lja;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
Lja;i:I
intermediary field_38918
Lnet/minecraft/class_2408;field_38918:I
named totalSize
Lnet/minecraft/data/DataCache;totalSize:I
-
-
Constructor Details
-
DataCache
public DataCache(Path root, List<DataProvider> dataProviders, GameVersion gameVersion) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official <init>
Lja;<init>(Ljava/nio/file/Path;Ljava/util/List;Lae;)V
intermediary <init>
Lnet/minecraft/class_2408;<init>(Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/class_6489;)V
named <init>
Lnet/minecraft/data/DataCache;<init>(Ljava/nio/file/Path;Ljava/util/List;Lnet/minecraft/GameVersion;)V
-
-
Method Details
-
getPath
- Mappings:
Namespace Name Mixin selector official c
Lja;c(Liz;)Ljava/nio/file/Path;
intermediary method_43353
Lnet/minecraft/class_2408;method_43353(Lnet/minecraft/class_2405;)Ljava/nio/file/Path;
named getPath
Lnet/minecraft/data/DataCache;getPath(Lnet/minecraft/data/DataProvider;)Ljava/nio/file/Path;
-
parseOrCreateCache
- Mappings:
Namespace Name Mixin selector official a
Lja;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lja$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
Lja;a(Liz;)Z
intermediary method_43347
Lnet/minecraft/class_2408;method_43347(Lnet/minecraft/class_2405;)Z
named isVersionDifferent
Lnet/minecraft/data/DataCache;isVersionDifferent(Lnet/minecraft/data/DataProvider;)Z
-
getOrCreateWriter
- Mappings:
Namespace Name Mixin selector official b
Lja;b(Liz;)Lix;
intermediary method_43352
Lnet/minecraft/class_2408;method_43352(Lnet/minecraft/class_2405;)Lnet/minecraft/class_7403;
named getOrCreateWriter
Lnet/minecraft/data/DataCache;getOrCreateWriter(Lnet/minecraft/data/DataProvider;)Lnet/minecraft/data/DataWriter;
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lja;a()V
intermediary method_10326
Lnet/minecraft/class_2408;method_10326()V
named write
Lnet/minecraft/data/DataCache;write()V
-