Class DataCache.CachedDataWriter

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

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

    • providerName

      private final String providerName
      Mappings:
      Namespace Name Mixin selector
      official c Ljj$a;c:Ljava/lang/String;
      intermediary field_40835 Lnet/minecraft/class_2408$class_7404;field_40835:Ljava/lang/String;
      named providerName Lnet/minecraft/data/DataCache$CachedDataWriter;providerName:Ljava/lang/String;
    • oldCache

      private final DataCache.CachedData oldCache
      Mappings:
      Namespace Name Mixin selector
      official d Ljj$a;d:Ljj$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

      private final DataCache.IntermediaryCache newCache
      Mappings:
      Namespace Name Mixin selector
      official e Ljj$a;e:Ljj$c;
      intermediary field_38920 Lnet/minecraft/class_2408$class_7404;field_38920:Lnet/minecraft/class_2408$class_7858;
      named newCache Lnet/minecraft/data/DataCache$CachedDataWriter;newCache:Lnet/minecraft/data/DataCache$IntermediaryCache;
    • cacheMissCount

      private final AtomicInteger cacheMissCount
      Mappings:
      Namespace Name Mixin selector
      official f Ljj$a;f:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_38921 Lnet/minecraft/class_2408$class_7404;field_38921:Ljava/util/concurrent/atomic/AtomicInteger;
      named cacheMissCount Lnet/minecraft/data/DataCache$CachedDataWriter;cacheMissCount:Ljava/util/concurrent/atomic/AtomicInteger;
    • closed

      private volatile boolean closed
      Mappings:
      Namespace Name Mixin selector
      official g Ljj$a;g:Z
      intermediary field_40836 Lnet/minecraft/class_2408$class_7404;field_40836:Z
      named closed Lnet/minecraft/data/DataCache$CachedDataWriter;closed:Z
  • Constructor Details

    • CachedDataWriter

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

    • isCacheInvalid

      private boolean isCacheInvalid(Path path, HashCode hashCode)
      Mappings:
      Namespace Name Mixin selector
      official a Ljj$a;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Z
      intermediary method_43355 Lnet/minecraft/class_2408$class_7404;method_43355(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Z
      named isCacheInvalid Lnet/minecraft/data/DataCache$CachedDataWriter;isCacheInvalid(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Z
    • write

      public void write(Path path, byte[] data, HashCode hashCode) throws IOException
      Specified by:
      write in interface DataWriter
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official writeIfNeeded Ljg;writeIfNeeded(Ljava/nio/file/Path;[BLcom/google/common/hash/HashCode;)V
      intermediary method_43346 Lnet/minecraft/class_7403;method_43346(Ljava/nio/file/Path;[BLcom/google/common/hash/HashCode;)V
      named write Lnet/minecraft/data/DataWriter;write(Ljava/nio/file/Path;[BLcom/google/common/hash/HashCode;)V
    • finish

      public DataCache.RunResult finish()
      Mappings:
      Namespace Name Mixin selector
      official a Ljj$a;a()Ljj$e;
      intermediary method_46572 Lnet/minecraft/class_2408$class_7404;method_46572()Lnet/minecraft/class_2408$class_7860;
      named finish Lnet/minecraft/data/DataCache$CachedDataWriter;finish()Lnet/minecraft/data/DataCache$RunResult;