public class VoidWorldGeneratorModifier extends Object implements WorldGeneratorModifier
World
to generate with empty chunks. Useful for "lobby-like" worlds.Constructor and Description |
---|
VoidWorldGeneratorModifier() |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the unique identifier of this
CatalogType . |
String |
getName()
Gets the human-readable name of this individual
CatalogType . |
void |
modifyWorldGenerator(WorldProperties world,
DataContainer settings,
WorldGenerator worldGenerator)
Modifies the given world generator.
|
public void modifyWorldGenerator(WorldProperties world, DataContainer settings, WorldGenerator worldGenerator)
WorldGeneratorModifier
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()
.
modifyWorldGenerator
in interface WorldGeneratorModifier
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
public String getId()
CatalogType
CatalogType
. The identifier is
case insensitive, thus there cannot be another instance with a different
character case. The id of this instance must remain the same for the
entire duration of its existence. The identifier can be formatted however
needed.
A typical id format follows the pattern of `modId:name`
or `minecraft:name`
. However the prefix may be omitted for
default/vanilla minecraft types.
getId
in interface CatalogType
public String getName()
CatalogType
CatalogType
. This
name is not guaranteed to be unique. This value should not be used for
serialization.getName
in interface CatalogType