Interface SmithingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

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

    • getResult

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

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

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

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

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

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