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$RunResult
intermediary net/minecraft/class_2408$class_7860
official lx$e
named providerName
intermediary comp_1124
official a
named cache
intermediary comp_1125
official b
named cacheMissCount
intermediary comp_1126
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataCache.CachedData
The field for thecache
record component.private final int
The field for thecacheMissCount
record component.private final String
The field for theproviderName
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncache()
Returns the value of thecache
record component.int
Returns the value of thecacheMissCount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theproviderName
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
providerName
The field for theproviderName
record component. -
cache
The field for thecache
record component. -
cacheMissCount
private final int cacheMissCountThe field for thecacheMissCount
record 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 theproviderName
record component.- Returns:
- the value of the
providerName
record component
-
cache
Returns the value of thecache
record component.- Returns:
- the value of the
cache
record component
-
cacheMissCount
public int cacheMissCount()Returns the value of thecacheMissCount
record component.- Returns:
- the value of the
cacheMissCount
record component
-