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
ConstructorDescriptionActiveObjective
(NotQuests main, int objectiveID, Objective objective, ActiveQuest activeQuest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProgress
(long progressToAdd) void
addProgress
(long progressToAdd, boolean silent) void
addProgress
(long progressToAdd, int NPCID) void
addProgress
(long progressToAdd, int NPCID, boolean silent) void
addProgress
(long progressToAdd, int NPCID, UUID armorStandUUID, boolean silent) void
addProgress
(long progressToAdd, UUID armorStandUUID) void
addProgress
(long progressToAdd, UUID armorStandUUID, boolean silent) final ActiveQuest
final long
final Objective
final int
final long
final QuestPlayer
final boolean
final boolean
isCompleted
(int NPCID) final boolean
isCompleted
(UUID armorStandUUID) final boolean
void
removeProgress
(int i, boolean capAtZero) void
setHasBeenCompleted
(boolean hasBeenCompleted) final void
setUnlocked
(boolean unlocked, boolean notifyPlayer, boolean triggerAcceptQuestTrigger) void
updateUnlocked
(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)
-