public interface ISuperRecipeRegistry extends IRegistry
| Modifier and Type | Method and Description |
|---|---|
<M extends IMachine,R extends IRecipe> |
findRecipe(IRecipeMatcher<M,R> recipeMatcher)
Returns the first recipe for which the matches() method of the given
IRecipeMatcher returns true. |
IRecipeMatch<IMachine,IRecipe> |
findRecipeByNamedId(java.lang.String namedId)
Finds all recipes who have the given named id.
|
<M extends IMachine,R extends IRecipe> |
findRecipes(IRecipeMatcher<M,R> recipeMatcher)
Returns a list of registered recipe for which the matches() method of the given
IRecipeMatcher returns true. |
java.util.List<IRecipeMatch<IMachine,IRecipe>> |
findRecipesByInput(IRecipeInput input)
Finds all recipes who have the given recipe input.
|
java.util.List<IRecipeMatch<IMachine,IRecipe>> |
findRecipesByMachine(IMachine machine)
Returns all the recipes for the given machine.
|
<M extends IMachine<M,I,O,P>,I extends IRecipeInput,O extends IRecipeOutput,P extends IRecipeProperties> |
getRecipeRegistry(M machine)
Returns the registry that is responsible for all recipes of the given machine.
|
java.util.List<IRecipe> |
getRecipes(IMachine machine)
Get the recipes for a machine.
|
<M extends IMachine<M,I,O,P>,I extends IRecipeInput,O extends IRecipeOutput,P extends IRecipeProperties> IRecipeRegistry<M,I,O,P> getRecipeRegistry(M machine)
M - The type of the machine.I - The type of input of all recipes for this machine.O - The type of ouput of all recipes for this machine.P - The type of properties of all recipes for this machine.machine - The machine for which we want the registry.java.util.List<IRecipe> getRecipes(IMachine machine)
machine - The machine.IRecipeMatch<IMachine,IRecipe> findRecipeByNamedId(java.lang.String namedId)
namedId - The unique named id of the recipe.java.util.List<IRecipeMatch<IMachine,IRecipe>> findRecipesByInput(IRecipeInput input)
input - The input of the recipe.java.util.List<IRecipeMatch<IMachine,IRecipe>> findRecipesByMachine(IMachine machine)
machine - The machine for which the recipes should be returned.<M extends IMachine,R extends IRecipe> IRecipeMatch<M,R> findRecipe(IRecipeMatcher<M,R> recipeMatcher)
IRecipeMatcher returns true.M - The machine type.R - The recipe type.recipeMatcher - A matcher that defines which recipes fit some matching criteria.<M extends IMachine,R extends IRecipe> java.util.List<IRecipeMatch<M,R>> findRecipes(IRecipeMatcher<M,R> recipeMatcher)
IRecipeMatcher returns true.M - The machine type.R - The recipe type.recipeMatcher - A matcher that defines which recipes fit some matching criteria.