/** * @param Level $level * @param Position $previousSpawn */ public function __construct(Level $level, Position $previousSpawn) { parent::__construct($level); $this->previousSpawn = $previousSpawn; }
/** * @param FullChunk $chunk */ public function __construct(FullChunk $chunk) { parent::__construct($chunk->getProvider()->getLevel()); $this->chunk = $chunk; }
public function __construct(Level $level, int $weather, int $duration) { parent::__construct($level); $this->weather = $weather; $this->duration = $duration; }
public function __construct(Level $level, $weather) { parent::__construct($level); $this->weather = $weather; }