pocketmine\Player::addMovement PHP Method

addMovement() public method

public addMovement ( $x, $y, $z, $yaw, $pitch, $headYaw = null )
    public function addMovement($x, $y, $z, $yaw, $pitch, $headYaw = null)
    {
        if ($this->chunk !== null) {
            $this->level->addPlayerMovement($this->chunk->getX(), $this->chunk->getZ(), $this->id, $x, $y, $z, $yaw, $pitch, $this->onGround, $headYaw === null ? $yaw : $headYaw);
        }
    }
Player