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 official alx$aintermediary net/minecraft/class_8617$class_8618named net/minecraft/resource/metadata/PackOverlaysMetadata$Entryofficial aintermediary comp_1578named formatofficial bintermediary comp_1579named overlay
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleanisValid(int packFormat) 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
- Mappings:
Namespace Name Mixin selector official cLalx$a;c:Lcom/mojang/serialization/Codec;intermediary field_45048Lnet/minecraft/class_8617$class_8618;field_45048:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Entry
-
-
Method Details
-
isValid
public boolean isValid(int packFormat) - Mappings:
Namespace Name Mixin selector official aLalx$a;a(I)Zintermediary method_52432Lnet/minecraft/class_8617$class_8618;method_52432(I)Znamed isValidLnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;isValid(I)Z
-
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
-