Record Class TagFile
java.lang.Object
java.lang.Record
net.minecraft.tags.TagFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TagFile> The field for theentriesrecord component.The field for theremoverecord component.private final booleanThe field for thereplacerecord component. -
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.remove()Returns the value of theremoverecord component.booleanreplace()Returns the value of thereplacerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entries
-
replace
private final boolean replaceThe field for thereplacerecord component. -
remove
-
CODEC
-
-
Constructor Details
-
TagFile
-
TagFile
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
entries
-
replace
public boolean replace()Returns the value of thereplacerecord component.- Returns:
- the value of the
replacerecord component
-
remove
-