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/PackResourceMetadata
intermediary net/minecraft/class_3272
official awu
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<class_11555> supportedFormats
      The field for the supportedFormats record component.
    • CODEC

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

      public static final ResourceMetadataSerializer<PackResourceMetadata> field_61155
      Mappings:
      Namespace Name Mixin selector
      named field_61155 Lnet/minecraft/resource/metadata/PackResourceMetadata;field_61155:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_61155 Lnet/minecraft/class_3272;field_61155:Lnet/minecraft/class_7677;
      official a Lawu;a:Laws;
    • field_61156

      public static final ResourceMetadataSerializer<PackResourceMetadata> field_61156
      Mappings:
      Namespace Name Mixin selector
      named field_61156 Lnet/minecraft/resource/metadata/PackResourceMetadata;field_61156:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_61156 Lnet/minecraft/class_3272;field_61156:Lnet/minecraft/class_7677;
      official b Lawu;b:Laws;
    • field_61157

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

    • PackResourceMetadata

      public PackResourceMetadata(Text description, Range<class_11555> 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> 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_72360 Lnet/minecraft/resource/metadata/PackResourceMetadata;method_72360(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 Lawu;b(Lawh;)Lcom/mojang/serialization/Codec;
    • method_72356

      public static ResourceMetadataSerializer<PackResourceMetadata> method_72356(ResourceType resourceType)
      Mappings:
      Namespace Name Mixin selector
      named method_72356 Lnet/minecraft/resource/metadata/PackResourceMetadata;method_72356(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 Lawu;a(Lawh;)Laws;
    • 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<class_11555> supportedFormats()
      Returns the value of the supportedFormats record component.
      Returns:
      the value of the supportedFormats record component