Package com.minecolonies.api.quests
Class IQuestDialogueAnswer.NextObjectiveDialogueAnswer
java.lang.Object
com.minecolonies.api.quests.IQuestDialogueAnswer.NextObjectiveDialogueAnswer
- All Implemented Interfaces:
IFinalQuestDialogueAnswer,IQuestDialogueAnswer,IQuestPositiveDialogueAnswer
- Enclosing interface:
- IQuestDialogueAnswer
public static class IQuestDialogueAnswer.NextObjectiveDialogueAnswer
extends Object
implements IQuestPositiveDialogueAnswer
Will advance the quest to another objective.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.minecolonies.api.quests.IQuestDialogueAnswer
IQuestDialogueAnswer.CloseUIDialogueAnswer, IQuestDialogueAnswer.NextObjectiveDialogueAnswer, IQuestDialogueAnswer.QuestCancellationDialogueAnswer -
Constructor Summary
ConstructorsConstructorDescriptionNextObjectiveDialogueAnswer(int nextObjective) Create a new go to result.NextObjectiveDialogueAnswer(com.google.gson.JsonObject jsonObject) Create the go to result from json. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToQuest(net.minecraft.world.entity.player.Player player, IQuestInstance quest) Apply the objective to colony quest.
-
Constructor Details
-
NextObjectiveDialogueAnswer
public NextObjectiveDialogueAnswer(int nextObjective) Create a new go to result.- Parameters:
nextObjective- the next obj index.
-
NextObjectiveDialogueAnswer
public NextObjectiveDialogueAnswer(com.google.gson.JsonObject jsonObject) Create the go to result from json.- Parameters:
jsonObject- the json obj.
-
-
Method Details
-
applyToQuest
Description copied from interface:IFinalQuestDialogueAnswerApply the objective to colony quest. This only applies to the terminal ones!- Specified by:
applyToQuestin interfaceIFinalQuestDialogueAnswer- Parameters:
player- the player triggering it.quest- the quest to apply itself to.
-