Class NeoForgeRecipePlatform
java.lang.Object
com.example.uselocalrecipes.platform.NeoForgeRecipePlatform
- All Implemented Interfaces:
IRecipePlatform
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
NeoForgeRecipePlatform
public NeoForgeRecipePlatform()
-
-
Method Details
-
createModDataPacks
Description copied from interface:IRecipePlatformA data pack for every loaded mod, lowest priority first. The vanilla pack is added by LocalRecipeLoader.- Specified by:
createModDataPacksin interfaceIRecipePlatform
-
injectRecipes
public void injectRecipes(Set<net.minecraft.world.item.crafting.RecipeType<?>> recipeTypes, net.minecraft.world.item.crafting.RecipeMap recipes) Description copied from interface:IRecipePlatformHands the merged recipes to the loader's client recipe synchronization, so viewers see them as server data.- Specified by:
injectRecipesin interfaceIRecipePlatform
-
registerClientLifecycle
public void registerClientLifecycle()Description copied from interface:IRecipePlatformRegisters the loader specific client hooks, called once from the client entry point.- Specified by:
registerClientLifecyclein interfaceIRecipePlatform
-