Record Class RelicSlot

java.lang.Object
java.lang.Record
com.github.darksoulq.relique.api.RelicSlot

public record RelicSlot(int order, String icon, int size, DropRule dropRule, List<net.kyori.adventure.key.Key> validators) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.github.darksoulq.abyssallib.common.serialization.Codec<RelicSlot>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RelicSlot(int order, String icon, int size, DropRule dropRule, List<net.kyori.adventure.key.Key> validators)
    Creates an instance of a RelicSlot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the dropRule record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the icon record component.
    int
    Returns the value of the order record component.
    int
    Returns the value of the size record component.
    final String
    Returns a string representation of this record class.
    List<net.kyori.adventure.key.Key>
    Returns the value of the validators record component.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.github.darksoulq.abyssallib.common.serialization.Codec<RelicSlot> CODEC
  • Constructor Details

    • RelicSlot

      public RelicSlot(int order, String icon, int size, DropRule dropRule, List<net.kyori.adventure.key.Key> validators)
      Creates an instance of a RelicSlot record class.
      Parameters:
      order - the value for the order record component
      icon - the value for the icon record component
      size - the value for the size record component
      dropRule - the value for the dropRule record component
      validators - the value for the validators record component
  • 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.
    • order

      public int order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • dropRule

      public DropRule dropRule()
      Returns the value of the dropRule record component.
      Returns:
      the value of the dropRule record component
    • validators

      public List<net.kyori.adventure.key.Key> validators()
      Returns the value of the validators record component.
      Returns:
      the value of the validators record component