Interface IQuestTriggerTemplate

All Known Implementing Classes:
CitizenQuestTriggerTemplate, QuestReputationTriggerTemplate, RandomQuestTriggerTemplate, StateQuestTriggerTemplate, UnlockQuestTriggerTemplate, WorldDifficultyTriggerTemplate

public interface IQuestTriggerTemplate
Quest triggers are used to check if a colony fulfills certain conditions for a quest to be made available.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 boolean
    matchNbt(net.minecraft.nbt.Tag nbtTag, com.google.gson.JsonElement matchTag)
    Match a nbt tag and a json element tag.
    static boolean
    matchNbt(net.minecraft.nbt.Tag nbtTag, com.google.gson.JsonElement matchTag, int count)
    Match a nbt tag and a json element tag.
  • Method Details

    • canTriggerQuest

      ITriggerReturnData canTriggerQuest(IColony colony)
      Check if the quest trigger condition is fulfilled.
      Parameters:
      colony - the colony the quest is in.
      Returns:
      true if so.
    • canTriggerQuest

      default ITriggerReturnData canTriggerQuest(net.minecraft.resources.ResourceLocation questId, IColony colony)
      Check if the quest trigger condition is fulfilled.
      Parameters:
      questId - the quest to try to trigger.
      colony - the colony the quest is in.
      Returns:
      true if so.
    • matchNbt

      static boolean matchNbt(net.minecraft.nbt.Tag nbtTag, com.google.gson.JsonElement matchTag)
      Match a nbt tag and a json element tag.
      Parameters:
      nbtTag - the nbt tag to check.
      matchTag - the element tag to check.
      Returns:
      true if the matchTag fits into the nbtTag or if they match.
    • matchNbt

      static boolean matchNbt(net.minecraft.nbt.Tag nbtTag, com.google.gson.JsonElement matchTag, int count)
      Match a nbt tag and a json element tag.
      Parameters:
      nbtTag - the nbt tag to check.
      matchTag - the element tag to check.
      count - the number of elements to match in a list.
      Returns:
      true if the matchTag fits into the nbtTag or if they match.