public function __construct(Vector3 $pos, $id, $data = 0) { parent::__construct($pos->x, $pos->y, $pos->z); $this->id = $id & 0xfff; $this->data = $data; }
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); }