Class LocalRecipeLoader

java.lang.Object
com.example.uselocalrecipes.recipe.LocalRecipeLoader

public final class LocalRecipeLoader extends Object
Reads the recipe files that ship with the game, the mods and the local data packs.

It builds a real data pack stack and runs the vanilla loading path instead of parsing json by hand, so ingredients referring to item tags resolve against the tags of those packs.

  • Method Details

    • load

      public static LocalRecipeData load(net.minecraft.core.RegistryAccess registries, List<net.minecraft.server.packs.PackResources> modPacks)