block = BlockFactory::get($blockId, $meta & 0xf); parent::__construct($itemId ?? $this->block->getId(), $meta, $this->block->getName()); } public function setDamage(int $meta){ $this->meta = $meta; $this->block->setDamage($this->meta !== -1 ? $this->meta & 0xf : 0); } public function getBlock() : Block{ return clone $this->block; } public function getFuelTime() : int{ return $this->block->getFuelTime(); } }