Class WorldSpec.Builder
java.lang.Object
fr.fidorial.world.WorldSpec.Builder
- Enclosing class:
WorldSpec
-
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. SeeWorldSpec.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 WorldSpec.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
-