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 TypeFieldDescriptionstatic final MetadataSectionType<OverlayMetadataSection> private static final Patternstatic final MetadataSectionType<OverlayMetadataSection> static final MetadataSectionType<OverlayMetadataSection> private 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 TypeMethodDescriptionstatic com.mojang.serialization.Codec<OverlayMetadataSection> codecForPackType(PackType packType) final booleanIndicates whether some other object is "equal to" this one.forPackType(PackType packType) forPackTypeNeoForge(PackType packType) final inthashCode()Returns a hash code value for this object.overlays()Returns the value of theoverlaysrecord component.overlaysForVersion(PackFormat version) final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<String> validateOverlayDir(String path)
-
Field Details
-
overlays
The field for theoverlaysrecord component. -
DIR_VALIDATOR
-
CLIENT_TYPE
-
SERVER_TYPE
-
NEOFORGE_CLIENT_TYPE
-
NEOFORGE_SERVER_TYPE
-
-
Constructor Details
-
OverlayMetadataSection
Creates an instance of aOverlayMetadataSectionrecord class.- Parameters:
overlays- the value for theoverlaysrecord component
-
-
Method Details
-
validateOverlayDir
-
codecForPackType
public static com.mojang.serialization.Codec<OverlayMetadataSection> codecForPackType(PackType packType) -
forPackType
-
forPackTypeNeoForge
-
overlaysForVersion
-
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). -
overlays
Returns the value of theoverlaysrecord component.- Returns:
- the value of the
overlaysrecord component
-