Class DataCache

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

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

    • LOGGER

      static final org.slf4j.Logger 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;
    • root

      private final Path 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

      private final 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

      private final String 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

      private final Map<DataProvider,DataCache.CachedData> 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

      private final Map<DataProvider,DataCache.CachedDataWriter> 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

      private final Set<Path> 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

      private Path getPath(DataProvider dataProvider)
      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

      private static DataCache.CachedData parseOrCreateCache(Path root, Path dataProviderPath)
      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

      public boolean isVersionDifferent(DataProvider dataProvider)
      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

      public DataWriter getOrCreateWriter(DataProvider dataProvider)
      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

      public void write() throws IOException
      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