mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Further refactors to prepare for y=-64 lower limit
This commit is contained in:
@ -47,15 +47,21 @@ final class ThreadLocalGeneratorContext{
|
||||
|
||||
/** @var Generator */
|
||||
private $generator;
|
||||
/** @var int */
|
||||
private $worldHeight;
|
||||
|
||||
public function __construct(Generator $generator, int $worldHeight){
|
||||
/** @var int */
|
||||
private $worldMinY;
|
||||
/** @var int */
|
||||
private $worldMaxY;
|
||||
|
||||
public function __construct(Generator $generator, int $worldMinY, int $worldMaxY){
|
||||
$this->generator = $generator;
|
||||
$this->worldHeight = $worldHeight;
|
||||
$this->worldMinY = $worldMinY;
|
||||
$this->worldMaxY = $worldMaxY;
|
||||
}
|
||||
|
||||
public function getGenerator() : Generator{ return $this->generator; }
|
||||
|
||||
public function getWorldHeight() : int{ return $this->worldHeight; }
|
||||
public function getWorldMinY() : int{ return $this->worldMinY; }
|
||||
|
||||
public function getWorldMaxY() : int{ return $this->worldMaxY; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user