Interface FurnaceInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface FurnaceInventory extends Inventory
Interface to the inventory of a Furnace.
  • Method Details

    • getResult

      @Nullable ItemStack getResult()
      Get the current item in the result slot.
      Returns:
      The item
    • getFuel

      @Nullable ItemStack getFuel()
      Get the current fuel.
      Returns:
      The item
    • getSmelting

      @Nullable ItemStack getSmelting()
      Get the item currently smelting.
      Returns:
      The item
    • setFuel

      void setFuel(@Nullable ItemStack stack)
      Set the current fuel.
      Parameters:
      stack - The item
    • setResult

      void setResult(@Nullable ItemStack stack)
      Set the current item in the result slot.
      Parameters:
      stack - The item
    • setSmelting

      void setSmelting(@Nullable ItemStack stack)
      Set the item currently smelting.
      Parameters:
      stack - The item
    • getHolder

      @Nullable Furnace getHolder()
      Description copied from interface: Inventory
      Gets the block or entity belonging to the open inventory
      Specified by:
      getHolder in interface Inventory
      Returns:
      The holder of the inventory; null if it has no holder.