public void replaceColorTarget(int i, FrameBufferTextureTarget colorBuf) {
        if (i < 0 || i >= colorBufs.size()) {
            throw new IndexOutOfBoundsException("No color target exists to replace at index=" + i);
        }
        colorBuf.slot = i;
        colorBufs.set(i, colorBuf);
    }
Replaces the color target at the index.
<p>
A color target must already exist at the index, otherwise
an exception will be thrown.

@param i index of color target to replace
@param colorBuf color target to replace with
jme3-core/src/main/java/com/jme3/texture/FrameBuffer.java