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.
  • 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

      public void applyToQuest(net.minecraft.world.entity.player.Player player, IQuestInstance quest)
      Description copied from interface: IFinalQuestDialogueAnswer
      Apply the objective to colony quest. This only applies to the terminal ones!
      Specified by:
      applyToQuest in interface IFinalQuestDialogueAnswer
      Parameters:
      player - the player triggering it.
      quest - the quest to apply itself to.