Class ActiveQuest
java.lang.Object
rocks.gravili.notquests.paper.structs.ActiveQuest
This is a special object for active quests. Apart from the Quest itself, it stores additional objects to track the quest progress.
This includes the active objectives and completed objectives, as well as triggers and the quest player who accepted the Quest.
All this information is saved in the Database, so the Player can continue from where they left off if the server or the plugin restarts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fail()
final ActiveObjective
getActiveObjectiveFromID
(int objectiveID) final ArrayList<ActiveObjective>
final ArrayList<ActiveTrigger>
final ArrayList<ActiveObjective>
final Quest
getQuest()
final String
final QuestPlayer
final boolean
void
notifyActiveObjectiveCompleted
(ActiveObjective activeObjective, boolean silent, int NPCID) void
notifyActiveObjectiveCompleted
(ActiveObjective activeObjective, boolean silent, int NPCID, UUID armorStandUUID) void
notifyActiveObjectiveCompleted
(ActiveObjective activeObjective, boolean silent, UUID armorStandUUID) void
removeCompletedObjectives
(boolean notifyPlayer) void
updateObjectivesUnlocked
(boolean sendUpdateObjectivesUnlocked, boolean triggerAcceptQuestTrigger)
-
Constructor Details
-
ActiveQuest
-
-
Method Details
-
getQuest
-
getActiveTriggers
-
getActiveObjectives
-
getCompletedObjectives
-
isCompleted
public final boolean isCompleted() -
getQuestPlayer
-
notifyActiveObjectiveCompleted
public void notifyActiveObjectiveCompleted(ActiveObjective activeObjective, boolean silent, int NPCID) -
notifyActiveObjectiveCompleted
public void notifyActiveObjectiveCompleted(ActiveObjective activeObjective, boolean silent, UUID armorStandUUID) -
notifyActiveObjectiveCompleted
public void notifyActiveObjectiveCompleted(ActiveObjective activeObjective, boolean silent, int NPCID, UUID armorStandUUID) -
removeCompletedObjectives
public void removeCompletedObjectives(boolean notifyPlayer) -
fail
public void fail() -
updateObjectivesUnlocked
public void updateObjectivesUnlocked(boolean sendUpdateObjectivesUnlocked, boolean triggerAcceptQuestTrigger) -
getActiveObjectiveFromID
-
getQuestName
-