Package net.minecraft.resource.metadata
Record Class PackOverlaysMetadata.Entry.Holder
java.lang.Object
java.lang.Record
net.minecraft.resource.metadata.PackOverlaysMetadata.Entry.Holder
- Record Components:
format-overlay-
- All Implemented Interfaces:
PackVersion.FormatHolder
- Enclosing class:
PackOverlaysMetadata.Entry
private static record PackOverlaysMetadata.Entry.Holder(PackVersion.Format format, String overlay)
extends Record
implements PackVersion.FormatHolder
- Mappings:
Namespace Name named net/minecraft/resource/metadata/PackOverlaysMetadata$Entry$Holderintermediary net/minecraft/class_8617$class_8618$class_11553official ayz$a$anamed formatintermediary comp_4412official anamed overlayintermediary comp_4413official b
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.Codec<PackOverlaysMetadata.Entry.Holder> private final PackVersion.FormatThe field for theformatrecord component.private final StringThe field for theoverlayrecord component. -
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.overlay()Returns the value of theoverlayrecord component.toString()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 named CODECLnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry$Holder;CODEC:Lcom/mojang/serialization/Codec;intermediary field_61148Lnet/minecraft/class_8617$class_8618$class_11553;field_61148:Lcom/mojang/serialization/Codec;official cLayz$a$a;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Holder
Holder(PackVersion.Format format, String string)
-
-
Method Details
-
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.- Specified by:
formatin interfacePackVersion.FormatHolder- Returns:
- the value of the
formatrecord component
-
overlay
Returns the value of theoverlayrecord component.- Returns:
- the value of the
overlayrecord component
-