Class ExpandAdvancementRewards

java.lang.Object
com.blamejared.crafttweaker.natives.advancement.ExpandAdvancementRewards

@ZenRegister public class ExpandAdvancementRewards extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.resources.ResourceLocation>
    getRecipes(net.minecraft.advancements.AdvancementRewards internal)
    Gets the recipes that are unlocked when the advancement is completed.
    static void
    grant(net.minecraft.advancements.AdvancementRewards internal, net.minecraft.server.level.ServerPlayer player)
    Grants the advancement rewards to the player.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAdvancementRewards

      public ExpandAdvancementRewards()
  • Method Details

    • getRecipes

      public static List<net.minecraft.resources.ResourceLocation> getRecipes(net.minecraft.advancements.AdvancementRewards internal)
      Gets the recipes that are unlocked when the advancement is completed.
      Returns:
      The recipes that are unlocked when the advancement is completed.
    • grant

      public static void grant(net.minecraft.advancements.AdvancementRewards internal, net.minecraft.server.level.ServerPlayer player)
      Grants the advancement rewards to the player.
      Parameters:
      player - The player to grant the advancement rewards to.