Package net.minecraft.server.packs
Record Class OverlayMetadataSection
java.lang.Object
java.lang.Record
net.minecraft.server.packs.OverlayMetadataSection
public record OverlayMetadataSection(List<OverlayMetadataSection.OverlayEntry> overlays)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<OverlayMetadataSection> private static final Patternprivate final List<OverlayMetadataSection.OverlayEntry> The field for theoverlaysrecord component.static final MetadataSectionType<OverlayMetadataSection> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aOverlayMetadataSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.overlays()Returns the value of theoverlaysrecord component.overlaysForVersion(int p_296262_) final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<String> validateOverlayDir(String p_296447_)
-
Field Details
-
overlays
The field for theoverlaysrecord component. -
DIR_VALIDATOR
-
CODEC
-
TYPE
-
-
Constructor Details
-
OverlayMetadataSection
Creates an instance of aOverlayMetadataSectionrecord class.- Parameters:
overlays- the value for theoverlaysrecord component
-
-
Method Details
-
validateOverlayDir
-
overlaysForVersion
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
overlays
Returns the value of theoverlaysrecord component.- Returns:
- the value of the
overlaysrecord component
-