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
Modifier and TypeFieldDescription(package private) static final com.mojang.serialization.Codec
<OverlayMetadataSection.OverlayEntry> private final InclusiveRange
<Integer> The field for theformat
record component.private final String
The field for theoverlay
record component. -
Constructor Summary
ConstructorDescriptionOverlayEntry
(InclusiveRange<Integer> format, String overlay) Creates an instance of aOverlayEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.boolean
isApplicable
(int p_300875_) overlay()
Returns the value of theoverlay
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
format
The field for theformat
record component. -
overlay
The field for theoverlay
record component. -
CODEC
-
-
Constructor Details
-
OverlayEntry
Creates an instance of aOverlayEntry
record class.- Parameters:
format
- the value for theformat
record componentoverlay
- the value for theoverlay
record component
-
-
Method Details
-
isApplicable
public boolean isApplicable(int p_300875_) -
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 theformat
record component.- Returns:
- the value of the
format
record component
-
overlay
Returns the value of theoverlay
record component.- Returns:
- the value of the
overlay
record component
-