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
private static record DataCache.CachedData(String version, ImmutableMap<Path,HashCode> data)
extends Record
- Mappings:
Namespace Name official jj$b
intermediary net/minecraft/class_2408$class_7405
named net/minecraft/data/DataCache$CachedData
official a
intermediary comp_729
named version
official b
intermediary comp_730
named data
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.@Nullable HashCode
final int
hashCode()
Returns a hash code value for this object.static DataCache.CachedData
parseCache
(Path root, Path dataProviderPath) int
size()
final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.void
-
Field Details
-
Constructor Details
-
CachedData
CachedData(String string, ImmutableMap<Path, HashCode> immutableMap)
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official a
Ljj$b;a(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;
named get
Lnet/minecraft/data/DataCache$CachedData;get(Ljava/nio/file/Path;)Lcom/google/common/hash/HashCode;
-
size
public int size()- Mappings:
Namespace Name Mixin selector official a
Ljj$b;a()I
intermediary method_43356
Lnet/minecraft/class_2408$class_7405;method_43356()I
named size
Lnet/minecraft/data/DataCache$CachedData;size()I
-
parseCache
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ljj$b;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljj$b;
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;
named parseCache
Lnet/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 a
Ljj$b;a(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
named write
Lnet/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 theversion
record component.- Returns:
- the value of the
version
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-