Class FabricRecipePlatform

java.lang.Object
com.example.uselocalrecipes.platform.FabricRecipePlatform
All Implemented Interfaces:
IRecipePlatform

public class FabricRecipePlatform extends Object implements IRecipePlatform
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricRecipePlatform

      public FabricRecipePlatform()
  • Method Details

    • createModDataPacks

      public List<net.minecraft.server.packs.PackResources> createModDataPacks()
      Description copied from interface: IRecipePlatform
      A data pack for every loaded mod, lowest priority first. The vanilla pack is added by LocalRecipeLoader.
      Specified by:
      createModDataPacks in interface IRecipePlatform
    • injectRecipes

      public void injectRecipes(Set<net.minecraft.world.item.crafting.RecipeType<?>> recipeTypes, net.minecraft.world.item.crafting.RecipeMap recipes)
      Description copied from interface: IRecipePlatform
      Hands the merged recipes to the loader's client recipe synchronization, so viewers see them as server data.
      Specified by:
      injectRecipes in interface IRecipePlatform
    • registerClientLifecycle

      public void registerClientLifecycle()
      Description copied from interface: IRecipePlatform
      Registers the loader specific client hooks, called once from the client entry point.
      Specified by:
      registerClientLifecycle in interface IRecipePlatform