Class QuestCommand<Q extends AbstractQuest>
java.lang.Object
com.ordwen.odailyquests.quests.player.progression.clickable.QuestCommand<Q>
- Direct Known Subclasses:
GetQuestCommand,LocationQuestCommand,ManualCompletionQuestCommand,PlaceholderQuestCommand,VillagerTradeQuestCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final QuestContextprotected final Progressionprotected final Q -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQuestCommand(QuestContext context, Progression progression, Q quest) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCall the quest completion event.abstract voidexecute()Validate and complete the quest.protected voidsendMessage(QuestsMessages message) Send a message to the player if the message is defined.
-
Field Details
-
context
-
progression
-
quest
-
-
Constructor Details
-
QuestCommand
-
-
Method Details
-
execute
public abstract void execute()Validate and complete the quest. -
sendMessage
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.
-