main = $main; $this->server = $main->getServer(); } public function onRun($tick) { foreach($this->server->getLevels() as $level) { foreach($level->getTiles() as $tile) { if($tile instanceof VacuumTile) { } } } } }