Interface SmithingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

@MinecraftExperimental public interface SmithingInventory extends Inventory
Interface to the inventory of a Smithing table.
API Note:
Check Inventory.getType() to better handle either the current or experimental variant of this inventory
  • Method Details

    • getResult

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

      void setResult(@Nullable ItemStack newResult)
      Set the item in the result slot of the smithing table
      Parameters:
      newResult - the new result item
    • getRecipe

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