Record Class SkillRequirement
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.SkillRequirement
- Record Components:
skillId- skill type id (matches in-gameStatType.id; e.g. 26 = Divination, 13 = Mining)level- required levelskillName- human-readable skill name (e.g. "Mining"); may be empty when the producer doesn't include it
A skill requirement associated with a
WorldMapElement.-
Constructor Summary
ConstructorsConstructorDescriptionSkillRequirement(int skillId, int level, String skillName) Creates an instance of aSkillRequirementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlevel()Returns the value of thelevelrecord component.intskillId()Returns the value of theskillIdrecord component.Returns the value of theskillNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkillRequirement
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
skillId
-
level
-
skillName
-