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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionOverlayEntry(InclusiveRange<Integer> format, String overlay) Creates an instance of aOverlayEntryrecord class.
- 
Method SummaryModifier 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- 
formatThe field for theformatrecord component.
- 
overlayThe field for theoverlayrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
OverlayEntryCreates an instance of aOverlayEntryrecord class.- Parameters:
- format- the value for the- formatrecord component
- overlay- the value for the- overlayrecord component
 
 
- 
- 
Method Details- 
isApplicablepublic boolean isApplicable(int p_295083_) 
- 
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).
- 
formatReturns the value of theformatrecord component.- Returns:
- the value of the formatrecord component
 
- 
overlayReturns the value of theoverlayrecord component.- Returns:
- the value of the overlayrecord component
 
 
-