public function addEntityMovement(int $chunkX, int $chunkZ, int $entityId, float $x, float $y, float $z, float $yaw, float $pitch, $headYaw = null)
{
if (!isset($this->moveToSend[$index = Level::chunkHash($chunkX, $chunkZ)])) {
$this->moveToSend[$index] = [];
}
$pk = new MoveEntityPacket();
$pk->eid = $entityId;
$pk->x = $x;
$pk->y = $y;
$pk->z = $z;
$pk->yaw = $yaw;
$pk->headYaw = $headYaw === null ? $yaw : $headYaw;
$pk->pitch = $pitch;
$this->moveToSend[$index][$entityId] = $pk;
}