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);
}
}