private void getEntityScreenPos(int x, int offset, int y) {
        if (x < 128 || y < 128 || x > 13056 || y > 13056) {
            spriteDrawX = -1;
            spriteDrawY = -1;
            return;
        }
        int i1 = method42(plane, y, x) - offset;
        x -= xCameraPos;
        i1 -= zCameraPos;
        y -= yCameraPos;
        int j1 = Model.modelIntArray1[yCameraCurve];
        int k1 = Model.modelIntArray2[yCameraCurve];
        int l1 = Model.modelIntArray1[xCameraCurve];
        int i2 = Model.modelIntArray2[xCameraCurve];
        int j2 = y * l1 + x * i2 >> 16;
        y = y * i2 - x * l1 >> 16;
        x = j2;
        j2 = i1 * k1 - y * j1 >> 16;
        y = i1 * j1 + y * k1 >> 16;
        i1 = j2;
        if (y >= 50) {
            spriteDrawX = Rasterizer.centerX + (x << 9) / y;
            spriteDrawY = Rasterizer.centerY + (i1 << 9) / y;
        } else {
            spriteDrawX = -1;
            spriteDrawY = -1;
        }
    }