lit ? $this->idInfo->getSecondId() : parent::getId(); } public function readStateFromData(int $id, int $stateMeta) : void{ $this->lit = $id === $this->idInfo->getSecondId(); } public function isLit() : bool{ return $this->lit; } /** * @param bool $lit * * @return $this */ public function setLit(bool $lit = true) : self{ $this->lit = $lit; return $this; } public function getLightLevel() : int{ return $this->lit ? 15 : 0; } public function getHardness() : float{ return 0.3; } }