Class ActiveObjective
java.lang.Object
rocks.gravili.notquests.paper.structs.ActiveObjective
This is a special object for active objectives. Apart from the main Objective object which stores information about what defines the objective itself,
it contains other information like the ActiveQuest for which the objective is (the ActiveQuest object ALSO stores this ActiveObjective object, so they
can access each other).
It also contains the progress and information about if this active objective has been completed - because there is NO CompletedObjective object. Completed objectives will still be instances of the ActiveObjective class.
-
Constructor Summary
ConstructorsConstructorDescriptionActiveObjective(NotQuests main, int objectiveID, Objective objective, ActiveQuest activeQuest) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgress(long progressToAdd) voidaddProgress(long progressToAdd, boolean silent) voidaddProgress(long progressToAdd, int NPCID) voidaddProgress(long progressToAdd, int NPCID, boolean silent) voidaddProgress(long progressToAdd, int NPCID, UUID armorStandUUID, boolean silent) voidaddProgress(long progressToAdd, UUID armorStandUUID) voidaddProgress(long progressToAdd, UUID armorStandUUID, boolean silent) final ActiveQuestfinal longfinal Objectivefinal intfinal longfinal QuestPlayerfinal booleanfinal booleanisCompleted(int NPCID) final booleanisCompleted(UUID armorStandUUID) final booleanvoidremoveProgress(int i, boolean capAtZero) voidsetHasBeenCompleted(boolean hasBeenCompleted) final voidsetUnlocked(boolean unlocked, boolean notifyPlayer, boolean triggerAcceptQuestTrigger) voidupdateUnlocked(boolean notifyPlayer, boolean triggerAcceptQuestTrigger)
-
Constructor Details
-
ActiveObjective
public ActiveObjective(NotQuests main, int objectiveID, Objective objective, ActiveQuest activeQuest)
-
-
Method Details
-
setUnlocked
public final void setUnlocked(boolean unlocked, boolean notifyPlayer, boolean triggerAcceptQuestTrigger) -
isUnlocked
public final boolean isUnlocked() -
updateUnlocked
public void updateUnlocked(boolean notifyPlayer, boolean triggerAcceptQuestTrigger) -
getObjective
-
getProgressNeeded
public final long getProgressNeeded() -
getCurrentProgress
public final long getCurrentProgress() -
addProgress
public void addProgress(long progressToAdd) -
addProgress
public void addProgress(long progressToAdd, boolean silent) -
addProgress
public void addProgress(long progressToAdd, int NPCID) -
addProgress
public void addProgress(long progressToAdd, int NPCID, boolean silent) -
addProgress
-
addProgress
-
addProgress
-
removeProgress
public void removeProgress(int i, boolean capAtZero) -
isCompleted
public final boolean isCompleted(int NPCID) -
isCompleted
-
getQuestPlayer
-
getActiveQuest
-
getObjectiveID
public final int getObjectiveID() -
hasBeenCompleted
public final boolean hasBeenCompleted() -
setHasBeenCompleted
public void setHasBeenCompleted(boolean hasBeenCompleted)
-