Package net.minecraft.util.dynamic
Record Class CodecCache.Key<A,T>
java.lang.Object
java.lang.Record
net.minecraft.util.dynamic.CodecCache.Key<A,T>
- Record Components:
codec
-value
-ops
-
- Enclosing class:
CodecCache
private static record CodecCache.Key<A,T> (com.mojang.serialization.Codec<A> codec, A value, com.mojang.serialization.DynamicOps<T> ops)
extends Record
- Mappings:
Namespace Name named net/minecraft/util/dynamic/CodecCache$Key
intermediary net/minecraft/class_9684$class_9685
official axm$a
named codec
intermediary comp_2658
official a
named value
intermediary comp_2659
official b
named ops
intermediary comp_2660
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec
<A> codec()
Returns the value of thecodec
record component.com.mojang.serialization.DataResult
<T> encode()
boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.com.mojang.serialization.DynamicOps
<T> ops()
Returns the value of theops
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
Constructor Details
-
Key
-
-
Method Details
-
encode
- Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/util/dynamic/CodecCache$Key;encode()Lcom/mojang/serialization/DataResult;
intermediary method_59858
Lnet/minecraft/class_9684$class_9685;method_59858()Lcom/mojang/serialization/DataResult;
official a
Laxm$a;a()Lcom/mojang/serialization/DataResult;
-
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
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
codec
Returns the value of thecodec
record component.- Returns:
- the value of the
codec
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
ops
Returns the value of theops
record component.- Returns:
- the value of the
ops
record component
-