Record Class Skill

java.lang.Object
java.lang.Record
com.botwithus.bot.api.snapshot.Skill
Record Components:
typeId - skill type id (StatType.id from the game cache)
experience - total xp; fits in i32 (in-game cap is 200,000,000)
actualLevel - base/true level (e.g. 99)
boostedLevel - current displayed level including buffs/drains

public record Skill(int typeId, int experience, int actualLevel, int boostedLevel) extends Record
One row of the local player's skills array.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Skill(int typeId, int experience, int actualLevel, int boostedLevel)
    Creates an instance of a Skill record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the actualLevel record component.
    int
    Returns the value of the boostedLevel record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the experience record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the typeId record component.

    Methods inherited from class Object

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

    • Skill

      public Skill(int typeId, int experience, int actualLevel, int boostedLevel)
      Creates an instance of a Skill record class.
      Parameters:
      typeId - the value for the typeId record component
      experience - the value for the experience record component
      actualLevel - the value for the actualLevel record component
      boostedLevel - the value for the boostedLevel 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. All components in this record class 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.
    • typeId

      public int typeId()
      Returns the value of the typeId record component.
      Returns:
      the value of the typeId record component
    • experience

      public int experience()
      Returns the value of the experience record component.
      Returns:
      the value of the experience record component
    • actualLevel

      public int actualLevel()
      Returns the value of the actualLevel record component.
      Returns:
      the value of the actualLevel record component
    • boostedLevel

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