private static Vec3i findLocInNeighbor(int x, int y, int z) {
        Vec3i vec = VecPool.getVec3i();
        if (x >= chunkSize) {
            vec.x = 0;
        } else if (x < 0) {
            vec.x = chunkSize - 1;
        } else {
            vec.x = x;
        }
        if (y >= chunkSize) {
            vec.y = 0;
        } else if (y < 0) {
            vec.y = chunkSize - 1;
        } else {
            vec.y = y;
        }
        if (z >= chunkSize) {
            vec.z = 0;
        } else if (z < 0) {
            vec.z = chunkSize - 1;
        } else {
            vec.z = z;
        }
        return vec;
    }