Class QuestManager

java.lang.Object
rocks.gravili.notquests.paper.managers.QuestManager

public class QuestManager extends Object
  • Constructor Details

    • QuestManager

      public QuestManager(NotQuests main)
  • Method Details

    • createQuest

      public final String createQuest(String questName)
    • deleteQuest

      public final String deleteQuest(String questName)
    • getQuest

      public final Quest getQuest(String questName)
    • getAllQuests

      public final ArrayList<Quest> getAllQuests()
    • loadQuestsFromConfig

      public void loadQuestsFromConfig()
    • loadQuestsFromConfig

      public void loadQuestsFromConfig(Category category)
    • getAllQuestsAttachedToArmorstand

      public final ArrayList<Quest> getAllQuestsAttachedToArmorstand(org.bukkit.entity.ArmorStand armorstand)
    • getQuestsAttachedToArmorstandWithShowing

      public final ArrayList<Quest> getQuestsAttachedToArmorstandWithShowing(org.bukkit.entity.ArmorStand armorstand)
    • getQuestsAttachedToArmorstandWithoutShowing

      public final ArrayList<Quest> getQuestsAttachedToArmorstandWithoutShowing(org.bukkit.entity.ArmorStand armorstand)
    • getAllQuestsAttachedToNPC

      public final ArrayList<Quest> getAllQuestsAttachedToNPC(net.citizensnpcs.api.npc.NPC npc)
    • getQuestsAttachedToNPCWithShowing

      public final ArrayList<Quest> getQuestsAttachedToNPCWithShowing(net.citizensnpcs.api.npc.NPC npc)
    • getQuestsAttachedToNPCWithoutShowing

      public final ArrayList<Quest> getQuestsAttachedToNPCWithoutShowing(net.citizensnpcs.api.npc.NPC npc)
    • getAllNPCsAttachedToQuest

      public final ArrayList<net.citizensnpcs.api.npc.NPC> getAllNPCsAttachedToQuest(Quest quest)
    • getNPCsAttachedToQuestWithShowing

      public final ArrayList<net.citizensnpcs.api.npc.NPC> getNPCsAttachedToQuestWithShowing(Quest quest)
    • getNPCsAttachedToQuestWithoutShowing

      public final ArrayList<net.citizensnpcs.api.npc.NPC> getNPCsAttachedToQuestWithoutShowing(Quest quest)
    • sendQuestsPreviewOfQuestShownArmorstands

      public boolean sendQuestsPreviewOfQuestShownArmorstands(org.bukkit.entity.ArmorStand armorStand, org.bukkit.entity.Player player)
    • sendQuestsPreviewOfQuestShownNPCs

      public void sendQuestsPreviewOfQuestShownNPCs(net.citizensnpcs.api.npc.NPC npc, org.bukkit.entity.Player player)
    • getQuestRequirements

      public final String getQuestRequirements(Quest quest, org.bukkit.entity.Player player)
    • getQuestRewards

      public final String getQuestRewards(Quest quest, org.bukkit.entity.Player player)
    • sendSingleQuestPreview

      public void sendSingleQuestPreview(org.bukkit.entity.Player player, Quest quest)
    • loadNPCData

      public void loadNPCData()
    • loadNPCData

      public void loadNPCData(Category category)
    • cleanupBuggedNPCs

      public void cleanupBuggedNPCs()
    • sendCompletedObjectivesAndProgress

      public void sendCompletedObjectivesAndProgress(org.bukkit.entity.Player player, ActiveQuest activeQuest)
    • getObjectiveTaskDescription

      public final String getObjectiveTaskDescription(Objective objective, boolean completed, org.bukkit.entity.Player player)
    • sendActiveObjectivesAndProgress

      public void sendActiveObjectivesAndProgress(org.bukkit.entity.Player player, ActiveQuest activeQuest)
    • sendObjectives

      public void sendObjectives(org.bukkit.entity.Player player, Quest quest)
    • sendObjectivesAdmin

      public void sendObjectivesAdmin(org.bukkit.command.CommandSender sender, Quest quest)
    • sendActiveObjective

      public void sendActiveObjective(org.bukkit.entity.Player player, ActiveObjective activeObjective)
    • isPlayerCloseToCitizenOrArmorstandWithQuest

      public final boolean isPlayerCloseToCitizenOrArmorstandWithQuest(org.bukkit.entity.Player player, Quest quest)
      Checks if the player is close to a Citizens NPC or Armor Stand which has the specified Quest attached to it
      Parameters:
      player - the player who should be close to the Citizens NPC or Armor Stand
      quest - the Quest which needs to be attached to the Citizens NPC or Armor Stand
      Returns:
      if the player is close to a Citizens NPC or Armor Stand which has the specified Quest attached to it
    • getDebugEnabledPlayers

      public final ArrayList<org.bukkit.entity.Player> getDebugEnabledPlayers()
    • addDebugEnabledPlayer

      public void addDebugEnabledPlayer(org.bukkit.entity.Player player)
    • removeDebugEnabledPlayer

      public void removeDebugEnabledPlayer(org.bukkit.entity.Player player)
    • isDebugEnabledPlayer

      public final boolean isDebugEnabledPlayer(org.bukkit.entity.Player player)