Record Class FeatureFlagsMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.server.packs.FeatureFlagsMetadataSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<FeatureFlagsMetadataSection> private final FeatureFlagSetThe field for theflagsrecord component.static final MetadataSectionType<FeatureFlagsMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aFeatureFlagsMetadataSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
flags
The field for theflagsrecord component. -
CODEC
-
TYPE
-
-
Constructor Details
-
FeatureFlagsMetadataSection
Creates an instance of aFeatureFlagsMetadataSectionrecord class.- Parameters:
flags- the value for theflagsrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-