Class AdvancementRewards

java.lang.Object
org.cyclops.cyclopscore.infobook.pageelement.AdvancementRewards

public class AdvancementRewards extends Object
A holder for advancements and rewards.
  • Field Details

    • NBT_KEY_OBTAINED_PREFIX

      public static String NBT_KEY_OBTAINED_PREFIX
  • Constructor Details

    • AdvancementRewards

      public AdvancementRewards(String id, List<net.minecraft.resources.ResourceLocation> advancements, List<IReward> rewards)
  • Method Details

    • reset

      public static void reset()
    • getAdvancementRewards

      public static AdvancementRewards getAdvancementRewards(String achievementRewardsId)
    • getNbtTagKey

      protected String getNbtTagKey()
    • isObtained

      public boolean isObtained(net.minecraft.world.entity.player.Player player)
    • obtain

      public void obtain(net.minecraft.world.entity.player.Player player)