mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
added missing @var property types (reported by phpstan)
This commit is contained in:
@ -38,9 +38,13 @@ if(!defined(__NAMESPACE__ . '\ZERO_NIBBLE_ARRAY')){
|
||||
}
|
||||
|
||||
class SubChunk implements SubChunkInterface{
|
||||
/** @var string */
|
||||
protected $ids;
|
||||
/** @var string */
|
||||
protected $data;
|
||||
/** @var string */
|
||||
protected $blockLight;
|
||||
/** @var string */
|
||||
protected $skyLight;
|
||||
|
||||
private static function assignData(&$target, string $data, int $length, string $value = "\x00"){
|
||||
|
@ -34,12 +34,17 @@ use function strlen;
|
||||
|
||||
class ChunkRequestTask extends AsyncTask{
|
||||
|
||||
/** @var int */
|
||||
protected $levelId;
|
||||
|
||||
/** @var string */
|
||||
protected $chunk;
|
||||
/** @var int */
|
||||
protected $chunkX;
|
||||
/** @var int */
|
||||
protected $chunkZ;
|
||||
|
||||
/** @var int */
|
||||
protected $compressionLevel;
|
||||
|
||||
/** @var int */
|
||||
|
@ -31,6 +31,7 @@ use function strtolower;
|
||||
use function trim;
|
||||
|
||||
abstract class LevelProviderManager{
|
||||
/** @var string[] */
|
||||
protected static $providers = [];
|
||||
|
||||
public static function init() : void{
|
||||
|
@ -62,6 +62,7 @@ class RegionLoader{
|
||||
|
||||
private const FIRST_SECTOR = 2; //location table occupies 0 and 1
|
||||
|
||||
/** @var int */
|
||||
public static $COMPRESSION_LEVEL = 7;
|
||||
|
||||
/** @var int */
|
||||
|
Reference in New Issue
Block a user