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