Package net.minecraft.data
Class DataCache
java.lang.Object
net.minecraft.data.DataCache
- Mappings:
Namespace Name named net/minecraft/data/DataCache
intermediary net/minecraft/class_2408
official lx
-
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 named LOGGER
Lnet/minecraft/data/DataCache;LOGGER:Lorg/slf4j/Logger;
intermediary field_11287
Lnet/minecraft/class_2408;field_11287:Lorg/slf4j/Logger;
official a
Llx;a:Lorg/slf4j/Logger;
-
HEADER
- See Also:
- Mappings:
Namespace Name Mixin selector named HEADER
Lnet/minecraft/data/DataCache;HEADER:Ljava/lang/String;
intermediary field_38912
Lnet/minecraft/class_2408;field_38912:Ljava/lang/String;
official b
Llx;b:Ljava/lang/String;
-
root
- Mappings:
Namespace Name Mixin selector named root
Lnet/minecraft/data/DataCache;root:Ljava/nio/file/Path;
intermediary field_11285
Lnet/minecraft/class_2408;field_11285:Ljava/nio/file/Path;
official c
Llx;c:Ljava/nio/file/Path;
-
cachePath
- Mappings:
Namespace Name Mixin selector named cachePath
Lnet/minecraft/data/DataCache;cachePath:Ljava/nio/file/Path;
intermediary field_38913
Lnet/minecraft/class_2408;field_38913:Ljava/nio/file/Path;
official d
Llx;d:Ljava/nio/file/Path;
-
versionName
- Mappings:
Namespace Name Mixin selector named versionName
Lnet/minecraft/data/DataCache;versionName:Ljava/lang/String;
intermediary field_38914
Lnet/minecraft/class_2408;field_38914:Ljava/lang/String;
official e
Llx;e:Ljava/lang/String;
-
cachedDatas
- Mappings:
Namespace Name Mixin selector named cachedDatas
Lnet/minecraft/data/DataCache;cachedDatas:Ljava/util/Map;
intermediary field_40832
Lnet/minecraft/class_2408;field_40832:Ljava/util/Map;
official f
Llx;f:Ljava/util/Map;
-
dataWriters
- Mappings:
Namespace Name Mixin selector named dataWriters
Lnet/minecraft/data/DataCache;dataWriters:Ljava/util/Set;
intermediary field_38916
Lnet/minecraft/class_2408;field_38916:Ljava/util/Set;
official g
Llx;g:Ljava/util/Set;
-
paths
- Mappings:
Namespace Name Mixin selector named paths
Lnet/minecraft/data/DataCache;paths:Ljava/util/Set;
intermediary field_38917
Lnet/minecraft/class_2408;field_38917:Ljava/util/Set;
official h
Llx;h:Ljava/util/Set;
-
totalSize
private final int totalSize- Mappings:
Namespace Name Mixin selector named totalSize
Lnet/minecraft/data/DataCache;totalSize:I
intermediary field_38918
Lnet/minecraft/class_2408;field_38918:I
official i
Llx;i:I
-
totalCacheMissCount
private int totalCacheMissCount- Mappings:
Namespace Name Mixin selector named totalCacheMissCount
Lnet/minecraft/data/DataCache;totalCacheMissCount:I
intermediary field_40833
Lnet/minecraft/class_2408;field_40833:I
official j
Llx;j:I
-
-
Constructor Details
-
DataCache
public DataCache(Path root, Collection<String> providerNames, GameVersion gameVersion) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/data/DataCache;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lnet/minecraft/GameVersion;)V
intermediary <init>
Lnet/minecraft/class_2408;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lnet/minecraft/class_6489;)V
official <init>
Llx;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lad;)V
-
-
Method Details
-
getPath
- Mappings:
Namespace Name Mixin selector named getPath
Lnet/minecraft/data/DataCache;getPath(Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_43353
Lnet/minecraft/class_2408;method_43353(Ljava/lang/String;)Ljava/nio/file/Path;
official b
Llx;b(Ljava/lang/String;)Ljava/nio/file/Path;
-
parseOrCreateCache
- Mappings:
Namespace Name Mixin selector named parseOrCreateCache
Lnet/minecraft/data/DataCache;parseOrCreateCache(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/data/DataCache$CachedData;
intermediary method_43348
Lnet/minecraft/class_2408;method_43348(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/class_2408$class_7405;
official a
Llx;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Llx$b;
-
isVersionDifferent
- Mappings:
Namespace Name Mixin selector named isVersionDifferent
Lnet/minecraft/data/DataCache;isVersionDifferent(Ljava/lang/String;)Z
intermediary method_43347
Lnet/minecraft/class_2408;method_43347(Ljava/lang/String;)Z
official a
Llx;a(Ljava/lang/String;)Z
-
run
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/data/DataCache;run(Ljava/lang/String;Lnet/minecraft/data/DataCache$Runner;)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;
official a
Llx;a(Ljava/lang/String;Llx$d;)Ljava/util/concurrent/CompletableFuture;
-
store
- Mappings:
Namespace Name Mixin selector named store
Lnet/minecraft/data/DataCache;store(Lnet/minecraft/data/DataCache$RunResult;)V
intermediary method_46569
Lnet/minecraft/class_2408;method_46569(Lnet/minecraft/class_2408$class_7860;)V
official a
Llx;a(Llx$e;)V
-
write
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/data/DataCache;write()V
intermediary method_10326
Lnet/minecraft/class_2408;method_10326()V
official a
Llx;a()V
-