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

@ -39,16 +39,12 @@ use function assert;
use function floor;
class Skull extends Flowable{
/** @var SkullType */
protected $skullType;
/** @var int */
protected $facing = Facing::NORTH;
protected SkullType $skullType;
protected int $facing = Facing::NORTH;
protected bool $noDrops = false;
/** @var int */
protected $rotation = 0; //TODO: split this into floor skull and wall skull handling
protected int $rotation = 0; //TODO: split this into floor skull and wall skull handling
public function __construct(BlockIdentifier $idInfo, string $name, BlockBreakInfo $breakInfo){
$this->skullType = SkullType::SKELETON(); //TODO: this should be a parameter