fromObjectAdd() public method

public fromObjectAdd ( Vector3 $pos, $x, $y, $z )
$pos pocketmine\math\Vector3
Ejemplo n.º 1
0
 public function fromObjectAdd(Vector3 $pos, $x, $y, $z)
 {
     if ($pos instanceof Location) {
         $this->yaw = $pos->yaw;
         $this->pitch = $pos->pitch;
     }
     parent::fromObjectAdd($pos, $x, $y, $z);
     return $this;
 }