Class Objective
java.lang.Object
rocks.gravili.notquests.spigot.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCondition(Condition condition, boolean save) voidvoidvoidfinal UUIDfinal intfinal Stringfinal StringgetObjectiveDescription(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 Stringfinal Stringfinal intabstract StringgetObjectiveTaskDescription(String eventualColor, org.bukkit.entity.Player player) final longfinal QuestgetQuest()abstract voidabstract voidonObjectiveUnlock(ActiveObjective activeObjective) voidremoveCondition(Condition condition, boolean save) voidremoveObjectiveDescription(boolean save) voidremoveObjectiveDisplayName(boolean save) voidremoveReward(Action action, boolean save) abstract voidfinal voidsetCompletionArmorStandUUID(UUID completionArmorStandUUID, boolean save) final voidsetCompletionNPCID(int completionNPCID, boolean save) voidsetObjectiveDescription(String newObjectiveDescription, boolean save) voidsetObjectiveDisplayName(String newObjectiveDisplayName, boolean save) voidsetObjectiveID(int objectiveID) voidsetProgressNeeded(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
-