use of org.spongepowered.api.world.gen.WorldGenerator in project SpongeAPI by SpongePowered.
the class VoidWorldGeneratorModifier method modifyWorldGenerator.
@Override
public void modifyWorldGenerator(WorldProperties world, DataContainer settings, WorldGenerator worldGenerator) {
worldGenerator.getGenerationPopulators().clear();
worldGenerator.getPopulators().clear();
for (BiomeType biome : Sponge.getRegistry().getAllOf(BiomeType.class)) {
BiomeGenerationSettings biomeSettings = worldGenerator.getBiomeSettings(biome);
biomeSettings.getGenerationPopulators().clear();
biomeSettings.getPopulators().clear();
biomeSettings.getGroundCoverLayers().clear();
}
worldGenerator.setBaseGenerationPopulator((world1, buffer, biomes) -> {
});
worldGenerator.setBiomeGenerator(buffer -> buffer.getBiomeWorker().fill((x, y, z) -> BiomeTypes.VOID));
}
Aggregations