Record Class DataCache.IntermediaryCache

java.lang.Object
java.lang.Record
net.minecraft.data.DataCache.IntermediaryCache
Record Components:
version -
data -
Enclosing class:
DataCache

private static record DataCache.IntermediaryCache(String version, ConcurrentMap<Path,HashCode> data) extends Record
Mappings:
Namespace Name
official ji$c
intermediary net/minecraft/class_2408$class_7858
named net/minecraft/data/DataCache$IntermediaryCache
official a
intermediary comp_1122
named version
official b
intermediary comp_1123
named data
  • Field Details

  • Constructor Details

    • IntermediaryCache

      IntermediaryCache(String version)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lji$c;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2408$class_7858;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/data/DataCache$IntermediaryCache;<init>(Ljava/lang/String;)V
    • IntermediaryCache

      private IntermediaryCache(String string, ConcurrentMap<Path,HashCode> concurrentMap)
  • Method Details

    • put

      public void put(Path path, HashCode hashCode)
      Mappings:
      Namespace Name Mixin selector
      official a Lji$c;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)V
      intermediary method_46574 Lnet/minecraft/class_2408$class_7858;method_46574(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)V
      named put Lnet/minecraft/data/DataCache$IntermediaryCache;put(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)V
    • toCachedData

      public DataCache.CachedData toCachedData()
      Mappings:
      Namespace Name Mixin selector
      official a Lji$c;a()Lji$b;
      intermediary method_46573 Lnet/minecraft/class_2408$class_7858;method_46573()Lnet/minecraft/class_2408$class_7405;
      named toCachedData Lnet/minecraft/data/DataCache$IntermediaryCache;toCachedData()Lnet/minecraft/data/DataCache$CachedData;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • data

      public ConcurrentMap<Path,HashCode> data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component