final ArrayList<Object> var9 = var7.field_74932_i;
int var10;
while (!var8.isEmpty() || !var9.isEmpty())
{
StructureComponent var11;
if (var8.isEmpty())
{
var10 = par2Random.nextInt(var9.size());
var11 = (StructureComponent) var9.remove(var10);
var11.buildComponent(var7, this.components, par2Random);
}
else
{
var10 = par2Random.nextInt(var8.size());
var11 = (StructureComponent) var8.remove(var10);
var11.buildComponent(var7, this.components, par2Random);
}
}
this.updateBoundingBox();
var10 = 0;
final Iterator<StructureComponent> var13 = this.components.iterator();
while (var13.hasNext())
{
final StructureComponent var12 = var13.next();
if (!(var12 instanceof StructureComponentVillageRoadPiece))
{
++var10;
}