Package net.minecraft.server.packs
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<Integer> format, String overlay)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<OverlayMetadataSection.OverlayEntry> private final InclusiveRange<Integer> The field for theformatrecord component.private final StringThe field for theoverlayrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOverlayEntry(InclusiveRange<Integer> 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(int p_295083_) 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. -
CODEC
-
-
Constructor Details
-
OverlayEntry
Creates an instance of aOverlayEntryrecord class.- Parameters:
format- the value for theformatrecord componentoverlay- the value for theoverlayrecord component
-
-
Method Details
-
isApplicable
public boolean isApplicable(int p_295083_) -
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). -
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
-