Class ActiveQuest

java.lang.Object
rocks.gravili.notquests.spigot.structs.ActiveQuest

public class ActiveQuest extends Object
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 Details

  • Method Details

    • getQuest

      public final Quest getQuest()
    • getActiveTriggers

      public final ArrayList<ActiveTrigger> getActiveTriggers()
    • getActiveObjectives

      public final ArrayList<ActiveObjective> getActiveObjectives()
    • getCompletedObjectives

      public final ArrayList<ActiveObjective> getCompletedObjectives()
    • isCompleted

      public final boolean isCompleted()
    • getQuestPlayer

      public final QuestPlayer 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

      public final ActiveObjective getActiveObjectiveFromID(int objectiveID)