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/PackResourceMetadata
intermediary net/minecraft/class_3272
official azq
named description
intermediary comp_1580
official d
named supportedFormats
intermediary comp_1582
official e
  • Field Details

    • description

      private final Text description
      The field for the description record component.
    • supportedFormats

      private final Range<PackVersion> supportedFormats
      The field for the supportedFormats record component.
    • DESCRIPTION_CODEC

      private static final com.mojang.serialization.Codec<PackResourceMetadata> DESCRIPTION_CODEC
      Mappings:
      Namespace Name Mixin selector
      named DESCRIPTION_CODEC Lnet/minecraft/resource/metadata/PackResourceMetadata;DESCRIPTION_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45051 Lnet/minecraft/class_3272;field_45051:Lcom/mojang/serialization/Codec;
      official f Lazq;f:Lcom/mojang/serialization/Codec;
    • CLIENT_RESOURCES_SERIALIZER

      public static final ResourceMetadataSerializer<PackResourceMetadata> CLIENT_RESOURCES_SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named CLIENT_RESOURCES_SERIALIZER Lnet/minecraft/resource/metadata/PackResourceMetadata;CLIENT_RESOURCES_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_61155 Lnet/minecraft/class_3272;field_61155:Lnet/minecraft/class_7677;
      official a Lazq;a:Lazo;
    • SERVER_DATA_SERIALIZER

      public static final ResourceMetadataSerializer<PackResourceMetadata> SERVER_DATA_SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named SERVER_DATA_SERIALIZER Lnet/minecraft/resource/metadata/PackResourceMetadata;SERVER_DATA_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_61156 Lnet/minecraft/class_3272;field_61156:Lnet/minecraft/class_7677;
      official b Lazq;b:Lazo;
    • DESCRIPTION_SERIALIZER

      public static final ResourceMetadataSerializer<PackResourceMetadata> DESCRIPTION_SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named DESCRIPTION_SERIALIZER Lnet/minecraft/resource/metadata/PackResourceMetadata;DESCRIPTION_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_61157 Lnet/minecraft/class_3272;field_61157:Lnet/minecraft/class_7677;
      official c Lazq;c:Lazo;
  • Constructor Details

    • PackResourceMetadata

      public PackResourceMetadata(Text description, Range<PackVersion> range)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/resource/metadata/PackResourceMetadata;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/util/dynamic/Range;)V
      intermediary <init> Lnet/minecraft/class_3272;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_6497;)V
      official <init> Lazq;<init>(Lxx;Lbez;)V
  • Method Details

    • createCodec

      private static com.mojang.serialization.Codec<PackResourceMetadata> createCodec(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/resource/metadata/PackResourceMetadata;createCodec(Lnet/minecraft/resource/ResourceType;)Lcom/mojang/serialization/Codec;
      intermediary method_72360 Lnet/minecraft/class_3272;method_72360(Lnet/minecraft/class_3264;)Lcom/mojang/serialization/Codec;
      official b Lazq;b(Lazd;)Lcom/mojang/serialization/Codec;
    • getSerializerFor

      public static ResourceMetadataSerializer<PackResourceMetadata> getSerializerFor(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      named getSerializerFor Lnet/minecraft/resource/metadata/PackResourceMetadata;getSerializerFor(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary method_72356 Lnet/minecraft/class_3272;method_72356(Lnet/minecraft/class_3264;)Lnet/minecraft/class_7677;
      official a Lazq;a(Lazd;)Lazo;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • description

      public Text description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • supportedFormats

      public Range<PackVersion> supportedFormats()
      Returns the value of the supportedFormats record component.
      Returns:
      the value of the supportedFormats record component