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
official ji$e
intermediary net/minecraft/class_2408$class_7860
named net/minecraft/data/DataCache$RunResult
official a
intermediary comp_1124
named providerName
official b
intermediary comp_1125
named cache
official c
intermediary comp_1126
named cacheMissCount
  • Field Details

    • providerName

      private final String providerName
      The field for the providerName record component.
    • cache

      private final DataCache.CachedData cache
      The field for the cache record component.
    • cacheMissCount

      private final int cacheMissCount
      The field for the cacheMissCount record component.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • providerName

      public String providerName()
      Returns the value of the providerName record component.
      Returns:
      the value of the providerName record component
    • cache

      public DataCache.CachedData cache()
      Returns the value of the cache record component.
      Returns:
      the value of the cache record component
    • cacheMissCount

      public int cacheMissCount()
      Returns the value of the cacheMissCount record component.
      Returns:
      the value of the cacheMissCount record component