Record Class OverlayMetadataSection.OverlayEntry
java.lang.Object
java.lang.Record
net.minecraft.server.packs.OverlayMetadataSection.OverlayEntry
- Enclosing class:
OverlayMetadataSection
public static record OverlayMetadataSection.OverlayEntry(InclusiveRange<PackFormat> format, String overlay)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InclusiveRange<PackFormat> The field for theformatrecord component.private final StringThe field for theoverlayrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOverlayEntry(InclusiveRange<PackFormat> format, String overlay) Creates an instance of aOverlayEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.booleanisApplicable(PackFormat formatToTest) private static com.mojang.serialization.Codec<List<OverlayMetadataSection.OverlayEntry>> listCodecForPackType(PackType packType) overlay()Returns the value of theoverlayrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
format
The field for theformatrecord component. -
overlay
The field for theoverlayrecord component.
-
-
Constructor Details
-
OverlayEntry
Creates an instance of aOverlayEntryrecord class.- Parameters:
format- the value for theformatrecord componentoverlay- the value for theoverlayrecord component
-
-
Method Details
-
listCodecForPackType
private static com.mojang.serialization.Codec<List<OverlayMetadataSection.OverlayEntry>> listCodecForPackType(PackType packType) -
isApplicable
-
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). -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
overlay
Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-