for (int x = 0; x < target.batchCount; x++) {
for (int x = 0, max = target.getBatchCount(); x < max; x++) {
	public void setTarget(TriMesh target) {		this.target = target;		for (int i = 0; i < RenderState.RS_MAX_STATE; i++) {            RenderState renderState = this.target.getRenderState( i );            if (renderState != null) {                setRenderState(renderState );            }		}                batchList.clear();        for (int x = 0; x < target.batchCount; x++) {            SharedBatch batch = new SharedBatch(target.getBatch(x));            batch.setParentGeom(this);            batchList.add(batch);        }        batchCount = batchList.size();                setCullMode(target.cullMode);        setLightCombineMode(target.lightCombineMode);        setRenderQueueMode(target.renderQueueMode);        setTextureCombineMode(target.textureCombineMode);        setZOrder(target.getZOrder());	}