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