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

@ -38,12 +38,9 @@ class Lever extends Flowable{
protected const SIDE = 1;
protected const TOP = 2;
/** @var int */
protected $leverPos = self::BOTTOM;
/** @var int */
protected $facing = Facing::NORTH;
/** @var bool */
protected $powered = false;
protected int $leverPos = self::BOTTOM;
protected int $facing = Facing::NORTH;
protected bool $powered = false;
protected function writeStateToMeta() : int{
if($this->leverPos === self::BOTTOM){