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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionCreates an instance of aOverlayMetadataSectionrecord class.
- 
Method SummaryModifier 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_299136_) final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<String>validateOverlayDir(String p_301366_) 
- 
Field Details- 
overlaysThe field for theoverlaysrecord component.
- 
DIR_VALIDATOR
- 
CODEC
- 
TYPE
 
- 
- 
Constructor Details- 
OverlayMetadataSectionCreates an instance of aOverlayMetadataSectionrecord class.- Parameters:
- overlays- the value for the- overlaysrecord component
 
 
- 
- 
Method Details- 
validateOverlayDir
- 
overlaysForVersion
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
overlaysReturns the value of theoverlaysrecord component.- Returns:
- the value of the overlaysrecord component
 
 
-