Class AdvancementRewards
java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewards
A holder for advancements and rewards.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdvancementRewards
(String id, List<net.minecraft.resources.ResourceLocation> advancements, List<IReward> rewards) -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementRewards
getAdvancementRewards
(String achievementRewardsId) protected String
boolean
isObtained
(net.minecraft.world.entity.player.Player player) void
obtain
(net.minecraft.world.entity.player.Player player) static void
reset()
-
Field Details
-
NBT_KEY_OBTAINED_PREFIX
-
-
Constructor Details
-
AdvancementRewards
-
-
Method Details
-
reset
public static void reset() -
getAdvancementRewards
-
getNbtTagKey
-
isObtained
public boolean isObtained(net.minecraft.world.entity.player.Player player) -
obtain
public void obtain(net.minecraft.world.entity.player.Player player)
-