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 named net/minecraft/registry/tag/TagFile
intermediary net/minecraft/class_7475
official awl
named entries
intermediary comp_811
official b
named replace
intermediary comp_812
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
replace()
Returns the value of thereplace
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentries
record component. -
replace
private final boolean replaceThe field for thereplace
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/registry/tag/TagFile;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_39269
Lnet/minecraft/class_7475;field_39269:Lcom/mojang/serialization/Codec;
official a
Lawl;a: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 theentries
record component.- Returns:
- the value of the
entries
record component
-
replace
public boolean replace()Returns the value of thereplace
record component.- Returns:
- the value of the
replace
record component
-