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()
IRecipeHandlergetRecipeClass in interface IRecipeHandler<BrewingRecipeWrapper>public java.lang.String getRecipeCategoryUid(BrewingRecipeWrapper recipe)
IRecipeHandlergetRecipeCategoryUid in interface IRecipeHandler<BrewingRecipeWrapper>IRecipeCategory.getUid(),
VanillaRecipeCategoryUidpublic BrewingRecipeWrapper getRecipeWrapper(BrewingRecipeWrapper recipe)
IRecipeHandlergetRecipeWrapper in interface IRecipeHandler<BrewingRecipeWrapper>public boolean isRecipeValid(BrewingRecipeWrapper recipe)
IRecipeHandlerisRecipeValid in interface IRecipeHandler<BrewingRecipeWrapper>