Skip to content

Commit ddaed52

Browse files
committed
start experimenting with a void generation type
that'll support multiple biomes
1 parent df823f2 commit ddaed52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/spongepowered/api/world/generation/ChunkGenerator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ static ConfigurableChunkGenerator<NoiseGeneratorConfig> theEnd() {
7070
return Sponge.game().factoryProvider().provide(ChunkGenerator.Factory.class).theEnd();
7171
}
7272

73+
static ConfigurableChunkGenerator<NoiseGeneratorConfig> customVoid(final NoiseGeneratorConfig config) {
74+
return Sponge.game().factoryProvider().provide(ChunkGenerator.Factory.class).customVoid(Objects.requireNonNull(config, "config"));
75+
}
76+
7377
/**
7478
* Returns the biome provider.
7579
*
@@ -126,5 +130,7 @@ interface Factory {
126130
* @return the created ChunkGenerator
127131
*/
128132
ChunkGenerator fromDataPack(DataView pack) throws IOException;
133+
134+
ConfigurableChunkGenerator<NoiseGeneratorConfig> customVoid(NoiseGeneratorConfig config);
129135
}
130136
}

0 commit comments

Comments
 (0)