Class IDialogueObjectiveTemplate.AnswerElement

java.lang.Object
com.minecolonies.api.quests.IDialogueObjectiveTemplate.AnswerElement
Enclosing interface:
IDialogueObjectiveTemplate

public static class IDialogueObjectiveTemplate.AnswerElement extends Object
An answer element part of a dialogue path.
  • Constructor Details

    • AnswerElement

      public AnswerElement(net.minecraft.network.chat.Component text, IQuestDialogueAnswer answerResult)
      Create a new answer element.
      Parameters:
      text - the text for the player.
      answerResult - the result from the choice.
  • Method Details

    • parse

      public static IDialogueObjectiveTemplate.AnswerElement parse(com.google.gson.JsonObject jsonObject)
      Parse the answer element from json.
      Parameters:
      jsonObject - the json obj.
      Returns:
      the answer element.