Record Class ResourcePackProfile.Metadata

java.lang.Object
java.lang.Record
net.minecraft.resource.ResourcePackProfile.Metadata
Record Components:
description -
format -
requestedFeatures -
Enclosing class:
ResourcePackProfile

public static record ResourcePackProfile.Metadata(Text description, int format, FeatureSet requestedFeatures) extends Record
Mappings:
Namespace Name
official akg$a
intermediary net/minecraft/class_3288$class_7679
named net/minecraft/resource/ResourcePackProfile$Metadata
official a
intermediary comp_999
named description
official b
intermediary comp_1000
named format
official c
intermediary comp_1001
named requestedFeatures
  • Field Details

    • description

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

      private final int format
      The field for the format record component.
    • requestedFeatures

      private final FeatureSet requestedFeatures
      The field for the requestedFeatures record component.
  • Constructor Details

    • Metadata

      public Metadata(Text text, int int2, FeatureSet featureSet)
  • Method Details

    • getCompatibility

      public ResourcePackCompatibility getCompatibility(ResourceType type)
      Mappings:
      Namespace Name Mixin selector
      official a Lakg$a;a(Lajm;)Lakh;
      intermediary method_45277 Lnet/minecraft/class_3288$class_7679;method_45277(Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
      named getCompatibility Lnet/minecraft/resource/ResourcePackProfile$Metadata;getCompatibility(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • format

      public int format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • requestedFeatures

      public FeatureSet requestedFeatures()
      Returns the value of the requestedFeatures record component.
      Returns:
      the value of the requestedFeatures record component