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

@ -32,8 +32,7 @@ use pocketmine\world\BlockTransaction;
class Torch extends Flowable{
/** @var int */
protected $facing = Facing::UP;
protected int $facing = Facing::UP;
protected function writeStateToMeta() : int{
return $this->facing === Facing::UP ? 5 : 6 - BlockDataSerializer::writeHorizontalFacing($this->facing);