pocketmine\event\level\LevelEvent::__construct PHP Méthode

__construct() public méthode

public __construct ( Level $level )
$level pocketmine\level\Level
    public function __construct(Level $level)
    {
        $this->level = $level;
    }

Usage Example

 /**
  * @param Level    $level
  * @param Position $previousSpawn
  */
 public function __construct(Level $level, Position $previousSpawn)
 {
     parent::__construct($level);
     $this->previousSpawn = $previousSpawn;
 }
All Usage Examples Of pocketmine\event\level\LevelEvent::__construct