P - The class of the property that should be matched.public abstract class RecipePropertyMatcher<M extends IMachine,R extends IRecipe,P> extends RecipeMatcher<M,R>
| Constructor and Description |
|---|
RecipePropertyMatcher(P property) |
| Modifier and Type | Method and Description |
|---|---|
abstract P |
getProperty(M machine,
R recipe)
Returns the property of the recipe that should be matched.
|
boolean |
matches(M machine,
R recipeToMatch)
If the given recipe can be created in the given machine.
|
findRecipe, findRecipespublic RecipePropertyMatcher(P property)
public boolean matches(M machine, R recipeToMatch)
IRecipeMatchermachine - The machine.recipeToMatch - The recipe to match.