Class DataCache.CachedDataWriter

java.lang.Object
net.minecraft.data.DataCache.CachedDataWriter
All Implemented Interfaces:
DataWriter
Enclosing class:
DataCache

private static class DataCache.CachedDataWriter extends Object implements DataWriter
Mappings:
Namespace Name
official it$a
intermediary net/minecraft/class_2408$class_7404
named net/minecraft/data/DataCache$CachedDataWriter
  • Field Details

    • oldCache

      private final DataCache.CachedData oldCache
      Mappings:
      Namespace Name Mixin selector
      official a Lit$a;a:Lit$b;
      intermediary field_38919 Lnet/minecraft/class_2408$class_7404;field_38919:Lnet/minecraft/class_2408$class_7405;
      named oldCache Lnet/minecraft/data/DataCache$CachedDataWriter;oldCache:Lnet/minecraft/data/DataCache$CachedData;
    • newCache

      final DataCache.CachedData newCache
      Mappings:
      Namespace Name Mixin selector
      official b Lit$a;b:Lit$b;
      intermediary field_38920 Lnet/minecraft/class_2408$class_7404;field_38920:Lnet/minecraft/class_2408$class_7405;
      named newCache Lnet/minecraft/data/DataCache$CachedDataWriter;newCache:Lnet/minecraft/data/DataCache$CachedData;
    • cacheMissCount

      int cacheMissCount
      Mappings:
      Namespace Name Mixin selector
      official c Lit$a;c:I
      intermediary field_38921 Lnet/minecraft/class_2408$class_7404;field_38921:I
      named cacheMissCount Lnet/minecraft/data/DataCache$CachedDataWriter;cacheMissCount:I
  • Constructor Details

    • CachedDataWriter

      CachedDataWriter(String versionName, DataCache.CachedData cachedData)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lit$a;<init>(Ljava/lang/String;Lit$b;)V
      intermediary <init> Lnet/minecraft/class_2408$class_7404;<init>(Ljava/lang/String;Lnet/minecraft/class_2408$class_7405;)V
      named <init> Lnet/minecraft/data/DataCache$CachedDataWriter;<init>(Ljava/lang/String;Lnet/minecraft/data/DataCache$CachedData;)V
  • Method Details

    • isCacheInvalid

      private boolean isCacheInvalid(Path path, String hash)
      Mappings:
      Namespace Name Mixin selector
      official b Lit$a;b(Ljava/nio/file/Path;Ljava/lang/String;)Z
      intermediary method_43355 Lnet/minecraft/class_2408$class_7404;method_43355(Ljava/nio/file/Path;Ljava/lang/String;)Z
      named isCacheInvalid Lnet/minecraft/data/DataCache$CachedDataWriter;isCacheInvalid(Ljava/nio/file/Path;Ljava/lang/String;)Z
    • write

      public void write(Path path, String data) throws IOException
      Specified by:
      write in interface DataWriter
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Liq;a(Ljava/nio/file/Path;Ljava/lang/String;)V
      intermediary method_43345 Lnet/minecraft/class_7403;method_43345(Ljava/nio/file/Path;Ljava/lang/String;)V
      named write Lnet/minecraft/data/DataWriter;write(Ljava/nio/file/Path;Ljava/lang/String;)V
    • write

      public void write(Path path, byte[] data, String hash) throws IOException
      Specified by:
      write in interface DataWriter
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Liq;a(Ljava/nio/file/Path;[BLjava/lang/String;)V
      intermediary method_43346 Lnet/minecraft/class_7403;method_43346(Ljava/nio/file/Path;[BLjava/lang/String;)V
      named write Lnet/minecraft/data/DataWriter;write(Ljava/nio/file/Path;[BLjava/lang/String;)V