Package com.minecolonies.api.quests
Interface IQuestDeliveryObjective
- All Superinterfaces:
IDialogueObjectiveTemplate,IQuestObjectiveTemplate
- All Known Implementing Classes:
DeliveryObjectiveTemplateTemplate
Quest objective interface for deliveries.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.minecolonies.api.quests.IDialogueObjectiveTemplate
IDialogueObjectiveTemplate.AnswerElement, IDialogueObjectiveTemplate.DialogueElement -
Method Summary
Modifier and TypeMethodDescriptionDialogue tree when the conditions are fulfilled.booleanhasItem(net.minecraft.world.entity.player.Player player, IQuestInstance colonyQuest) Check if the objective is ready to move on.booleantryDiscountItem(net.minecraft.world.entity.player.Player player, IQuestInstance colonyQuest) Attempt to resolve an objective.Methods inherited from interface com.minecolonies.api.quests.IDialogueObjectiveTemplate
getDialogueTreeMethods inherited from interface com.minecolonies.api.quests.IQuestObjectiveTemplate
createObjectiveInstance, getProgressText, getRewardUnlocks, getTarget, onCancellation, onWorldLoad, startObjective
-
Method Details
-
hasItem
Check if the objective is ready to move on.- Parameters:
colonyQuest- the objective belongs to.- Returns:
- true if so.
-
tryDiscountItem
boolean tryDiscountItem(net.minecraft.world.entity.player.Player player, IQuestInstance colonyQuest) Attempt to resolve an objective.- Parameters:
colonyQuest- the objective belongs to.- Returns:
- true if so.
-
getReadyDialogueTree
IDialogueObjectiveTemplate.DialogueElement getReadyDialogueTree()Dialogue tree when the conditions are fulfilled.- Returns:
- the dialogue to play.
-