Record Class EncoderCache.Key<A,T>
java.lang.Object
java.lang.Record
net.minecraft.util.EncoderCache.Key<A,T>
- Enclosing class:
EncoderCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodec()Returns the value of thecodecrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.ops()Returns the value of theopsrecord component.resolve()final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
codec
-
value
The field for thevaluerecord component. -
ops
The field for theopsrecord component.
-
-
Constructor Details
-
Key
Creates an instance of aKeyrecord class.- Parameters:
codec- the value for thecodecrecord componentvalue- the value for thevaluerecord componentops- the value for theopsrecord component
-
-
Method Details
-
resolve
-
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). -
hashCode
-
toString
-
codec
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
ops
Returns the value of theopsrecord component.- Returns:
- the value of the
opsrecord component
-