Class UnlockQuestTriggerTemplate

java.lang.Object
com.minecolonies.core.quests.triggers.UnlockQuestTriggerTemplate
All Implemented Interfaces:
IQuestTriggerTemplate

public class UnlockQuestTriggerTemplate extends Object implements IQuestTriggerTemplate
Unlock quest trigger.
  • Constructor Details

    • UnlockQuestTriggerTemplate

      public UnlockQuestTriggerTemplate()
      Create a new instance of this trigger.
  • Method Details

    • createUnlockTrigger

      public static UnlockQuestTriggerTemplate createUnlockTrigger(com.google.gson.JsonObject ignoreJson)
      Create a new trigger directly from json.
      Parameters:
      ignoreJson - the json associated to this trigger.
    • canTriggerQuest

      public ITriggerReturnData canTriggerQuest(IColony colony)
      Description copied from interface: IQuestTriggerTemplate
      Check if the quest trigger condition is fulfilled.
      Specified by:
      canTriggerQuest in interface IQuestTriggerTemplate
      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: IQuestTriggerTemplate
      Check if the quest trigger condition is fulfilled.
      Specified by:
      canTriggerQuest in interface IQuestTriggerTemplate
      Parameters:
      questId - the quest to try to trigger.
      colony - the colony the quest is in.
      Returns:
      true if so.