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
ConstructorDescriptionPlayerStats
(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 aPlayerStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theattackMagicPotency
record component.int
Returns the value of theattackPower
record component.int
Returns the value of thecriticalHit
record component.int
Returns the value of thedetermination
record component.int
Returns the value of thedexterity
record component.int
Returns the value of thedirectHit
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thehealMagicPotency
record component.int
Returns the value of theintelligence
record component.job()
Returns the value of thejob
record component.int
mind()
Returns the value of themind
record component.int
piety()
Returns the value of thepiety
record component.int
Returns the value of theskillSpeed
record component.int
Returns the value of thespellSpeed
record component.int
strength()
Returns the value of thestrength
record component.int
tenacity()
Returns the value of thetenacity
record component.final String
toString()
Returns a string representation of this record class.int
vitality()
Returns the value of thevitality
record component.
-
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 aPlayerStats
record class.- Parameters:
job
- the value for thejob
record componentstrength
- the value for thestrength
record componentdexterity
- the value for thedexterity
record componentvitality
- the value for thevitality
record componentintelligence
- the value for theintelligence
record componentmind
- the value for themind
record componentpiety
- the value for thepiety
record componentattackPower
- the value for theattackPower
record componentdirectHit
- the value for thedirectHit
record componentcriticalHit
- the value for thecriticalHit
record componentattackMagicPotency
- the value for theattackMagicPotency
record componenthealMagicPotency
- the value for thehealMagicPotency
record componentdetermination
- the value for thedetermination
record componentskillSpeed
- the value for theskillSpeed
record componentspellSpeed
- the value for thespellSpeed
record componenttenacity
- the value for thetenacity
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
job
Returns the value of thejob
record component.- Returns:
- the value of the
job
record component
-
strength
public int strength()Returns the value of thestrength
record component.- Returns:
- the value of the
strength
record component
-
dexterity
public int dexterity()Returns the value of thedexterity
record component.- Returns:
- the value of the
dexterity
record component
-
vitality
public int vitality()Returns the value of thevitality
record component.- Returns:
- the value of the
vitality
record component
-
intelligence
public int intelligence()Returns the value of theintelligence
record component.- Returns:
- the value of the
intelligence
record component
-
mind
public int mind()Returns the value of themind
record component.- Returns:
- the value of the
mind
record component
-
piety
public int piety()Returns the value of thepiety
record component.- Returns:
- the value of the
piety
record component
-
attackPower
public int attackPower()Returns the value of theattackPower
record component.- Returns:
- the value of the
attackPower
record component
-
directHit
public int directHit()Returns the value of thedirectHit
record component.- Returns:
- the value of the
directHit
record component
-
criticalHit
public int criticalHit()Returns the value of thecriticalHit
record component.- Returns:
- the value of the
criticalHit
record component
-
attackMagicPotency
public int attackMagicPotency()Returns the value of theattackMagicPotency
record component.- Returns:
- the value of the
attackMagicPotency
record component
-
healMagicPotency
public int healMagicPotency()Returns the value of thehealMagicPotency
record component.- Returns:
- the value of the
healMagicPotency
record component
-
determination
public int determination()Returns the value of thedetermination
record component.- Returns:
- the value of the
determination
record component
-
skillSpeed
public int skillSpeed()Returns the value of theskillSpeed
record component.- Returns:
- the value of the
skillSpeed
record component
-
spellSpeed
public int spellSpeed()Returns the value of thespellSpeed
record component.- Returns:
- the value of the
spellSpeed
record component
-
tenacity
public int tenacity()Returns the value of thetenacity
record component.- Returns:
- the value of the
tenacity
record component
-