@Override
    public void setWrap(WrapAxis axis, WrapMode mode) {
        if (mode == null) {
            throw new IllegalArgumentException("mode can not be null.");
        } else if (axis == null) {
            throw new IllegalArgumentException("axis can not be null.");
        }
        switch (axis) {
            case S:
                this.wrapS = mode;
                break;
            case T:
                this.wrapT = mode;
                break;
            default:
                throw new IllegalArgumentException("Not applicable for 2D textures");
        }
    }
Construct a TextureArray from the given list of images.
To check if a hardware supports TextureArray check : 
renderManager.getRenderer().getCaps().contains(Caps.TextureArray)

@param images the images to use (not null)
jme3-core/src/main/java/com/jme3/texture/TextureArray.java