Interface IRecipePlatform

All Known Implementing Classes:
FabricRecipePlatform

public interface IRecipePlatform
Loader specific parts of the recipe flow, implemented by the fabric and neoforge modules.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.server.packs.PackResources>
    A data pack for every loaded mod, lowest priority first.
    void
    injectRecipes(Set<net.minecraft.world.item.crafting.RecipeType<?>> recipeTypes, net.minecraft.world.item.crafting.RecipeMap recipes)
    Hands the merged recipes to the loader's client recipe synchronization, so viewers see them as server data.
    void
    Registers the loader specific client hooks, called once from the client entry point.
  • Method Details

    • createModDataPacks

      List<net.minecraft.server.packs.PackResources> createModDataPacks()
      A data pack for every loaded mod, lowest priority first. The vanilla pack is added by LocalRecipeLoader.
    • injectRecipes

      void injectRecipes(Set<net.minecraft.world.item.crafting.RecipeType<?>> recipeTypes, net.minecraft.world.item.crafting.RecipeMap recipes)
      Hands the merged recipes to the loader's client recipe synchronization, so viewers see them as server data.
    • registerClientLifecycle

      void registerClientLifecycle()
      Registers the loader specific client hooks, called once from the client entry point.