ArrayList<String> names = new ArrayList<String>();
for (int k = 0, j = array.size(); k < j; k++) {
names.add(array.get(k).getAsString());
}
if (rarity > 0)
info = new BiomeInfoRarity(names, 4, true, rarity);
else
info = new BiomeInfo(names, 4, true);
} else {
if (rarity > 0)
info = new BiomeInfoRarity(entry, rarity);
else
info = new BiomeInfo(entry);
}
} else {
Object data = null;
int t = -1;
if (type.equalsIgnoreCase("temperature")) {
if (array != null) {
ArrayList<TempCategory> temps = new ArrayList<TempCategory>();
for (int k = 0, j = array.size(); k < j; k++) {
temps.add(TempCategory.valueOf(array.get(k).getAsString()));
}
data = EnumSet.copyOf(temps);
t = 5;
} else {
data = TempCategory.valueOf(entry);
t = 1;
}
} else if (type.equalsIgnoreCase("dictionary")) {
if (array != null) {
ArrayList<Type> tags = new ArrayList<Type>();
for (int k = 0, j = array.size(); k < j; k++) {
Type a = Type.valueOf(array.get(k).getAsString());
if (a != null)
tags.add(a);
}
data = tags.toArray(new Type[tags.size()]);
t = 6;
} else {
data = Type.valueOf(entry);
t = 2;
}
} else {
log.warn("Biome entry of unknown type");
break l;
}
if (data != null) {
if (rarity > 0)
info = new BiomeInfoRarity(data, t, wl, rarity);
else
info = new BiomeInfo(data, t, wl);
}
}
} else {