QuestAPI
Quest API.
ClassRLPlugins API
public class QuestAPIMembers
Static methods
- Map<String, QuestState>getQuests()
Get a map of all quests and their states.
- QuestStategetState(Quest)
Get the state of a quest.
- booleanhasState(Quest, QuestState...)
Check if a quest is in one of the given states.
- booleanisCompleted(Quest)
Check if a quest is completed.
- booleanisInProgress(Quest)
Check if a quest is in progress.
- booleanisNotStarted(Quest)
Check if a quest is not started.
getQuests()static
public static Map<String, QuestState> getQuests()Get a map of all quests and their states.
Returns
A map of all quests and their states.
getState(Quest)static
public static QuestState getState(Quest quest)Get the state of a quest.
Parameters
quest- The quest to check.
Returns
The state of the quest.
hasState(Quest, QuestState...)static
public static boolean hasState(Quest quest, QuestState... states)Check if a quest is in one of the given states.
Parameters
quest- The quest to check.
states- The states to check against.
Returns
True if the quest is in one of the given states, false otherwise.
isCompleted(Quest)static
public static boolean isCompleted(Quest quest)Check if a quest is completed.
Parameters
quest- The quest to check.
Returns
True if the quest is completed, false otherwise.
isInProgress(Quest)static
public static boolean isInProgress(Quest quest)Check if a quest is in progress.
Parameters
quest- The quest to check.
Returns
True if the quest is in progress, false otherwise.
isNotStarted(Quest)static
public static boolean isNotStarted(Quest quest)Check if a quest is not started.
Parameters
quest- The quest to check.
Returns
True if the quest is not started, false otherwise.
Also allowed
Every class has these, as in plain Java.
equals, toString