Interface SmithingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface SmithingInventory extends Inventory
Interface to the inventory of a Smithing table.
Since:
1.16.1
  • Method Details

    • getResult

      Check what item is in the result slot of this smithing table.
      Returns:
      the result item
      Since:
      1.16.2
    • setResult

      void setResult(@Nullable @Nullable ItemStack newResult)
      Set the item in the result slot of the smithing table
      Parameters:
      newResult - the new result item
      Since:
      1.16.2
    • 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
      Since:
      1.16.5
    • getInputTemplate

      @Nullable default @Nullable ItemStack getInputTemplate()
      Gets the input template (first slot).
      Returns:
      input template item
      Since:
      1.20
    • setInputTemplate

      default void setInputTemplate(@Nullable @Nullable ItemStack itemStack)
      Sets the input template (first slot).
      Parameters:
      itemStack - item to set
      Since:
      1.20
    • getInputEquipment

      @Nullable default @Nullable ItemStack getInputEquipment()
      Gets the input equipment (second slot).
      Returns:
      input equipment item
      Since:
      1.16.2
    • setInputEquipment

      default void setInputEquipment(@Nullable @Nullable ItemStack itemStack)
      Sets the input equipment (second slot).
      Parameters:
      itemStack - item to set
      Since:
      1.16.2
    • getInputMineral

      @Nullable default @Nullable ItemStack getInputMineral()
      Gets the input mineral (third slot).
      Returns:
      input mineral item
      Since:
      1.16.2
    • setInputMineral

      default void setInputMineral(@Nullable @Nullable ItemStack itemStack)
      Sets the input mineral (third slot).
      Parameters:
      itemStack - item to set
      Since:
      1.16.2