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
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<OverlayMetadataSection>
private static final Pattern
private final List<OverlayMetadataSection.OverlayEntry>
The field for theoverlays
record component.static final MetadataSectionType<OverlayMetadataSection>
-
Constructor Summary
ConstructorDescriptionCreates an instance of aOverlayMetadataSection
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.overlays()
Returns the value of theoverlays
record component.overlaysForVersion
(int p_299136_) final String
toString()
Returns a string representation of this record class.private static com.mojang.serialization.DataResult<String>
validateOverlayDir
(String p_301366_)
-
Field Details
-
overlays
The field for theoverlays
record component. -
DIR_VALIDATOR
-
CODEC
-
TYPE
-
-
Constructor Details
-
OverlayMetadataSection
Creates an instance of aOverlayMetadataSection
record class.- Parameters:
overlays
- the value for theoverlays
record 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 theoverlays
record component.- Returns:
- the value of the
overlays
record component
-