Class WorldBuilder.Builder
java.lang.Object
fr.fidorial.world.WorldBuilder.Builder
- Enclosing class:
WorldBuilder
A fluent builder for
WorldBuilder.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutableWorldBuilderfrom the current builder state.generator(@Nullable WorldGenerator generator) Sets the custom chunk generator for the world.Sets the namespaced identifier of the world.seed(long seed) Sets the world seed.
-
Method Details
-
key
Sets the namespaced identifier of the world.- Parameters:
key- the world key- Returns:
- this builder
- Since:
- 0.1.0
-
seed
Sets the world seed. SeeWorldBuilder.seed()for how the seed is used.- Parameters:
seed- the world seed- Returns:
- this builder
- Since:
- 0.1.0
-
generator
@Contract(value="_ -> this", mutates="this") public WorldBuilder.Builder generator(@Nullable WorldGenerator generator) Sets the custom chunk generator for the world.- Parameters:
generator- the generator, ornullto use the server default- Returns:
- this builder
- Since:
- 0.1.0
-
build
Builds an immutableWorldBuilderfrom the current builder state.- Returns:
- a new spec
- Since:
- 0.1.0
-