Inheritance: extends pocketmine\event\Event
Esempio n. 1
0
 /**
  * @param Level    $level
  * @param Position $previousSpawn
  */
 public function __construct(Level $level, Position $previousSpawn)
 {
     parent::__construct($level);
     $this->previousSpawn = $previousSpawn;
 }
Esempio n. 2
0
 /**
  * @param FullChunk $chunk
  */
 public function __construct(FullChunk $chunk)
 {
     parent::__construct($chunk->getProvider()->getLevel());
     $this->chunk = $chunk;
 }
Esempio n. 3
0
 public function __construct(Level $level, int $weather, int $duration)
 {
     parent::__construct($level);
     $this->weather = $weather;
     $this->duration = $duration;
 }
Esempio n. 4
0
 public function __construct(Level $level, $weather)
 {
     parent::__construct($level);
     $this->weather = $weather;
 }