Modernize property declarations in pocketmine\block namespace

This commit is contained in:
Dylan K. Taylor
2022-04-25 13:00:29 +01:00
parent 09778e3f1b
commit 72cff0ee11
23 changed files with 80 additions and 139 deletions

View File

@ -29,10 +29,8 @@ final class Beacon extends Spawnable{
private const TAG_PRIMARY = "primary"; //TAG_Int
private const TAG_SECONDARY = "secondary"; //TAG_Int
/** @var int */
private $primaryEffect = 0;
/** @var int */
private $secondaryEffect = 0;
private int $primaryEffect = 0;
private int $secondaryEffect = 0;
protected function addAdditionalSpawnData(CompoundTag $nbt) : void{
$nbt->setInt(self::TAG_PRIMARY, $this->primaryEffect);