Search in sources :

Example 1 with WrappedBiomeDecorator

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;
}
Also used : IMixinBiome(org.spongepowered.common.interfaces.world.biome.IMixinBiome) Biome(net.minecraft.world.biome.Biome) WrappedBiomeDecorator(org.spongepowered.common.world.gen.populators.WrappedBiomeDecorator) SpongeBiomeGenerationSettings(org.spongepowered.common.world.biome.SpongeBiomeGenerationSettings)

Aggregations

Biome (net.minecraft.world.biome.Biome)1 IMixinBiome (org.spongepowered.common.interfaces.world.biome.IMixinBiome)1 SpongeBiomeGenerationSettings (org.spongepowered.common.world.biome.SpongeBiomeGenerationSettings)1 WrappedBiomeDecorator (org.spongepowered.common.world.gen.populators.WrappedBiomeDecorator)1