pocketmine\level\weather\Weather::__construct PHP Метод

__construct() публичный Метод

public __construct ( Level $level, $duration = 1200 )
$level pocketmine\level\Level
    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);
    }