Package com.ranull.graves.manager
Class RecipeManager
java.lang.Object
com.ranull.graves.manager.RecipeManager
Deprecated, for removal: This API element is subject to removal in a future version.
Use GravesX Module: Tokens instead
Manages custom recipes for the Graves plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeManager(Graves plugin) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTokenRecipe(String token, org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.org.bukkit.inventory.ItemStackgetGraveTokenFromPlayer(String token, List<org.bukkit.inventory.ItemStack> itemStackList) Deprecated, for removal: This API element is subject to removal in a future version.org.bukkit.inventory.ItemStackDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getTokenName(org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisToken(org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.voidload()Deprecated, for removal: This API element is subject to removal in a future version.voidreload()Deprecated, for removal: This API element is subject to removal in a future version.voidsetRecipeData(String token, org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.voidunload()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
RecipeManager
Deprecated, for removal: This API element is subject to removal in a future version.Initializes a new instance of the RecipeManager class.- Parameters:
plugin- The plugin instance.
-
-
Method Details
-
reload
Deprecated, for removal: This API element is subject to removal in a future version.Reloads the recipes. -
load
Deprecated, for removal: This API element is subject to removal in a future version.Loads the recipes from the configuration. -
unload
Deprecated, for removal: This API element is subject to removal in a future version.Unloads the custom recipes. -
getToken
@Deprecated(forRemoval=true, since="4.9.10.10") public org.bukkit.inventory.ItemStack getToken(String token) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the token item based on the configuration.- Parameters:
token- The token identifier.- Returns:
- The token item.
-
getTokenList
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the list of tokens from the configuration.- Returns:
- The list of token identifiers.
-
addTokenRecipe
@Deprecated(forRemoval=true, since="4.9.10.10") public void addTokenRecipe(String token, org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.Adds a custom token recipe.- Parameters:
token- The token identifier.itemStack- The item stack representing the token.
-
getGraveTokenFromPlayer
@Deprecated(forRemoval=true, since="4.9.10.10") public org.bukkit.inventory.ItemStack getGraveTokenFromPlayer(String token, List<org.bukkit.inventory.ItemStack> itemStackList) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves a token item from a player's inventory.- Parameters:
token- The token identifier.itemStackList- The list of item stacks in the player's inventory.- Returns:
- The token item stack, or null if not found.
-
setRecipeData
@Deprecated(forRemoval=true, since="4.9.10.10") public void setRecipeData(String token, org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.Sets the recipe data on an item stack.- Parameters:
token- The token identifier.itemStack- The item stack.
-
isToken
@Deprecated(forRemoval=true, since="4.9.10.10") public boolean isToken(String token, org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.Checks if an item stack is a token of a specified type.- Parameters:
token- The token identifier.itemStack- The item stack.- Returns:
- True if the item stack is a token of the specified type, otherwise false.
-
getTokenName
@Deprecated(forRemoval=true, since="4.9.10.10") public String getTokenName(org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves the token name from an item stack.- Parameters:
itemStack- The item stack.- Returns:
- The token name, or null if not found.
-
isToken
@Deprecated(forRemoval=true, since="4.9.10.10") public boolean isToken(org.bukkit.inventory.ItemStack itemStack) Deprecated, for removal: This API element is subject to removal in a future version.Checks if an item stack is a token.- Parameters:
itemStack- The item stack.- Returns:
- True if the item stack is a token, otherwise false.
-