Class WorldDifficultyTriggerTemplate
java.lang.Object
com.minecolonies.core.quests.triggers.WorldDifficultyTriggerTemplate
- All Implemented Interfaces:
IQuestTriggerTemplate
World difficulty quest trigger.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldDifficultyTriggerTemplate(net.minecraft.world.Difficulty difficulty) Create a new instance of this trigger. -
Method Summary
Modifier and TypeMethodDescriptioncanTriggerQuest(IColony colony) Check if the quest trigger condition is fulfilled.createDifficultyTrigger(com.google.gson.JsonObject jsonObj) Create a new trigger directly from json.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.quests.IQuestTriggerTemplate
canTriggerQuest
-
Constructor Details
-
WorldDifficultyTriggerTemplate
public WorldDifficultyTriggerTemplate(net.minecraft.world.Difficulty difficulty) Create a new instance of this trigger.
-
-
Method Details
-
createDifficultyTrigger
public static WorldDifficultyTriggerTemplate createDifficultyTrigger(com.google.gson.JsonObject jsonObj) Create a new trigger directly from json.- Parameters:
jsonObj- 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.
-