Interface ChunkGenerator.Factory
- Enclosing interface:
ChunkGenerator
public static interface ChunkGenerator.Factory
-
Method Summary
Modifier and TypeMethodDescriptionflat(FlatGeneratorConfig config) Creates a chunk generator based on given configuration.fromDataPack(DataView pack) Creates a chunk generator based on the given data view.noise(BiomeProvider provider, NoiseGeneratorConfig config) Creates a chunk generator bases on given biome provider and configurationCreates a chunk generator like the vanillaWorldTypes.OVERWORLD.theEnd()Creates a chunk generator like the vanillaWorldTypes.THE_END.Creates a chunk generator like the vanillaWorldTypes.THE_NETHER.
-
Method Details
-
flat
Creates a chunk generator based on given configuration.- Parameters:
config- The flat generator configuration- Returns:
- The new chunk generator
-
noise
ConfigurableChunkGenerator<NoiseGeneratorConfig> noise(BiomeProvider provider, NoiseGeneratorConfig config) Creates a chunk generator bases on given biome provider and configuration- Parameters:
provider- The biome providerconfig- The noise generator configuration- Returns:
- The new chunk generator
-
overworld
ConfigurableChunkGenerator<NoiseGeneratorConfig> overworld()Creates a chunk generator like the vanillaWorldTypes.OVERWORLD.- Returns:
- The new chunk generator
-
theNether
ConfigurableChunkGenerator<NoiseGeneratorConfig> theNether()Creates a chunk generator like the vanillaWorldTypes.THE_NETHER.- Returns:
- The new chunk generator
-
theEnd
Creates a chunk generator like the vanillaWorldTypes.THE_END.- Returns:
- The new chunk generator
-
fromDataPack
Creates a chunk generator based on the given data view.The data must be equivalent to a data-pack for
seeWorldTemplateWorldTemplate.Builder.fromDataPack(org.spongepowered.api.data.persistence.DataView)- Parameters:
pack- the data- Returns:
- the created ChunkGenerator
- Throws:
IOException
-