Region loaders don't need to know their own coordinates

This commit is contained in:
Dylan K. Taylor
2018-10-04 16:37:19 +01:00
parent 41f335e7d9
commit b0f1863c4f
2 changed files with 3 additions and 17 deletions

View File

@ -39,10 +39,6 @@ class RegionLoader{
public static $COMPRESSION_LEVEL = 7;
/** @var int */
protected $x;
/** @var int */
protected $z;
/** @var string */
protected $filePath;
/** @var resource */
@ -54,9 +50,7 @@ class RegionLoader{
/** @var int */
public $lastUsed = 0;
public function __construct(string $filePath, int $regionX, int $regionZ){
$this->x = $regionX;
$this->z = $regionZ;
public function __construct(string $filePath){
$this->filePath = $filePath;
}
@ -340,14 +334,6 @@ class RegionLoader{
$this->locationTable = array_fill(0, 1024, [0, 0, 0]);
}
public function getX() : int{
return $this->x;
}
public function getZ() : int{
return $this->z;
}
public function getFilePath() : string{
return $this->filePath;
}