Package net.minecraft.resource.metadata
Record Class PackResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.resource.metadata.PackResourceMetadata
- Record Components:
description-supportedFormats-
public record PackResourceMetadata(Text description, Range<PackVersion> supportedFormats)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/metadata/PackResourceMetadataintermediary net/minecraft/class_3272official azqnamed descriptionintermediary comp_1580official dnamed supportedFormatsintermediary comp_1582official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceMetadataSerializer<PackResourceMetadata> private final TextThe field for thedescriptionrecord component.private static final com.mojang.serialization.Codec<PackResourceMetadata> static final ResourceMetadataSerializer<PackResourceMetadata> static final ResourceMetadataSerializer<PackResourceMetadata> private final Range<PackVersion> The field for thesupportedFormatsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<PackResourceMetadata> createCodec(ResourceType type) Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getSerializerFor(ResourceType type) final inthashCode()Returns a hash code value for this object.Returns the value of thesupportedFormatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescriptionrecord component. -
supportedFormats
The field for thesupportedFormatsrecord component. -
DESCRIPTION_CODEC
- Mappings:
Namespace Name Mixin selector named DESCRIPTION_CODECLnet/minecraft/resource/metadata/PackResourceMetadata;DESCRIPTION_CODEC:Lcom/mojang/serialization/Codec;intermediary field_45051Lnet/minecraft/class_3272;field_45051:Lcom/mojang/serialization/Codec;official fLazq;f:Lcom/mojang/serialization/Codec;
-
CLIENT_RESOURCES_SERIALIZER
- Mappings:
Namespace Name Mixin selector named CLIENT_RESOURCES_SERIALIZERLnet/minecraft/resource/metadata/PackResourceMetadata;CLIENT_RESOURCES_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61155Lnet/minecraft/class_3272;field_61155:Lnet/minecraft/class_7677;official aLazq;a:Lazo;
-
SERVER_DATA_SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERVER_DATA_SERIALIZERLnet/minecraft/resource/metadata/PackResourceMetadata;SERVER_DATA_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61156Lnet/minecraft/class_3272;field_61156:Lnet/minecraft/class_7677;official bLazq;b:Lazo;
-
DESCRIPTION_SERIALIZER
- Mappings:
Namespace Name Mixin selector named DESCRIPTION_SERIALIZERLnet/minecraft/resource/metadata/PackResourceMetadata;DESCRIPTION_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61157Lnet/minecraft/class_3272;field_61157:Lnet/minecraft/class_7677;official cLazq;c:Lazo;
-
-
Constructor Details
-
PackResourceMetadata
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/metadata/PackResourceMetadata;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/util/dynamic/Range;)Vintermediary <init>Lnet/minecraft/class_3272;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_6497;)Vofficial <init>Lazq;<init>(Lxx;Lbez;)V
-
-
Method Details
-
createCodec
- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/resource/metadata/PackResourceMetadata;createCodec(Lnet/minecraft/resource/ResourceType;)Lcom/mojang/serialization/Codec;intermediary method_72360Lnet/minecraft/class_3272;method_72360(Lnet/minecraft/class_3264;)Lcom/mojang/serialization/Codec;official bLazq;b(Lazd;)Lcom/mojang/serialization/Codec;
-
getSerializerFor
- Mappings:
Namespace Name Mixin selector named getSerializerForLnet/minecraft/resource/metadata/PackResourceMetadata;getSerializerFor(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary method_72356Lnet/minecraft/class_3272;method_72356(Lnet/minecraft/class_3264;)Lnet/minecraft/class_7677;official aLazq;a(Lazd;)Lazo;
-
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
supportedFormats
Returns the value of thesupportedFormatsrecord component.- Returns:
- the value of the
supportedFormatsrecord component
-