Package net.minecraft.data
Record Class HashCache.ProviderCache
java.lang.Object
java.lang.Record
net.minecraft.data.HashCache.ProviderCache
- Enclosing class:
HashCache
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProviderCache
(String version, com.google.common.collect.ImmutableMap<Path, com.google.common.hash.HashCode> data) Creates an instance of aProviderCache
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
count()
com.google.common.collect.ImmutableMap<Path,
com.google.common.hash.HashCode> data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.com.google.common.hash.HashCode
final int
hashCode()
Returns a hash code value for this object.static HashCache.ProviderCache
void
final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Field Details
-
version
The field for theversion
record component. -
data
The field for thedata
record component.
-
-
Constructor Details
-
Method Details
-
get
-
count
public int count() -
load
- Throws:
IOException
-
save
-
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
-