java.lang.Object
com.ordwen.odailyquests.quests.player.progression.clickable.QuestCommand<Q>
Direct Known Subclasses:
GetQuestCommand, LocationQuestCommand, PlaceholderQuestCommand, VillagerTradeQuestCommand

public abstract class QuestCommand<Q extends AbstractQuest> extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public abstract void execute()
      Validate and complete the quest.
    • sendMessage

      protected void sendMessage(QuestsMessages message)
      Send a message to the player if the message is defined.
      Parameters:
      message - the message enum.
    • completeQuest

      protected void completeQuest()
      Call the quest completion event.