Class FabricBrewingRecipes

java.lang.Object
net.ixdarklord.coolcatcore.api.brewing.fabric.FabricBrewingRecipes

public final class FabricBrewingRecipes extends Object
The custom brewing recipes on Fabric, next to vanilla's (static) PotionBrewing mixes, which the brewing stand checks first. They're registered through RegisterBrewingRecipesEvent, fired once the game has started (see registerRecipes()); until then there are none.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.ixdarklord.coolcatcore.api.brewing.IBrewingRecipe>
    Retrieves recipes that use the more general interface.
    static boolean
    isInput(net.minecraft.world.item.ItemStack stack)
    Checks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.
    static void
    Fires RegisterBrewingRecipesEvent and keeps its recipes; only the first call does anything.
    static net.ixdarklord.coolcatcore.api.brewing.BrewingRecipeRegistry
     

    Methods inherited from class java.lang.Object

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

    • getRecipes

      public static List<net.ixdarklord.coolcatcore.api.brewing.IBrewingRecipe> getRecipes()
      Retrieves recipes that use the more general interface. This does NOT include the container and potion mixes.
    • isInput

      public static boolean isInput(net.minecraft.world.item.ItemStack stack)
      Checks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.
    • registry

      @Internal public static net.ixdarklord.coolcatcore.api.brewing.BrewingRecipeRegistry registry()
    • registerRecipes

      @Internal public static void registerRecipes()
      Fires RegisterBrewingRecipesEvent and keeps its recipes; only the first call does anything. Called once the client has started, or as a dedicated server starts, so every mod has registered its listeners.