Class LocalRecipeLoader
java.lang.Object
com.example.uselocalrecipes.recipe.LocalRecipeLoader
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 Summary
Modifier and TypeMethodDescriptionstatic LocalRecipeDataload(net.minecraft.core.RegistryAccess registries, List<net.minecraft.server.packs.PackResources> modPacks)
-
Method Details
-
load
public static LocalRecipeData load(net.minecraft.core.RegistryAccess registries, List<net.minecraft.server.packs.PackResources> modPacks)
-