Use typed properties in block namespace

This commit is contained in:
Dylan K. Taylor
2021-05-22 23:52:31 +01:00
parent 73c229a236
commit f68b9e79e1
68 changed files with 134 additions and 246 deletions

View File

@ -49,20 +49,13 @@ use const PHP_INT_MAX;
class Block{
/** @var BlockIdentifier */
protected $idInfo;
/** @var string */
protected $fallbackName;
/** @var BlockBreakInfo */
protected $breakInfo;
/** @var Position */
protected $pos;
protected BlockIdentifier $idInfo;
protected string $fallbackName;
protected BlockBreakInfo $breakInfo;
protected Position $pos;
/** @var AxisAlignedBB[]|null */
protected $collisionBoxes = null;
protected ?array $collisionBoxes = null;
/**
* @param string $name English name of the block type (TODO: implement translations)