Class Objective
java.lang.Object
rocks.gravili.notquests.paper.structs.objectives.Objective
- Direct Known Subclasses:
BreakBlocksObjective
,BreedObjective
,CollectItemsObjective
,ConsumeItemsObjective
,CraftItemsObjective
,DeliverItemsObjective
,EscortNPCObjective
,InteractObjective
,JobsRebornReachJobLevel
,JumpObjective
,KillEliteMobsObjective
,KillMobsObjective
,OtherQuestObjective
,PlaceBlocksObjective
,ProjectKorraUseAbilityObjective
,ReachLocationObjective
,RunCommandObjective
,SlimefunResearchObjective
,SmeltObjective
,SneakObjective
,TalkToNPCObjective
,TownyNationReachTownCountObjective
,TownyReachResidentCountObjective
,TriggerCommandObjective
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(Condition condition, boolean save) void
void
void
final UUID
final int
final String
final String
getObjectiveDescription
(int maxLengthPerLine) Gets the objective description, but also adds line-breaks so the description is not bigger than the screen (useful for the GUI)final String
final String
final int
abstract String
getObjectiveTaskDescription
(String eventualColor, org.bukkit.entity.Player player) final long
final Quest
getQuest()
abstract void
abstract void
onObjectiveUnlock
(ActiveObjective activeObjective) void
removeCondition
(Condition condition, boolean save) void
removeObjectiveDescription
(boolean save) void
removeObjectiveDisplayName
(boolean save) void
removeReward
(Action action, boolean save) abstract void
final void
setCompletionArmorStandUUID
(UUID completionArmorStandUUID, boolean save) final void
setCompletionNPCID
(int completionNPCID, boolean save) void
setObjectiveDescription
(String newObjectiveDescription, boolean save) void
setObjectiveDisplayName
(String newObjectiveDisplayName, boolean save) void
setObjectiveID
(int objectiveID) void
setProgressNeeded
(long progressNeeded) void
-
Field Details
-
main
-
-
Constructor Details
-
Objective
-
-
Method Details
-
setQuest
-
setProgressNeeded
public void setProgressNeeded(long progressNeeded) -
setObjectiveID
public void setObjectiveID(int objectiveID) -
getCompletionNPCID
public final int getCompletionNPCID() -
getCompletionArmorStandUUID
-
setCompletionNPCID
public final void setCompletionNPCID(int completionNPCID, boolean save) -
setCompletionArmorStandUUID
-
getObjectiveID
public final int getObjectiveID() -
getProgressNeeded
public final long getProgressNeeded() -
getConditions
-
getRewards
-
addCondition
-
addReward
-
removeCondition
-
removeReward
-
clearRewards
public void clearRewards() -
clearConditions
public void clearConditions() -
getObjectiveDisplayName
-
getObjectiveFinalName
-
setObjectiveDisplayName
-
removeObjectiveDisplayName
public void removeObjectiveDisplayName(boolean save) -
getObjectiveDescription
-
getObjectiveDescription
Gets the objective description, but also adds line-breaks so the description is not bigger than the screen (useful for the GUI)- Parameters:
maxLengthPerLine
- how long the description can be per-line- Returns:
- the description of the objective with proper line-breaks
-
setObjectiveDescription
-
removeObjectiveDescription
public void removeObjectiveDescription(boolean save) -
getQuest
-
getObjectiveTaskDescription
-
save
public abstract void save(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath) -
load
public abstract void load(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath) -
onObjectiveUnlock
-