接口 StonecutterView
- 所有超级接口:
InventoryView
一个提供与切石机视图数据相关额外方法的
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明int获取当前可用的配方数量.获取玩家当前可用的所有配方副本.int获取当前选中配方的索引.获取此窗口视图上方的物品栏.从接口继承的方法 org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
-
方法详细资料
-
getTopInventory
从接口复制的说明:InventoryView获取此窗口视图上方的物品栏.原文:Get the upper inventory involved in this transaction.
- 指定者:
getTopInventory在接口中InventoryView- 返回:
- 物品栏
-
getSelectedRecipeIndex
int getSelectedRecipeIndex()获取当前选中配方的索引.原文:Gets the current index of the selected recipe.
- 返回:
- 切石机中选中配方的索引, 如果为null则返回-1
-
getRecipes
获取玩家当前可用的所有配方副本.原文:Gets a copy of all recipes currently available to the player.
- 返回:
- 玩家当前可用的
StonecuttingRecipe副本
-
getRecipeAmount
int getRecipeAmount()获取当前可用的配方数量.原文:Gets the amount of recipes currently available.
- 返回:
- 玩家当前可用的配方数量
-