Package net.minecraft.data
Record Class DataCache.CachedData
java.lang.Object
java.lang.Record
net.minecraft.data.DataCache.CachedData
- Record Components:
version-data-
- Enclosing class:
DataCache
- Mappings:
Namespace Name official ja$bintermediary net/minecraft/class_2408$class_7405named net/minecraft/data/DataCache$CachedDataofficial aintermediary comp_729named versionofficial bintermediary comp_730named data
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)CachedData(String version) privateCachedData(String string, Map<Path, HashCode> map) -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DataCache.CachedDataparseCache(Path root, Path dataProviderPath) voidintsize()final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.void
-
Field Details
-
Constructor Details
-
CachedData
CachedData(String version) - Mappings:
Namespace Name Mixin selector official <init>Lja$b;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2408$class_7405;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/data/DataCache$CachedData;<init>(Ljava/lang/String;)V
-
CachedData
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official aLja$b;a(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;intermediary method_43357Lnet/minecraft/class_2408$class_7405;method_43357(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;named getLnet/minecraft/data/DataCache$CachedData;get(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
-
put
- Mappings:
Namespace Name Mixin selector official aLja$b;a(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Vintermediary method_43358Lnet/minecraft/class_2408$class_7405;method_43358(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)Vnamed putLnet/minecraft/data/DataCache$CachedData;put(Ljava/nio/file/Path;Lcom/google/common/hash/HashCode;)V
-
size
public int size()- Mappings:
Namespace Name Mixin selector official aLja$b;a()Iintermediary method_43356Lnet/minecraft/class_2408$class_7405;method_43356()Inamed sizeLnet/minecraft/data/DataCache$CachedData;size()I
-
parseCache
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLja$b;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lja$b;intermediary method_43359Lnet/minecraft/class_2408$class_7405;method_43359(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/class_2408$class_7405;named parseCacheLnet/minecraft/data/DataCache$CachedData;parseCache(Ljava/nio/file/Path;Ljava/nio/file/Path;)Lnet/minecraft/data/DataCache$CachedData;
-
write
- Mappings:
Namespace Name Mixin selector official aLja$b;a(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)Vintermediary method_43360Lnet/minecraft/class_2408$class_7405;method_43360(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)Vnamed writeLnet/minecraft/data/DataCache$CachedData;write(Ljava/nio/file/Path;Ljava/nio/file/Path;Ljava/lang/String;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-