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

@@ -28,8 +28,7 @@ use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
abstract class WaterAnimal extends Living implements Ageable{
/** @var bool */
protected $baby = false;
protected bool $baby = false;
public function isBaby() : bool{
return $this->baby;