public interface WorldGenerator
The generation process for chunks is divided into two phases, generation and population. The generation phase is in charge of creating the base terrain shape and generating large terrain features. All operations during the generation phase act upon a BlockBuffer rather than a live chunk object.
Conversely the population phase operates against a live chunk object and has the guarantee that all immediately surrounding chunks have at least passed the generation phase. The population phase is typically used for the placement of small features and objects placed may cross chunk boundaries.
base GeneratorPopulator
from the
WorldGenerator to create the base terrain shape.GeneratorPopulators
registered to
the BiomeType.GeneratorPopulators
registered to the WorldGenerator.Populators
registered to the chosen
biome.Populators
registered to the WorldGenerator.Modifier and Type | Method and Description |
---|---|
GeneratorPopulator |
getBaseGeneratorPopulator()
Gets the main
GeneratorPopulator . |
BiomeGenerator |
getBiomeGenerator()
Gets the
BiomeGenerator for this world generator. |
List<GeneratorPopulator> |
getGeneratorPopulators()
Gets a mutable list of
GeneratorPopulator s. |
List<Populator> |
getPopulators()
Gets a mutable list of
Populator s which are applied globally (in
the whole world). |
void |
setBaseGeneratorPopulator(GeneratorPopulator generator)
Sets the
GeneratorPopulator . |
void |
setBiomeGenerator(BiomeGenerator biomeGenerator)
Sets the
BiomeGenerator for this world generator. |
GeneratorPopulator getBaseGeneratorPopulator()
GeneratorPopulator
. This generator populator is
responsible for generating the base terrain of the chunk.GeneratorPopulator
.setBaseGeneratorPopulator(GeneratorPopulator)
void setBaseGeneratorPopulator(GeneratorPopulator generator)
GeneratorPopulator
. This generator populator is
responsible for generating the base terrain of the chunk.generator
- The generator.List<GeneratorPopulator> getGeneratorPopulators()
GeneratorPopulator
s. These populators work
strictly on a single chunk. They will be executed directly after the
biome ground cover layers
and the
biome generator populators
have been called. These generator populators are typically used to
generate large terrain features, like caves and ravines.
This list does not include the
base generator
.
List<Populator> getPopulators()
Populator
s which are applied globally (in
the whole world).BiomeType.getPopulators()
BiomeGenerator getBiomeGenerator()
BiomeGenerator
for this world generator.void setBiomeGenerator(BiomeGenerator biomeGenerator)
BiomeGenerator
for this world generator.biomeGenerator
- The new biome generator