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 MutableBlockVolume 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 GenerationPopulator
from the WorldGenerator to create the base terrain shape.GenerationPopulators
registered to the BiomeType (or from an override if
found).GenerationPopulators
registered to the WorldGenerator.Populators
registered to
the chosen biome (or from an override if found).Populators
registered to the WorldGenerator.Modifier and Type | Method and Description |
---|---|
GenerationPopulator |
getBaseGenerationPopulator()
Gets the main
GenerationPopulator . |
BiomeGenerator |
getBiomeGenerator()
Gets the
BiomeGenerator for this world generator. |
BiomeGenerationSettings |
getBiomeSettings(BiomeType type)
Gets this world generator settings for the given
BiomeType .. |
List<GenerationPopulator> |
getGenerationPopulators()
Gets a mutable list of
GenerationPopulator s. |
List<GenerationPopulator> |
getGenerationPopulators(Class<? extends GenerationPopulator> type)
Gets an immutable list of
GenerationPopulator s which match the
given class type. |
List<Populator> |
getPopulators()
Gets a mutable list of
Populator s which are applied globally (in
the whole world). |
List<Populator> |
getPopulators(Class<? extends Populator> type)
Gets an immutable list of
Populator s which match the given class
type. |
void |
setBaseGenerationPopulator(GenerationPopulator generator)
Sets the
GenerationPopulator . |
void |
setBiomeGenerator(BiomeGenerator biomeGenerator)
Sets the
BiomeGenerator for this world generator. |
GenerationPopulator getBaseGenerationPopulator()
GenerationPopulator
. This generator populator is
responsible for generating the base terrain of the chunk.GenerationPopulator
.setBaseGenerationPopulator(GenerationPopulator)
void setBaseGenerationPopulator(GenerationPopulator generator)
GenerationPopulator
. This generator populator is
responsible for generating the base terrain of the chunk.generator
- The generator.List<GenerationPopulator> getGenerationPopulators()
GenerationPopulator
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<GenerationPopulator> getGenerationPopulators(Class<? extends GenerationPopulator> type)
GenerationPopulator
s which match the
given class type.type
- The type to matchList<Populator> getPopulators()
Populator
s which are applied globally (in
the whole world).BiomeGenerationSettings.getPopulators()
List<Populator> getPopulators(Class<? extends Populator> type)
Populator
s which match the given class
type.type
- The type to matchBiomeGenerator getBiomeGenerator()
BiomeGenerator
for this world generator.void setBiomeGenerator(BiomeGenerator biomeGenerator)
BiomeGenerator
for this world generator.biomeGenerator
- The new biome generatorBiomeGenerationSettings getBiomeSettings(BiomeType type)
BiomeType
..type
- The biome type