33 public const SLOT_INPUT = 0;
34 public const SLOT_FUEL = 1;
35 public const SLOT_RESULT = 2;
37 public function __construct(
41 private FurnaceType $furnaceType
43 parent::__construct($viewer, $inventory, $holder);
46 public function getFurnaceType() : FurnaceType{
return $this->furnaceType; }
48 public function getResult() :
Item{
49 return $this->inventory->getItem(self::SLOT_RESULT);
52 public function getFuel() :
Item{
53 return $this->inventory->getItem(self::SLOT_FUEL);
56 public function getSmelting() :
Item{
57 return $this->inventory->getItem(self::SLOT_INPUT);
60 public function setResult(
Item $item) :
void{
61 $this->inventory->setItem(self::SLOT_RESULT, $item);
64 public function setFuel(
Item $item) :
void{
65 $this->inventory->setItem(self::SLOT_FUEL, $item);
68 public function setSmelting(
Item $item) :
void{
69 $this->inventory->setItem(self::SLOT_INPUT, $item);