Class RecipeManager

java.lang.Object
com.ranull.graves.manager.RecipeManager

@Deprecated(forRemoval=true, since="4.9.10.10") public class RecipeManager extends Object
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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTokenRecipe(String token, org.bukkit.inventory.ItemStack itemStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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.
    org.bukkit.inventory.ItemStack
    Deprecated, 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.
    boolean
    isToken(String token, org.bukkit.inventory.ItemStack itemStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    isToken(org.bukkit.inventory.ItemStack itemStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    setRecipeData(String token, org.bukkit.inventory.ItemStack itemStack)
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecipeManager

      @Deprecated(forRemoval=true, since="4.9.10.10") public RecipeManager(Graves plugin)
      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(forRemoval=true, since="4.9.10.10") public void reload()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reloads the recipes.
    • load

      @Deprecated(forRemoval=true, since="4.9.10.10") public void load()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Loads the recipes from the configuration.
    • unload

      @Deprecated(forRemoval=true, since="4.9.10.10") public void 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(forRemoval=true, since="4.9.10.10") public List<String> 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.