Interface Furnace

    • Method Detail

      • getBurnTime

        short getBurnTime()
        Get burn time.
        Returns:
        Burn time
      • setBurnTime

        void setBurnTime​(short burnTime)
        Set burn time. A burn time greater than 0 will cause this block to be lit, whilst a time less than 0 will extinguish it.
        Parameters:
        burnTime - Burn time
      • getCookTime

        short getCookTime()
        Get cook time. This is the amount of time the item has been cooking for.
        Returns:
        Cook time
      • setCookTime

        void setCookTime​(short cookTime)
        Set cook time. This is the amount of time the item has been cooking for.
        Parameters:
        cookTime - Cook time
      • getCookTimeTotal

        int getCookTimeTotal()
        Get cook time total. This is the amount of time the item is required to cook for.
        Returns:
        Cook time total
      • setCookTimeTotal

        void setCookTimeTotal​(int cookTimeTotal)
        Set cook time. This is the amount of time the item is required to cook for.
        Parameters:
        cookTimeTotal - Cook time total
      • getInventory

        @NotNull
        @NotNull FurnaceInventory getInventory()
        Description copied from interface: Container
        Gets the inventory of the block represented by this block state.

        If the block was changed to a different type in the meantime, the returned inventory might no longer be valid.

        If this block state is not placed this will return the captured inventory snapshot instead.

        Specified by:
        getInventory in interface Container
        Specified by:
        getInventory in interface InventoryHolder
        Returns:
        the inventory