Added some type docs to RegionLoader

This commit is contained in:
Dylan K. Taylor 2017-10-05 18:47:32 +01:00
parent 18448cbcb8
commit 7f5fe137d1

View File

@ -39,16 +39,22 @@ class RegionLoader{
public static $COMPRESSION_LEVEL = 7;
/** @var int */
protected $x;
/** @var int */
protected $z;
/** @var string */
protected $filePath;
/** @var resource */
protected $filePointer;
/** @var int */
protected $lastSector;
/** @var McRegion */
protected $levelProvider;
/** @var int[][] */
protected $locationTable = [];
public $lastUsed;
/** @var int */
public $lastUsed = 0;
public function __construct(McRegion $level, int $regionX, int $regionZ, string $fileExtension = McRegion::REGION_FILE_EXTENSION){
$this->x = $regionX;