Class QuestReputationRewardTemplate
java.lang.Object
com.minecolonies.core.quests.rewards.QuestReputationRewardTemplate
- All Implemented Interfaces:
IQuestRewardTemplate
Quest reputation reward template.
-
Constructor Summary
ConstructorsConstructorDescriptionQuestReputationRewardTemplate(double quantity) Setup the quest reputation reward. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyReward(IColony colony, net.minecraft.world.entity.player.Player player, IQuestInstance colonyQuest) Apply the reward to colony and player.static IQuestRewardTemplatecreateReward(com.google.gson.JsonObject jsonObject) Create the reward.
-
Constructor Details
-
QuestReputationRewardTemplate
public QuestReputationRewardTemplate(double quantity) Setup the quest reputation reward.
-
-
Method Details
-
createReward
Create the reward.- Parameters:
jsonObject- the json to read from.- Returns:
- the reward object.
-
applyReward
public void applyReward(IColony colony, net.minecraft.world.entity.player.Player player, IQuestInstance colonyQuest) Description copied from interface:IQuestRewardTemplateApply the reward to colony and player.- Specified by:
applyRewardin interfaceIQuestRewardTemplate- Parameters:
colony- the involved colony.player- the involved player.colonyQuest- the related quest.
-