Record Class Skill
java.lang.Object
java.lang.Record
com.botwithus.bot.api.snapshot.Skill
- Record Components:
typeId- skill type id (StatType.idfrom the game cache)experience- total xp; fits ini32(in-game cap is 200,000,000)actualLevel- base/true level (e.g. 99)boostedLevel- current displayed level including buffs/drains
One row of the local player's skills array.
-
Constructor Summary
ConstructorsConstructorDescriptionSkill(int typeId, int experience, int actualLevel, int boostedLevel) Creates an instance of aSkillrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactualLevelrecord component.intReturns the value of theboostedLevelrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexperiencerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.inttypeId()Returns the value of thetypeIdrecord component.
-
Constructor Details
-
Skill
public Skill(int typeId, int experience, int actualLevel, int boostedLevel) Creates an instance of aSkillrecord class.- Parameters:
typeId- the value for thetypeIdrecord componentexperience- the value for theexperiencerecord componentactualLevel- the value for theactualLevelrecord componentboostedLevel- the value for theboostedLevelrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
typeId
-
experience
public int experience()Returns the value of theexperiencerecord component.- Returns:
- the value of the
experiencerecord component
-
actualLevel
public int actualLevel()Returns the value of theactualLevelrecord component.- Returns:
- the value of the
actualLevelrecord component
-
boostedLevel
public int boostedLevel()Returns the value of theboostedLevelrecord component.- Returns:
- the value of the
boostedLevelrecord component
-