Record Class NpcType
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.NpcType
- Record Components:
id- the NPC type IDname- the NPC display namecombatLevel- the NPC combat level, or0if non-combatvisible- whether the NPC is renderedclickable- whether the NPC can be interacted withoptions- the right-click interaction optionsvarbitId- the varbit controlling transformation, or-1if nonevarpId- the varp controlling transformation, or-1if nonetransforms- the list of type IDs this NPC can transform intoparams- additional key-value parameters from the NPC definition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclickablerecord component.intReturns the value of thecombatLevelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.options()Returns the value of theoptionsrecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformsrecord component.intvarbitId()Returns the value of thevarbitIdrecord component.intvarpId()Returns the value of thevarpIdrecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
NpcType
public NpcType(int id, String name, int combatLevel, boolean visible, boolean clickable, List<String> options, int varbitId, int varpId, List<Integer> transforms, Map<String, Object> params) Creates an instance of aNpcTyperecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentcombatLevel- the value for thecombatLevelrecord componentvisible- the value for thevisiblerecord componentclickable- the value for theclickablerecord componentoptions- the value for theoptionsrecord componentvarbitId- the value for thevarbitIdrecord componentvarpId- the value for thevarpIdrecord componenttransforms- the value for thetransformsrecord componentparams- the value for theparamsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
combatLevel
public int combatLevel()Returns the value of thecombatLevelrecord component.- Returns:
- the value of the
combatLevelrecord component
-
visible
-
clickable
-
options
-
varbitId
-
varpId
-
transforms
Returns the value of thetransformsrecord component.- Returns:
- the value of the
transformsrecord component
-
params
-