Class QuestManager
java.lang.Object
rocks.gravili.notquests.spigot.managers.QuestManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final net.kyori.adventure.text.minimessage.MiniMessage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugEnabledPlayer
(org.bukkit.entity.Player player) void
final String
createQuest
(String questName) final String
deleteQuest
(String questName) final ArrayList<net.citizensnpcs.api.npc.NPC>
getAllNPCsAttachedToQuest
(Quest quest) getAllQuestsAttachedToArmorstand
(org.bukkit.entity.ArmorStand armorstand) getAllQuestsAttachedToNPC
(net.citizensnpcs.api.npc.NPC npc) final ArrayList<org.bukkit.entity.Player>
final ArrayList<net.citizensnpcs.api.npc.NPC>
final ArrayList<net.citizensnpcs.api.npc.NPC>
final String
getObjectiveTaskDescription
(Objective objective, boolean completed, org.bukkit.entity.Player player) final Quest
final String
getQuestRequirements
(Quest quest) final String
getQuestRewards
(Quest quest) getQuestsAttachedToArmorstandWithoutShowing
(org.bukkit.entity.ArmorStand armorstand) getQuestsAttachedToArmorstandWithShowing
(org.bukkit.entity.ArmorStand armorstand) getQuestsAttachedToNPCWithoutShowing
(net.citizensnpcs.api.npc.NPC npc) getQuestsAttachedToNPCWithShowing
(net.citizensnpcs.api.npc.NPC npc) final boolean
isDebugEnabledPlayer
(org.bukkit.entity.Player player) 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 itvoid
void
void
removeDebugEnabledPlayer
(org.bukkit.entity.Player player) void
sendActiveObjective
(org.bukkit.entity.Player player, ActiveObjective activeObjective) void
sendActiveObjectivesAndProgress
(org.bukkit.entity.Player player, ActiveQuest activeQuest) void
sendCompletedObjectivesAndProgress
(org.bukkit.entity.Player player, ActiveQuest activeQuest) void
sendObjectives
(org.bukkit.entity.Player player, Quest quest) void
sendObjectivesAdmin
(net.kyori.adventure.audience.Audience audience, Quest quest) boolean
sendQuestsPreviewOfQuestShownArmorstands
(org.bukkit.entity.ArmorStand armorStand, org.bukkit.entity.Player player) void
sendQuestsPreviewOfQuestShownNPCs
(net.citizensnpcs.api.npc.NPC npc, org.bukkit.entity.Player player) void
sendSingleQuestPreview
(org.bukkit.entity.Player player, Quest quest)
-
Field Details
-
miniMessage
protected final net.kyori.adventure.text.minimessage.MiniMessage miniMessage
-
-
Constructor Details
-
QuestManager
-
-
Method Details
-
createQuest
-
deleteQuest
-
getQuest
-
getAllQuests
-
loadQuestsFromConfig
public void loadQuestsFromConfig() -
getAllQuestsAttachedToArmorstand
-
getQuestsAttachedToArmorstandWithShowing
-
getQuestsAttachedToArmorstandWithoutShowing
-
getAllQuestsAttachedToNPC
-
getQuestsAttachedToNPCWithShowing
-
getQuestsAttachedToNPCWithoutShowing
-
getAllNPCsAttachedToQuest
-
getNPCsAttachedToQuestWithShowing
-
getNPCsAttachedToQuestWithoutShowing
-
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
-
getQuestRewards
-
sendSingleQuestPreview
-
loadNPCData
public void loadNPCData() -
cleanupBuggedNPCs
public void cleanupBuggedNPCs() -
sendCompletedObjectivesAndProgress
public void sendCompletedObjectivesAndProgress(org.bukkit.entity.Player player, ActiveQuest activeQuest) -
getObjectiveTaskDescription
-
sendActiveObjectivesAndProgress
public void sendActiveObjectivesAndProgress(org.bukkit.entity.Player player, ActiveQuest activeQuest) -
sendObjectives
-
sendObjectivesAdmin
-
sendActiveObjective
-
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 Standquest
- 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
-
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)
-