mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user