__construct() public method

public __construct ( Level $level )
$level pocketmine\level\Level
コード例 #1
0
 /**
  * @param Level    $level
  * @param Position $previousSpawn
  */
 public function __construct(Level $level, Position $previousSpawn)
 {
     parent::__construct($level);
     $this->previousSpawn = $previousSpawn;
 }
コード例 #2
0
 /**
  * @param FullChunk $chunk
  */
 public function __construct(FullChunk $chunk)
 {
     parent::__construct($chunk->getProvider()->getLevel());
     $this->chunk = $chunk;
 }
コード例 #3
0
 public function __construct(Level $level, int $weather, int $duration)
 {
     parent::__construct($level);
     $this->weather = $weather;
     $this->duration = $duration;
 }
コード例 #4
0
 public function __construct(Level $level, $weather)
 {
     parent::__construct($level);
     $this->weather = $weather;
 }