Getting an item's recipe?

Discussion in 'Plugin Development' started by GamerCoder215, Apr 26, 2021.

  1. Offline

    GamerCoder215

    So I'm working on a custom plugin for my SMP, and am trying to recreate some of the plugins that were previously used. (Example: Coding our own /tpa commands instead of using an external plugin.)

    I would like to know if there is a way to get an item's recipe with a list of ItemStacks.

    Help/Guidance is appreciated, links to the bukkit/spigot docs are the best option for me.:)
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    OkayName

    Bukkit.getServer().getRecipesFor(ItemStack)

    or if you want to use a namespacedkey

    Bukkit.getServer().getRecipe(NameSpacedKey)
     

Share This Page