Interface IWorldBuilder
public interface IWorldBuilder
Fluent builder for worlds.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and creates the configured world.withEnvironment(WorldSpec.WorldEnvironment environment) Sets the world environment.Sets the world name.Assigns a generated random world name.withSeed(long seed) Sets the world seed.withWorldType(WorldSpec.WorldType worldType) Sets the world type.
-
Method Details
-
withName
Sets the world name.- Parameters:
name- World name.- Returns:
- This builder.
-
withRandomName
IWorldBuilder withRandomName()Assigns a generated random world name.- Returns:
- This builder.
-
withWorldType
Sets the world type.- Parameters:
worldType- World type.- Returns:
- This builder.
-
withEnvironment
Sets the world environment.- Parameters:
environment- World environment.- Returns:
- This builder.
-
withSeed
Sets the world seed.- Parameters:
seed- World seed.- Returns:
- This builder.
-
build
WorldHandle build()Builds and creates the configured world.- Returns:
- Created world handle.
-