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<PackVersion> format, String overlay)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/metadata/PackOverlaysMetadata$Entryintermediary net/minecraft/class_8617$class_8618official ayz$anamed formatintermediary comp_1578official anamed overlayintermediary comp_1579official b
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static com.mojang.serialization.Codec<List<PackOverlaysMetadata.Entry>> createCodec(ResourceType type) final 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(PackVersion version) overlay()Returns the value of theoverlayrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Entry
-
-
Method Details
-
createCodec
static com.mojang.serialization.Codec<List<PackOverlaysMetadata.Entry>> createCodec(ResourceType type) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;createCodec(Lnet/minecraft/resource/ResourceType;)Lcom/mojang/serialization/Codec;intermediary method_72313Lnet/minecraft/class_8617$class_8618;method_72313(Lnet/minecraft/class_3264;)Lcom/mojang/serialization/Codec;official aLayz$a;a(Lazd;)Lcom/mojang/serialization/Codec;
-
isValid
- Mappings:
Namespace Name Mixin selector named isValidLnet/minecraft/resource/metadata/PackOverlaysMetadata$Entry;isValid(Lnet/minecraft/resource/PackVersion;)Zintermediary method_52432Lnet/minecraft/class_8617$class_8618;method_52432(Lnet/minecraft/class_11555;)Zofficial aLayz$a;a(Lazp;)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
-