Package org.strassburger.lifestealz.util
Class RecipeManager
java.lang.Object
org.strassburger.lifestealz.util.RecipeManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all recipe idsboolean
isCraftable
(String itemId) Checks if an item is craftablevoid
Registers all recipesvoid
renderRecipe
(org.bukkit.entity.Player player, String itemId) Renders a recipe in an inventory gui
-
Constructor Details
-
RecipeManager
-
-
Method Details
-
getRecipeIds
Returns all recipe ids- Returns:
- All recipe ids
-
registerRecipes
public void registerRecipes()Registers all recipes -
isCraftable
Checks if an item is craftable- Parameters:
itemId
- The item id- Returns:
- If the item is craftable
-
renderRecipe
Renders a recipe in an inventory gui- Parameters:
player
- The player to render the recipe foritemId
- The item id to render
-