Interface IQuestParticipant

All Known Subinterfaces:
ICitizenData, IQuestGiver, IVisitorData
All Known Implementing Classes:
CitizenData, VisitorData

public interface IQuestParticipant
Type of entity that participates somehow in quests.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notify quest participant about their participation.
    Get a display name for the quest participant.
    boolean
    isParticipantOfQuest(net.minecraft.resources.ResourceLocation questId)
    Check if the citizen has a quest open.
    void
    onQuestDeletion(net.minecraft.resources.ResourceLocation questId)
    Method for cleanup purposes on quest deletion.
    void
    openDialogue(IQuestInstance quest, int index)
    Initiates a dialogue at the citizen.
  • Method Details

    • addQuestParticipation

      void addQuestParticipation(IQuestInstance quest)
      Notify quest participant about their participation.
      Parameters:
      quest - the quest to assign to the entity.
    • onQuestDeletion

      void onQuestDeletion(net.minecraft.resources.ResourceLocation questId)
      Method for cleanup purposes on quest deletion.
      Parameters:
      questId - the id of the quest.
    • isParticipantOfQuest

      boolean isParticipantOfQuest(net.minecraft.resources.ResourceLocation questId)
      Check if the citizen has a quest open.
      Parameters:
      questId - the id of the quest.
      Returns:
      true if so.
    • openDialogue

      void openDialogue(IQuestInstance quest, int index)
      Initiates a dialogue at the citizen.
      Parameters:
      quest - the quest to open it for.
      index - the current objective index
    • getName

      String getName()
      Get a display name for the quest participant.
      Returns:
      the display name.