Class Condition
java.lang.Object
rocks.gravili.notquests.paper.structs.conditions.Condition
- Direct Known Subclasses:
BooleanCondition,CompletedObjectiveCondition,ConditionCondition,ListCondition,NumberCondition,StringCondition,WorldTimeCondition
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(QuestPlayer questPlayer) protected abstract StringcheckInternally(QuestPlayer questPlayer) abstract voiddeserializeFromSingleLineString(ArrayList<String> arguments) final Categoryabstract StringgetConditionDescription(org.bukkit.entity.Player player, Object... objects) final Stringfinal Stringfinal Objectivelongfinal QuestgetQuest()final booleanabstract voidabstract voidvoidsetCategory(Category category) voidsetConditionName(String conditionName) voidsetNegated(boolean negated) voidsetObjective(Objective objective) voidsetProgressNeeded(long progressNeeded) void
-
Field Details
-
main
-
-
Constructor Details
-
Condition
-
-
Method Details
-
getCategory
-
setCategory
-
setProgressNeeded
public void setProgressNeeded(long progressNeeded) -
setQuest
-
setObjective
-
getConditionType
-
getProgressNeeded
public long getProgressNeeded() -
getQuest
-
getObjective
-
getConditionName
-
setConditionName
-
checkInternally
- Returns:
- String if the condition is not fulfilled. Empty string if the condition is fulfilled. The String should say the still-required condition.
-
check
-
getConditionDescription
-
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) -
setNegated
public void setNegated(boolean negated) -
isNegated
public final boolean isNegated() -
deserializeFromSingleLineString
-