public function onActivate(Item $item, Player $player = \null) { $this->meta ^= 0b1000; $this->getLevel()->setBlock($this, $this, true); $this->level->addSound(new DoorSound($this)); return true; }