public function onBreak(Item $item) { $this->getLevel()->setBlock($this, new Air()); if ($this->isActivated()) { $this->deactivate(); } }