接口 SmithingInventory
锻造台物品栏的接口。
-
方法概要
从接口继承的方法 org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
getResult
检查锻造台结果槽中的物品。原文:Check what item is in the result slot of this smithing table.
- 返回:
- 结果物品
-
setResult
设置锻造台结果槽中的物品。原文:Set the item in the result slot of the smithing table
- 参数:
newResult- 新的结果物品
-
getRecipe
获取锻造台上当前形成的配方(如果有)。原文:Get the current recipe formed on the smithing table, if any.
- 返回:
- 配方,如果当前内容不匹配任何配方则返回 null
-