Class DataCache

java.lang.Object
net.minecraft.data.DataCache

public class DataCache extends Object
Mappings:
Namespace Name
named net/minecraft/data/DataCache
intermediary net/minecraft/class_2408
official mb
  • Field Details

    • LOGGER

      static final Logger 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 Lmb;a:Lorg/slf4j/Logger;
    • root

      private final Path 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 Lmb;c:Ljava/nio/file/Path;
    • cachePath

      private final 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 Lmb;d:Ljava/nio/file/Path;
    • versionName

      private final String 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 Lmb;e:Ljava/lang/String;
    • cachedDatas

      private final Map<String,DataCache.CachedData> 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 Lmb;f:Ljava/util/Map;
    • dataWriters

      private final Set<String> 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 Lmb;g:Ljava/util/Set;
    • paths

      final Set<Path> 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 Lmb;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 Lmb;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 Lmb;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> Lmb;<init>(Ljava/nio/file/Path;Ljava/util/Collection;Lae;)V
  • Method Details

    • getPath

      private Path getPath(String providerName)
      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 Lmb;b(Ljava/lang/String;)Ljava/nio/file/Path;
    • parseOrCreateCache

      private static DataCache.CachedData parseOrCreateCache(Path root, Path dataProviderPath)
      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 Lmb;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lmb$b;
    • isVersionDifferent

      public boolean isVersionDifferent(String providerName)
      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 Lmb;a(Ljava/lang/String;)Z
    • run

      public CompletableFuture<DataCache.RunResult> run(String providerName, DataCache.Runner runner)
      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 Lmb;a(Ljava/lang/String;Lmb$d;)Ljava/util/concurrent/CompletableFuture;
    • store

      public void store(DataCache.RunResult runResult)
      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 Lmb;a(Lmb$e;)V
    • write

      public void write() throws IOException
      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 Lmb;a()V