Class QuestCommand<Q extends AbstractQuest>
java.lang.Object
com.ordwen.odailyquests.quests.player.progression.clickable.QuestCommand<Q>
- Direct Known Subclasses:
GetQuestCommand
,LocationQuestCommand
,PlaceholderQuestCommand
,VillagerTradeQuestCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final QuestContext
protected final Progression
protected final Q
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
QuestCommand
(QuestContext context, Progression progression, Q quest) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Call the quest completion event.abstract void
execute()
Validate and complete the quest.protected void
sendMessage
(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.
-