Package net.okocraft.box.feature.craft
Class RecipeRegistry
java.lang.Object
net.okocraft.box.feature.craft.RecipeRegistry
A class for managing
RecipeHolders.-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RecipeHoldergetRecipes(@NotNull BoxItem item) Returns theRecipeHolderof the specifiedBoxItem.static booleanChecks if theBoxItemhas recipes.
-
Method Details
-
getRecipes
Returns theRecipeHolderof the specifiedBoxItem.- Parameters:
item- theBoxItemto get- Returns:
- the
RecipeHolderof the specifiedBoxItem, ornullif there is no recipe of the item
-
hasRecipe
Checks if theBoxItemhas recipes.
-