pocketmine\level\particle\DestroyBlockParticle::__construct PHP Метод

__construct() публичный Метод

public __construct ( Vector3 $pos, Block $b )
$pos pocketmine\math\Vector3
$b pocketmine\block\Block
    public function __construct(Vector3 $pos, Block $b)
    {
        parent::__construct($pos->x, $pos->y, $pos->z);
        $this->data = $b->getId() + ($b->getDamage() << 12);
    }
DestroyBlockParticle