Record Class PlayerStats

java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.actlines.events.PlayerStats
All Implemented Interfaces:
Serializable

public record PlayerStats(Job job, int strength, int dexterity, int vitality, int intelligence, int mind, int piety, int attackPower, int directHit, int criticalHit, int attackMagicPotency, int healMagicPotency, int determination, int skillSpeed, int spellSpeed, int tenacity) extends Record implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerStats(Job job, int strength, int dexterity, int vitality, int intelligence, int mind, int piety, int attackPower, int directHit, int criticalHit, int attackMagicPotency, int healMagicPotency, int determination, int skillSpeed, int spellSpeed, int tenacity)
    Creates an instance of a PlayerStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the attackMagicPotency record component.
    int
    Returns the value of the attackPower record component.
    int
    Returns the value of the criticalHit record component.
    int
    Returns the value of the determination record component.
    int
    Returns the value of the dexterity record component.
    int
    Returns the value of the directHit record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the healMagicPotency record component.
    int
    Returns the value of the intelligence record component.
    job()
    Returns the value of the job record component.
    int
    Returns the value of the mind record component.
    int
    Returns the value of the piety record component.
    int
    Returns the value of the skillSpeed record component.
    int
    Returns the value of the spellSpeed record component.
    int
    Returns the value of the strength record component.
    int
    Returns the value of the tenacity record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the vitality record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PlayerStats

      public PlayerStats(Job job, int strength, int dexterity, int vitality, int intelligence, int mind, int piety, int attackPower, int directHit, int criticalHit, int attackMagicPotency, int healMagicPotency, int determination, int skillSpeed, int spellSpeed, int tenacity)
      Creates an instance of a PlayerStats record class.
      Parameters:
      job - the value for the job record component
      strength - the value for the strength record component
      dexterity - the value for the dexterity record component
      vitality - the value for the vitality record component
      intelligence - the value for the intelligence record component
      mind - the value for the mind record component
      piety - the value for the piety record component
      attackPower - the value for the attackPower record component
      directHit - the value for the directHit record component
      criticalHit - the value for the criticalHit record component
      attackMagicPotency - the value for the attackMagicPotency record component
      healMagicPotency - the value for the healMagicPotency record component
      determination - the value for the determination record component
      skillSpeed - the value for the skillSpeed record component
      spellSpeed - the value for the spellSpeed record component
      tenacity - the value for the tenacity 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 '=='.
      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.
    • job

      public Job job()
      Returns the value of the job record component.
      Returns:
      the value of the job record component
    • strength

      public int strength()
      Returns the value of the strength record component.
      Returns:
      the value of the strength record component
    • dexterity

      public int dexterity()
      Returns the value of the dexterity record component.
      Returns:
      the value of the dexterity record component
    • vitality

      public int vitality()
      Returns the value of the vitality record component.
      Returns:
      the value of the vitality record component
    • intelligence

      public int intelligence()
      Returns the value of the intelligence record component.
      Returns:
      the value of the intelligence record component
    • mind

      public int mind()
      Returns the value of the mind record component.
      Returns:
      the value of the mind record component
    • piety

      public int piety()
      Returns the value of the piety record component.
      Returns:
      the value of the piety record component
    • attackPower

      public int attackPower()
      Returns the value of the attackPower record component.
      Returns:
      the value of the attackPower record component
    • directHit

      public int directHit()
      Returns the value of the directHit record component.
      Returns:
      the value of the directHit record component
    • criticalHit

      public int criticalHit()
      Returns the value of the criticalHit record component.
      Returns:
      the value of the criticalHit record component
    • attackMagicPotency

      public int attackMagicPotency()
      Returns the value of the attackMagicPotency record component.
      Returns:
      the value of the attackMagicPotency record component
    • healMagicPotency

      public int healMagicPotency()
      Returns the value of the healMagicPotency record component.
      Returns:
      the value of the healMagicPotency record component
    • determination

      public int determination()
      Returns the value of the determination record component.
      Returns:
      the value of the determination record component
    • skillSpeed

      public int skillSpeed()
      Returns the value of the skillSpeed record component.
      Returns:
      the value of the skillSpeed record component
    • spellSpeed

      public int spellSpeed()
      Returns the value of the spellSpeed record component.
      Returns:
      the value of the spellSpeed record component
    • tenacity

      public int tenacity()
      Returns the value of the tenacity record component.
      Returns:
      the value of the tenacity record component