Record Class DataCache.CachedData

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

private static record DataCache.CachedData(String version, ImmutableMap<Path,HashCode> data) extends Record
Mappings:
Namespace Name
named net/minecraft/data/DataCache$CachedData
intermediary net/minecraft/class_2408$class_7405
official mi$b
named version
intermediary comp_729
official a
named data
intermediary comp_730
official b
  • Field Details

  • Constructor Details

  • Method Details

    • get

      @Nullable public @Nullable HashCode get(Path path)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/data/DataCache$CachedData;get(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
      intermediary method_43357 Lnet/minecraft/class_2408$class_7405;method_43357(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
      official a Lmi$b;a(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/data/DataCache$CachedData;size()I
      intermediary method_43356 Lnet/minecraft/class_2408$class_7405;method_43356()I
      official a Lmi$b;a()I
    • parseCache

      public static DataCache.CachedData parseCache(Path root, Path dataProviderPath) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named parseCache Lnet/minecraft/data/DataCache$CachedData;parseCache(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/data/DataCache$CachedData;
      intermediary method_43359 Lnet/minecraft/class_2408$class_7405;method_43359(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/class_2408$class_7405;
      official a Lmi$b;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lmi$b;
    • write

      public void write(Path root, Path dataProviderPath, String description)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/data/DataCache$CachedData;write(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)V
      intermediary method_43360 Lnet/minecraft/class_2408$class_7405;method_43360(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)V
      official a Lmi$b;a(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)V
    • 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 ImmutableMap<Path,HashCode> data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component