Record Class PackMeta.Pack

java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackMeta.Pack
Record Components:
packFormat - the pack format version
description - the pack description
supportedFormats - the range of supported formats
minFormat - the minimum supported format (>= 1.21.9)
maxFormat - the maximum supported format
Enclosing class:
PackMeta

public static record PackMeta.Pack(int packFormat, @NotNull String description, @NotNull PackMeta.VersionRange supportedFormats, @NotNull PackMeta.PackVersion minFormat, @NotNull PackMeta.PackVersion maxFormat) extends Record
Represents the 'pack' section of the metadata.
Since:
1.15.2
  • Constructor Details

  • Method Details

    • 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 o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • packFormat

      @SerializedName("pack_format") public int packFormat()
      Returns the value of the packFormat record component.
      Returns:
      the value of the packFormat record component
    • description

      @SerializedName("description") @NotNull public @NotNull String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • supportedFormats

      @SerializedName("supported_formats") @NotNull public @NotNull PackMeta.VersionRange supportedFormats()
      Returns the value of the supportedFormats record component.
      Returns:
      the value of the supportedFormats record component
    • minFormat

      @SerializedName("min_format") @NotNull public @NotNull PackMeta.PackVersion minFormat()
      Returns the value of the minFormat record component.
      Returns:
      the value of the minFormat record component
    • maxFormat

      @SerializedName("max_format") @NotNull public @NotNull PackMeta.PackVersion maxFormat()
      Returns the value of the maxFormat record component.
      Returns:
      the value of the maxFormat record component