程序包 org.bukkit.inventory

# 接口 SmithingInventory

所有超级接口:
  `Inventory`, `Iterable<ItemStack>`

public interface SmithingInventory extends Inventory
Interface to the inventory of a Smithing table.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable Recipe`
  `getRecipe()`
  Get the current recipe formed on the smithing table, if any.
  `@Nullable ItemStack`
  `getResult()`
  Check what item is in the result slot of this smithing table.
  `void`
  `setResult(@Nullable ItemStack newResult)`
  Set the item in the result slot of the smithing table

  ### 从接口继承的方法 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

    @Nullable @Nullable ItemStack getResult()
    Check what item is in the result slot of this smithing table.
    返回:
      the result item

  - ### setResult

    void setResult(@Nullable @Nullable ItemStack newResult)
    Set the item in the result slot of the smithing table
    参数:
      `newResult` - the new result item

  - ### getRecipe

    @Nullable @Nullable Recipe getRecipe()
    Get the current recipe formed on the smithing table, if any.
    返回:
      the recipe, or null if the current contents don't match any recipe