public function fromObjectAdd(Vector3 $pos, $x, $y, $z) { if ($pos instanceof Position) { $this->level = $pos->level; } parent::fromObjectAdd($pos, $x, $y, $z); return $this; }
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; }