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<class_11555> supportedFormats)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/metadata/PackResourceMetadataintermediary net/minecraft/class_3272official awunamed descriptionintermediary comp_1580official dnamed supportedFormatsintermediary comp_1582official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<PackResourceMetadata> private final TextThe field for thedescriptionrecord component.static final ResourceMetadataSerializer<PackResourceMetadata> static final ResourceMetadataSerializer<PackResourceMetadata> static final ResourceMetadataSerializer<PackResourceMetadata> private final Range<class_11555> The field for thesupportedFormatsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_72356(ResourceType resourceType) private static com.mojang.serialization.Codec<PackResourceMetadata> method_72360(ResourceType resourceType) 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. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/resource/metadata/PackResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45051Lnet/minecraft/class_3272;field_45051:Lcom/mojang/serialization/Codec;official fLawu;f:Lcom/mojang/serialization/Codec;
-
field_61155
- Mappings:
Namespace Name Mixin selector named field_61155Lnet/minecraft/resource/metadata/PackResourceMetadata;field_61155:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61155Lnet/minecraft/class_3272;field_61155:Lnet/minecraft/class_7677;official aLawu;a:Laws;
-
field_61156
- Mappings:
Namespace Name Mixin selector named field_61156Lnet/minecraft/resource/metadata/PackResourceMetadata;field_61156:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61156Lnet/minecraft/class_3272;field_61156:Lnet/minecraft/class_7677;official bLawu;b:Laws;
-
field_61157
- Mappings:
Namespace Name Mixin selector named field_61157Lnet/minecraft/resource/metadata/PackResourceMetadata;field_61157:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61157Lnet/minecraft/class_3272;field_61157:Lnet/minecraft/class_7677;official cLawu;c:Laws;
-
-
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>Lawu;<init>(Lxr;Lbca;)V
-
-
Method Details
-
method_72360
private static com.mojang.serialization.Codec<PackResourceMetadata> method_72360(ResourceType resourceType) - Mappings:
Namespace Name Mixin selector named method_72360Lnet/minecraft/resource/metadata/PackResourceMetadata;method_72360(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 bLawu;b(Lawh;)Lcom/mojang/serialization/Codec;
-
method_72356
public static ResourceMetadataSerializer<PackResourceMetadata> method_72356(ResourceType resourceType) - Mappings:
Namespace Name Mixin selector named method_72356Lnet/minecraft/resource/metadata/PackResourceMetadata;method_72356(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 aLawu;a(Lawh;)Laws;
-
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
-