lit ? self::REDSTONE_TORCH : self::UNLIT_REDSTONE_TORCH; } public function getName() : string{ return "Redstone Torch"; } 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 ? 7 : 0; } }