pocketmine\level\Level::getServer PHP Method

getServer() public method

public getServer ( ) : Server
return pocketmine\Server
    public function getServer() : Server
    {
        return $this->server;
    }

Usage Example

 public function __construct(Level $level, $duration = 1200)
 {
     $this->level = $level;
     $this->weatherNow = self::SUNNY;
     $this->duration = $duration;
     $this->lastUpdate = $level->getServer()->getTick();
     $this->temporalVector = new Vector3(0, 0, 0);
 }
All Usage Examples Of pocketmine\level\Level::getServer
Level