master-specific @var annotations

This commit is contained in:
Dylan K. Taylor 2020-01-09 17:50:01 +00:00
parent cda1143a79
commit aba71762e9
14 changed files with 27 additions and 0 deletions

View File

@ -42,6 +42,7 @@ abstract class Liquid extends Transparent{
/** @var BlockIdentifierFlattened */
protected $idInfo;
/** @var int */
public $adjacentSources = 0;
/** @var Vector3|null */

View File

@ -134,6 +134,7 @@ abstract class Entity{
/** @var float */
private $health = 20.0;
/** @var int */
private $maxHealth = 20;
/** @var float */

View File

@ -61,6 +61,7 @@ use function reset;
*/
final class EntityFactory{
/** @var int */
private static $entityCount = 1;
/** @var string[] base class => currently used class for construction */
private static $classMapping = [];

View File

@ -85,6 +85,7 @@ class Human extends Living implements ProjectileSource, InventoryHolder{
/** @var ExperienceManager */
protected $xpManager;
/** @var int */
protected $xpSeed;
protected $baseOffset = 1.62;

View File

@ -49,7 +49,9 @@ class Network{
/** @var int[] */
private $bannedIps = [];
/** @var float */
private $upload = 0;
/** @var float */
private $download = 0;
/** @var string */

View File

@ -42,6 +42,7 @@ class ChunkRequestTask extends AsyncTask{
/** @var int */
protected $chunkZ;
/** @var int */
protected $compressionLevel;
/** @var string */

View File

@ -29,7 +29,9 @@ class CompressBatchTask extends AsyncTask{
private const TLS_KEY_PROMISE = "promise";
/** @var int */
private $level;
/** @var string */
private $data;
/**

View File

@ -28,7 +28,9 @@ use function zlib_encode;
use const ZLIB_ENCODING_DEFLATE;
final class Zlib{
/** @var int */
public static $LEVEL = 7;
/** @var int */
public static $THRESHOLD = 256;
private function __construct(){

View File

@ -34,6 +34,7 @@ class NetworkCipher{
private const ENCRYPTION_SCHEME = "AES-256-CFB8";
private const CHECKSUM_ALGO = "sha256";
/** @var bool */
public static $ENABLED = true;
/** @var string */

View File

@ -39,20 +39,28 @@ use function version_compare;
use function yaml_parse;
class PluginDescription{
/** @var mixed[] */
private $map;
/** @var string */
private $name;
/** @var string */
private $main;
/** @var string[] */
private $api;
/** @var int[] */
private $compatibleMcpeProtocols = [];
/** @var string[][] */
private $extensions = [];
/** @var string[] */
private $depend = [];
/** @var string[] */
private $softDepend = [];
/** @var string[] */
private $loadBefore = [];
/** @var string */
private $version;
/** @var mixed[][] */
private $commands = [];
/** @var string */
private $description = "";

View File

@ -59,12 +59,16 @@ abstract class AsyncTask extends \Threaded{
/** @var \Threaded */
public $progressUpdates;
/** @var scalar|null */
private $result = null;
/** @var bool */
private $serialized = false;
/** @var bool */
private $cancelRun = false;
/** @var bool */
private $submitted = false;
/** @var bool */
private $crashed = false;
/** @var bool */
private $finished = false;

View File

@ -35,6 +35,7 @@ class SimpleChunkManager implements ChunkManager{
/** @var Chunk[] */
protected $chunks = [];
/** @var int */
protected $worldHeight;
/** @var SubChunkIteratorManager */

View File

@ -32,6 +32,7 @@ use function strtolower;
use function trim;
abstract class WorldProviderManager{
/** @var string[] */
protected static $providers = [];
/** @var string|WorldProvider */

View File

@ -35,6 +35,7 @@ use function igbinary_unserialize;
class LightPopulationTask extends AsyncTask{
private const TLS_KEY_WORLD = "world";
/** @var string */
public $chunk;
/** @var int */