Interface FabricServerRecipeManager


public interface FabricServerRecipeManager
General-purpose Fabric-provided extensions for ServerRecipeManager class.
  • Method Details

    • getAllMatches

      default <I extends RecipeInput, T extends Recipe<I>> Stream<RecipeEntry<T>> getAllMatches(RecipeType<T> type, I input, World world)
      Creates a stream of all recipe entries of the given type that match the given input and world.

      If input.isEmpty() returns true, the returned stream will be always empty.

      Returns:
      the stream of matching recipes
    • getAllOfType

      default <I extends RecipeInput, T extends Recipe<I>> Collection<RecipeEntry<T>> getAllOfType(RecipeType<T> type)
      Returns:
      the collection of recipe entries of given type