public class SkylandsWorldGeneratorModifier extends Object implements WorldGeneratorModifier
Constructor and Description |
---|
SkylandsWorldGeneratorModifier() |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the unique identifier of this
CatalogType . |
String |
getName()
Gets the unique human-readable name of this individual
CatalogType . |
void |
modifyWorldGenerator(WorldCreationSettings world,
DataContainer settings,
WorldGenerator worldGenerator)
Modifies the given world generator.
|
public void modifyWorldGenerator(WorldCreationSettings world, DataContainer settings, WorldGenerator worldGenerator)
WorldGeneratorModifier
To replace the base chunk generator, replace the main generator
populator using
WorldGenerator.setBaseGeneratorPopulator(GeneratorPopulator)
. To
replace the biome generator, use
WorldGenerator.setBiomeGenerator(BiomeGenerator)
. To change
terrain population, modify the populator list returned by
WorldGenerator.getPopulators()
or
WorldGenerator.getGeneratorPopulators()
.
modifyWorldGenerator
in interface WorldGeneratorModifier
world
- The creation settings 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
public String getId()
WorldGeneratorModifier
CatalogType
. The identifier
can be formatted however needed.
This name must be something unique and may not contain spaces. The same name must be returned every time the method is invoked.
getId
in interface CatalogType
getId
in interface WorldGeneratorModifier
public String getName()
CatalogType
CatalogType
.getName
in interface CatalogType