use of org.spongepowered.common.world.gen.populators.WrappedBiomeDecorator in project SpongeCommon by SpongePowered.
the class MixinBiome method createDefaultGenerationSettings.
@Override
public BiomeGenerationSettings createDefaultGenerationSettings(org.spongepowered.api.world.World world) {
SpongeBiomeGenerationSettings gensettings = new SpongeBiomeGenerationSettings();
gensettings.getPopulators().clear();
gensettings.getGenerationPopulators().clear();
gensettings.getGroundCoverLayers().clear();
buildPopulators((World) world, gensettings);
if (!getClass().getName().startsWith("net.minecraft")) {
gensettings.getPopulators().add(new WrappedBiomeDecorator((Biome) (Object) this));
} else if (!this.decorator.getClass().getName().startsWith("net.minecraft")) {
gensettings.getPopulators().add(new WrappedBiomeDecorator(this.decorator));
}
return gensettings;
}
Aggregations