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 official aoi$dintermediary net/minecraft/class_5699$class_7476named net/minecraft/util/dynamic/Codecs$TagEntryIdofficial aintermediary comp_813named idofficial bintermediary comp_814named tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.private final booleanThe field for thetagrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringasString()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleantag()Returns the value of thetagrecord 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 official cLaoi$d;c()Ljava/lang/String;intermediary method_43963Lnet/minecraft/class_5699$class_7476;method_43963()Ljava/lang/String;named asStringLnet/minecraft/util/dynamic/Codecs$TagEntryId;asString()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 theidrecord component.- Returns:
- the value of the
idrecord component
-
tag
public boolean tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-