Package net.okocraft.box.feature.craft
Class RecipeRegistry
java.lang.Object
net.okocraft.box.feature.craft.RecipeRegistry
A class for managing
RecipeHolder
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RecipeHolder
getRecipes
(@NotNull BoxItem item) Returns theRecipeHolder
of the specifiedBoxItem
.static boolean
Checks if theBoxItem
has recipes.
-
Method Details
-
getRecipes
Returns theRecipeHolder
of the specifiedBoxItem
.- Parameters:
item
- theBoxItem
to get- Returns:
- the
RecipeHolder
of the specifiedBoxItem
, ornull
if there is no recipe of the item
-
hasRecipe
Checks if theBoxItem
has recipes.
-