java.lang.Object
rocks.gravili.notquests.paper.structs.conditions.Condition
Direct Known Subclasses:
BooleanCondition, CompletedObjectiveCondition, ConditionCondition, ListCondition, NumberCondition, StringCondition, WorldTimeCondition

public abstract class Condition extends Object
  • Field Details

  • Constructor Details

    • Condition

      public Condition(NotQuests main)
  • Method Details

    • getCategory

      public final Category getCategory()
    • setCategory

      public void setCategory(Category category)
    • setProgressNeeded

      public void setProgressNeeded(long progressNeeded)
    • setQuest

      public void setQuest(Quest quest)
    • setObjective

      public void setObjective(Objective objective)
    • getConditionType

      public final String getConditionType()
    • getProgressNeeded

      public long getProgressNeeded()
    • getQuest

      public final Quest getQuest()
    • getObjective

      public final Objective getObjective()
    • getConditionName

      public final String getConditionName()
    • setConditionName

      public void setConditionName(String conditionName)
    • checkInternally

      protected abstract String checkInternally(QuestPlayer questPlayer)
      Returns:
      String if the condition is not fulfilled. Empty string if the condition is fulfilled. The String should say the still-required condition.
    • check

      public String check(QuestPlayer questPlayer)
    • getConditionDescription

      public abstract String getConditionDescription(org.bukkit.entity.Player player, Object... objects)
    • 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

      public abstract void deserializeFromSingleLineString(ArrayList<String> arguments)