Class Condition
java.lang.Object
rocks.gravili.notquests.paper.structs.conditions.Condition
- Direct Known Subclasses:
BooleanCondition
,CompletedObjectiveCondition
,ConditionCondition
,ListCondition
,NumberCondition
,StringCondition
,WorldTimeCondition
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheck
(QuestPlayer questPlayer) protected abstract String
checkInternally
(QuestPlayer questPlayer) abstract void
deserializeFromSingleLineString
(ArrayList<String> arguments) final Category
abstract String
getConditionDescription
(org.bukkit.entity.Player player, Object... objects) final String
final String
final Objective
long
final Quest
getQuest()
final boolean
abstract void
abstract void
void
setCategory
(Category category) void
setConditionName
(String conditionName) void
setNegated
(boolean negated) void
setObjective
(Objective objective) void
setProgressNeeded
(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
-