Package net.minecraft.util.dynamic
Record Class Codecs.TagEntryId
java.lang.Object
java.lang.Record
net.minecraft.util.dynamic.Codecs.TagEntryId
- Record Components:
id
-tag
-
- Enclosing class:
Codecs
- Mappings:
Namespace Name named net/minecraft/util/dynamic/Codecs$TagEntryId
intermediary net/minecraft/class_5699$class_7476
official axo$c
named id
intermediary comp_813
official a
named tag
intermediary comp_814
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theid
record component.private final boolean
The field for thetag
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate String
asString()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.boolean
tag()
Returns the value of thetag
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
TagEntryId
-
-
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. -
asString
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/dynamic/Codecs$TagEntryId;asString()Ljava/lang/String;
intermediary method_43963
Lnet/minecraft/class_5699$class_7476;method_43963()Ljava/lang/String;
official c
Laxo$c;c()Ljava/lang/String;
-
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 '=='. -
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
tag
public boolean tag()Returns the value of thetag
record component.- Returns:
- the value of the
tag
record component
-