public void setMipMapSizes(int[] mipMapSizes) {
        if (mipMapSizes != null && mipMapSizes.length <= 1)
            mipMapSizes = null;

        this.mipMapSizes = mipMapSizes;

        if (mipMapSizes != null) {
             needGeneratedMips = false;
             mipsWereGenerated = false;
        } else {
             needGeneratedMips = true;
             mipsWereGenerated = false;
        }

        setUpdateNeeded();
    }
Sets the mipmap sizes stored in this image's data buffer. Mipmaps are
stored sequentially, and the first mipmap is the main image data. To
specify no mipmaps, pass null and this will automatically be expanded
into a single mipmap of the full

@param mipMapSizes
           the mipmap sizes array, or null for a single image map.
jme3-core/src/main/java/com/jme3/texture/Image.java