public class BrewingRecipeHandler extends java.lang.Object implements IRecipeHandler<BrewingRecipeWrapper>
Constructor and Description |
---|
BrewingRecipeHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRecipeCategoryUid(BrewingRecipeWrapper recipe)
Returns this recipe's unique category id.
|
java.lang.Class<BrewingRecipeWrapper> |
getRecipeClass()
Returns the class of the Recipe handled by this IRecipeHandler.
|
BrewingRecipeWrapper |
getRecipeWrapper(BrewingRecipeWrapper recipe)
Returns a recipe wrapper for the given recipe.
|
boolean |
isRecipeValid(BrewingRecipeWrapper recipe)
Returns true if a recipe is valid and can be used.
|
public java.lang.Class<BrewingRecipeWrapper> getRecipeClass()
IRecipeHandler
getRecipeClass
in interface IRecipeHandler<BrewingRecipeWrapper>
public java.lang.String getRecipeCategoryUid(BrewingRecipeWrapper recipe)
IRecipeHandler
getRecipeCategoryUid
in interface IRecipeHandler<BrewingRecipeWrapper>
IRecipeCategory.getUid()
,
VanillaRecipeCategoryUid
public BrewingRecipeWrapper getRecipeWrapper(BrewingRecipeWrapper recipe)
IRecipeHandler
getRecipeWrapper
in interface IRecipeHandler<BrewingRecipeWrapper>
public boolean isRecipeValid(BrewingRecipeWrapper recipe)
IRecipeHandler
isRecipeValid
in interface IRecipeHandler<BrewingRecipeWrapper>