}
Serialization.registerSerializer(new ColorSerializer());
}
public static void load(Configuration config) {
final AnnotatedObjectConfiguration biomes =
new AnnotatedObjectConfiguration(config);
for (Entry<String, VanillaBiome> entry : BY_NAME.entrySet()) {
biomes.add(entry.getValue(), entry.getKey());
}
try {
biomes.load();
} catch (ConfigurationException ex) {
ex.printStackTrace();
}
}