Interface IRecipePlatform
- All Known Implementing Classes:
NeoForgeRecipePlatform
public interface IRecipePlatform
Loader specific parts of the recipe flow, implemented by the fabric and neoforge modules.
-
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.server.packs.PackResources> A data pack for every loaded mod, lowest priority first.voidinjectRecipes(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.voidRegisters 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.
-