public final class SpongeGeneratorPopulator extends Object implements org.spongepowered.api.world.gen.GeneratorPopulator
IChunkProvider
.Modifier and Type | Method and Description |
---|---|
static org.spongepowered.api.world.gen.GeneratorPopulator |
of(net.minecraft.world.World world,
net.minecraft.world.chunk.IChunkProvider chunkGenerator)
Gets the
GeneratorPopulator from the given IChunkProvider . |
void |
populate(org.spongepowered.api.world.World world,
org.spongepowered.api.world.extent.MutableBlockVolume buffer,
org.spongepowered.api.world.extent.ImmutableBiomeArea biomes) |
public static org.spongepowered.api.world.gen.GeneratorPopulator of(net.minecraft.world.World world, net.minecraft.world.chunk.IChunkProvider chunkGenerator)
GeneratorPopulator
from the given IChunkProvider
.
If the chunk provider wraps a GeneratorPopulator
, that
populator is returned, otherwise the chunk provider is wrapped.world
- The world the chunk generator is bound to.chunkGenerator
- The chunk generator.public void populate(org.spongepowered.api.world.World world, org.spongepowered.api.world.extent.MutableBlockVolume buffer, org.spongepowered.api.world.extent.ImmutableBiomeArea biomes)
populate
in interface org.spongepowered.api.world.gen.GeneratorPopulator