Interface StonecutterView

All Superinterfaces:
InventoryView

public interface StonecutterView extends InventoryView
An instance of InventoryView which provides extra methods related to stonecutter view data.
  • Method Details

    • getTopInventory

      @NotNull StonecutterInventory getTopInventory()
      Description copied from interface: InventoryView
      Get the upper inventory involved in this transaction.
      Specified by:
      getTopInventory in interface InventoryView
      Returns:
      the inventory
    • getSelectedRecipeIndex

      int getSelectedRecipeIndex()
      Gets the current index of the selected recipe.
      Returns:
      The index of the selected recipe in the stonecutter or -1 if null
    • getRecipes

      @NotNull List<StonecuttingRecipe> getRecipes()
      Gets a copy of all recipes currently available to the player.
      Returns:
      A copy of the StonecuttingRecipe's currently available for the player
    • getRecipeAmount

      int getRecipeAmount()
      Gets the amount of recipes currently available.
      Returns:
      The amount of recipes currently available for the player