Interface FabricServerRecipeManager
public interface FabricServerRecipeManager
General-purpose Fabric-provided extensions for
ServerRecipeManager
class.-
Method Summary
Modifier and TypeMethodDescriptiondefault <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 giventype
that match the giveninput
andworld
.default <I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeEntry<T>> getAllOfType
(RecipeType<T> type)
-
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 giventype
that match the giveninput
andworld
.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
-