Class RecipeManager
java.lang.Object
org.strassburger.lifestealz.util.customitems.recipe.RecipeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelAnimations
(org.bukkit.inventory.Inventory inventory) Cancels all animations for an inventoryReturns all recipe idsgetRecipeIds
(String itemId) Returns all recipe ids for an itemboolean
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 guivoid
renderRecipe
(org.bukkit.entity.Player player, String itemId, String recipeId) Renders a recipe in an inventory gui
-
Constructor Details
-
RecipeManager
-
-
Method Details
-
getItemIds
Returns all recipe ids- Returns:
- All recipe ids
-
getRecipeIds
Returns all recipe ids for an item- Parameters:
itemId
- The item id- Returns:
- All recipe ids for the item
-
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
-
renderRecipe
Renders a recipe in an inventory gui- Parameters:
player
- The player to render the recipe foritemId
- The item id to renderrecipeId
- The recipe id to render
-
cancelAnimations
public void cancelAnimations(org.bukkit.inventory.Inventory inventory) Cancels all animations for an inventory- Parameters:
inventory
- The inventory to cancel the animations for
-