Package net.minecraft.resource.metadata
Record Class PackOverlaysMetadata.Entry
java.lang.Object
java.lang.Record
net.minecraft.resource.metadata.PackOverlaysMetadata.Entry
- Record Components:
- format-
- overlay-
- Enclosing class:
- PackOverlaysMetadata
public static record PackOverlaysMetadata.Entry(Range<Integer> format, String overlay)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/resource/metadata/PackOverlaysMetadata$Entry- intermediary - net/minecraft/class_8617$class_8618- official - ata$a- named - format- intermediary - comp_1578- official - a- named - overlay- intermediary - comp_1579- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
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.booleanisValid(int packFormat) 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- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45048- Lnet/minecraft/class_8617$class_8618;field_45048:Lcom/mojang/serialization/Codec;- official - c- Lata$a;c:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Entry
 
- 
- 
Method Details- 
isValidpublic boolean isValid(int packFormat) - Mappings:
- Namespace - Name - Mixin selector - named - isValid- Lnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;isValid(I)Z- intermediary - method_52432- Lnet/minecraft/class_8617$class_8618;method_52432(I)Z- official - a- Lata$a;a(I)Z
 
- 
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
 
 
-