pocketmine\level\particle\GenericParticle::__construct PHP Method

__construct() public method

public __construct ( Vector3 $pos, $id, $data )
$pos pocketmine\math\Vector3
    public function __construct(Vector3 $pos, $id, $data = 0)
    {
        parent::__construct($pos->x, $pos->y, $pos->z);
        $this->id = $id & 0xfff;
        $this->data = $data;
    }

Usage Example

Example #1
0
 public function __construct(Vector3 $pos, $r, $g, $b, $a = 255)
 {
     parent::__construct($pos, 22, ($a & 0xff) << 24 | ($r & 0xff) << 16 | ($g & 0xff) << 8 | $b & 0xff);
 }
All Usage Examples Of pocketmine\level\particle\GenericParticle::__construct
GenericParticle