Package net.minecraft.registry.tag
Record Class TagFile
java.lang.Object
java.lang.Record
net.minecraft.registry.tag.TagFile
- Record Components:
entries-replace-
- Mappings:
Namespace Name official ankintermediary net/minecraft/class_7475named net/minecraft/registry/tag/TagFileofficial bintermediary comp_811named entriesofficial cintermediary comp_812named replace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanreplace()Returns the value of thereplacerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentriesrecord component. -
replace
private final boolean replaceThe field for thereplacerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLank;a:Lcom/mojang/serialization/Codec;intermediary field_39269Lnet/minecraft/class_7475;field_39269:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/registry/tag/TagFile;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TagFile
-
-
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. -
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 '=='. -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
replace
public boolean replace()Returns the value of thereplacerecord component.- Returns:
- the value of the
replacerecord component
-