Use typed properties in src/entity package

[bc break]
This commit is contained in:
Dylan K. Taylor
2022-06-01 21:19:02 +01:00
parent 2029e3be20
commit 7b8eeb42f6
16 changed files with 160 additions and 284 deletions

View File

@ -51,11 +51,8 @@ use const PHP_INT_MAX;
abstract class Projectile extends Entity{
/** @var float */
protected $damage = 0.0;
/** @var Block|null */
protected $blockHit;
protected float $damage = 0.0;
protected ?Block $blockHit = null;
public function __construct(Location $location, ?Entity $shootingEntity, ?CompoundTag $nbt = null){
parent::__construct($location, $nbt);