@CatalogedBy(value=WorldGeneratorModifiers.class) public interface WorldGeneratorModifier extends CatalogType
modifyWorldGenerator(WorldProperties, DataContainer, WorldGenerator)
will be called.
The modifier can change every aspect of terrain generation using the
WorldGenerator
provided as a parameter to
modifyWorldGenerator
. This is no requirement, you can for example
replace only the biome generator. Multiple world generator modifiers can be
applied on a single world.
Implementations of this interface must be registered using the
GameRegistry
.
Modifier and Type | Method and Description |
---|---|
void |
modifyWorldGenerator(WorldProperties world,
DataContainer settings,
WorldGenerator worldGenerator)
Modifies the given world generator.
|
getId, getName
void modifyWorldGenerator(WorldProperties world, DataContainer settings, WorldGenerator worldGenerator)
To replace the base chunk generator, replace the main generator
populator using
WorldGenerator.setBaseGenerationPopulator(GenerationPopulator)
.
To replace the biome generator, use
WorldGenerator.setBiomeGenerator(BiomeGenerator)
. To change
terrain population, modify the populator list returned by
WorldGenerator.getPopulators()
or
WorldGenerator.getGenerationPopulators()
.
world
- The properties of the world.settings
- A data container with (usually) user-provided settings,
can be used by the plugin to modify the world generator.worldGenerator
- The world generator, should be modified.Additional information on the generation process