Package org.bukkit.inventory.view
Interface StonecutterView
- All Superinterfaces:
InventoryView
An instance of
InventoryView
which provides extra methods related to
stonecutter view data.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.InventoryView
InventoryView.Property
-
Field Summary
Fields inherited from interface org.bukkit.inventory.InventoryView
OUTSIDE
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the amount of recipes currently available.Gets a copy of all recipes currently available to the player.int
Gets the current index of the selected recipe.Methods inherited from interface org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getTopInventory, getType, setCursor, setItem, setProperty, setTitle
-
Method Details
-
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
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
-