Class UnlockQuestTriggerTemplate
java.lang.Object
com.minecolonies.core.quests.triggers.UnlockQuestTriggerTemplate
- All Implemented Interfaces:
IQuestTriggerTemplate
Unlock quest trigger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanTriggerQuest(IColony colony) Check if the quest trigger condition is fulfilled.canTriggerQuest(net.minecraft.resources.ResourceLocation questId, IColony colony) Check if the quest trigger condition is fulfilled.static UnlockQuestTriggerTemplatecreateUnlockTrigger(com.google.gson.JsonObject ignoreJson) Create a new trigger directly from json.
-
Constructor Details
-
UnlockQuestTriggerTemplate
public UnlockQuestTriggerTemplate()Create a new instance of this trigger.
-
-
Method Details
-
createUnlockTrigger
Create a new trigger directly from json.- Parameters:
ignoreJson- the json associated to this trigger.
-
canTriggerQuest
Description copied from interface:IQuestTriggerTemplateCheck if the quest trigger condition is fulfilled.- Specified by:
canTriggerQuestin interfaceIQuestTriggerTemplate- Parameters:
colony- the colony the quest is in.- Returns:
- true if so.
-
canTriggerQuest
public ITriggerReturnData canTriggerQuest(net.minecraft.resources.ResourceLocation questId, IColony colony) Description copied from interface:IQuestTriggerTemplateCheck if the quest trigger condition is fulfilled.- Specified by:
canTriggerQuestin interfaceIQuestTriggerTemplate- Parameters:
questId- the quest to try to trigger.colony- the colony the quest is in.- Returns:
- true if so.
-