Record Class QuestType
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.QuestType
- Record Components:
id- the quest type IDname- the quest namelistName- the display name in the quest list, or emptycategory- the quest categorydifficulty- the quest difficulty ratingmembersOnly- whether this quest requires membershipquestPoints- the quest points rewarded on completionquestPointReq- the quest points required to startquestItemSprite- the quest journal item sprite ID, or-1for nonestartLocations- the tile coordinates of quest start locationsalternateStartLocation- the alternate start location identifierdependentQuestIds- IDs of quests that must be completed firstskillRequirements- the skill requirements to start the questprogressVarps- the varps used to track quest progressprogressVarbits- the varbits used to track quest progressparams- additional key-value parameters from the quest definition
public record QuestType(int id, String name, String listName, int category, int difficulty, boolean membersOnly, int questPoints, int questPointReq, int questItemSprite, List<Integer> startLocations, int alternateStartLocation, List<Integer> dependentQuestIds, List<Map<String,Object>> skillRequirements, List<Map<String,Object>> progressVarps, List<Map<String,Object>> progressVarbits, Map<String,Object> params)
extends Record
Quest definition from the game cache.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQuestType(int id, String name, String listName, int category, int difficulty, boolean membersOnly, int questPoints, int questPointReq, int questItemSprite, List<Integer> startLocations, int alternateStartLocation, List<Integer> dependentQuestIds, List<Map<String, Object>> skillRequirements, List<Map<String, Object>> progressVarps, List<Map<String, Object>> progressVarbits, Map<String, Object> params) Creates an instance of aQuestTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thealternateStartLocationrecord component.intcategory()Returns the value of thecategoryrecord component.Returns the value of thedependentQuestIdsrecord component.intReturns the value of thedifficultyrecord 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.listName()Returns the value of thelistNamerecord component.booleanReturns the value of themembersOnlyrecord component.name()Returns the value of thenamerecord component.params()Returns the value of theparamsrecord component.Returns the value of theprogressVarbitsrecord component.Returns the value of theprogressVarpsrecord component.intReturns the value of thequestItemSpriterecord component.intReturns the value of thequestPointReqrecord component.intReturns the value of thequestPointsrecord component.Returns the value of theskillRequirementsrecord component.Returns the value of thestartLocationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QuestType
public QuestType(int id, String name, String listName, int category, int difficulty, boolean membersOnly, int questPoints, int questPointReq, int questItemSprite, List<Integer> startLocations, int alternateStartLocation, List<Integer> dependentQuestIds, List<Map<String, Object>> skillRequirements, List<Map<String, Object>> progressVarps, List<Map<String, Object>> progressVarbits, Map<String, Object> params) Creates an instance of aQuestTyperecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentlistName- the value for thelistNamerecord componentcategory- the value for thecategoryrecord componentdifficulty- the value for thedifficultyrecord componentmembersOnly- the value for themembersOnlyrecord componentquestPoints- the value for thequestPointsrecord componentquestPointReq- the value for thequestPointReqrecord componentquestItemSprite- the value for thequestItemSpriterecord componentstartLocations- the value for thestartLocationsrecord componentalternateStartLocation- the value for thealternateStartLocationrecord componentdependentQuestIds- the value for thedependentQuestIdsrecord componentskillRequirements- the value for theskillRequirementsrecord componentprogressVarps- the value for theprogressVarpsrecord componentprogressVarbits- the value for theprogressVarbitsrecord 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
-
listName
-
category
-
difficulty
public int difficulty()Returns the value of thedifficultyrecord component.- Returns:
- the value of the
difficultyrecord component
-
membersOnly
public boolean membersOnly()Returns the value of themembersOnlyrecord component.- Returns:
- the value of the
membersOnlyrecord component
-
questPoints
public int questPoints()Returns the value of thequestPointsrecord component.- Returns:
- the value of the
questPointsrecord component
-
questPointReq
public int questPointReq()Returns the value of thequestPointReqrecord component.- Returns:
- the value of the
questPointReqrecord component
-
questItemSprite
public int questItemSprite()Returns the value of thequestItemSpriterecord component.- Returns:
- the value of the
questItemSpriterecord component
-
startLocations
Returns the value of thestartLocationsrecord component.- Returns:
- the value of the
startLocationsrecord component
-
alternateStartLocation
public int alternateStartLocation()Returns the value of thealternateStartLocationrecord component.- Returns:
- the value of the
alternateStartLocationrecord component
-
dependentQuestIds
Returns the value of thedependentQuestIdsrecord component.- Returns:
- the value of the
dependentQuestIdsrecord component
-
skillRequirements
Returns the value of theskillRequirementsrecord component.- Returns:
- the value of the
skillRequirementsrecord component
-
progressVarps
Returns the value of theprogressVarpsrecord component.- Returns:
- the value of the
progressVarpsrecord component
-
progressVarbits
Returns the value of theprogressVarbitsrecord component.- Returns:
- the value of the
progressVarbitsrecord component
-
params
-