Package net.minecraft.data
Record Class DataCache.RunResult
java.lang.Object
java.lang.Record
net.minecraft.data.DataCache.RunResult
- Record Components:
providerName-cache-cacheMissCount-
- Enclosing class:
DataCache
public static record DataCache.RunResult(String providerName, DataCache.CachedData cache, int cacheMissCount)
extends Record
- Mappings:
Namespace Name named net/minecraft/data/DataCache$RunResultintermediary net/minecraft/class_2408$class_7860official mb$enamed providerNameintermediary comp_1124official anamed cacheintermediary comp_1125official bnamed cacheMissCountintermediary comp_1126official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataCache.CachedDataThe field for thecacherecord component.private final intThe field for thecacheMissCountrecord component.private final StringThe field for theproviderNamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncache()Returns the value of thecacherecord component.intReturns the value of thecacheMissCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theproviderNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
providerName
The field for theproviderNamerecord component. -
cache
The field for thecacherecord component. -
cacheMissCount
private final int cacheMissCountThe field for thecacheMissCountrecord component.
-
-
Constructor Details
-
RunResult
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
providerName
Returns the value of theproviderNamerecord component.- Returns:
- the value of the
providerNamerecord component
-
cache
Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-
cacheMissCount
public int cacheMissCount()Returns the value of thecacheMissCountrecord component.- Returns:
- the value of the
cacheMissCountrecord component
-