Package com.minecolonies.api.quests
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 TypeMethodDescriptionvoidNotify quest participant about their participation.getName()Get a display name for the quest participant.booleanisParticipantOfQuest(net.minecraft.resources.ResourceLocation questId) Check if the citizen has a quest open.voidonQuestDeletion(net.minecraft.resources.ResourceLocation questId) Method for cleanup purposes on quest deletion.voidopenDialogue(IQuestInstance quest, int index) Initiates a dialogue at the citizen.
-
Method Details
-
addQuestParticipation
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
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.
-