Record Class ResourcePackInfo

java.lang.Object
java.lang.Record
net.minecraft.resource.ResourcePackInfo
Record Components:
id -
title -
source -
knownPackInfo -

public record ResourcePackInfo(String id, Text title, ResourcePackSource source, Optional<VersionedIdentifier> knownPackInfo) extends Record
Mappings:
Namespace Name
named net/minecraft/resource/ResourcePackInfo
intermediary net/minecraft/class_9224
official auf
named id
intermediary comp_2329
official a
named title
intermediary comp_2330
official b
named source
intermediary comp_2331
official c
named knownPackInfo
intermediary comp_2332
official d
  • Field Details

  • Constructor Details

  • Method Details

    • getInformationText

      public Text getInformationText(boolean enabled, Text description)
      Mappings:
      Namespace Name Mixin selector
      named getInformationText Lnet/minecraft/resource/ResourcePackInfo;getInformationText(ZLnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
      intermediary method_56927 Lnet/minecraft/class_9224;method_56927(ZLnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      official a Lauf;a(ZLxv;)Lxv;
    • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • title

      public Text title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • source

      public ResourcePackSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • knownPackInfo

      public Optional<VersionedIdentifier> knownPackInfo()
      Returns the value of the knownPackInfo record component.
      Returns:
      the value of the knownPackInfo record component