Interface IWorldBuilder


public interface IWorldBuilder
Fluent builder for worlds.
  • Method Details

    • withName

      IWorldBuilder withName(String name)
      Sets the world name.
      Parameters:
      name - World name.
      Returns:
      This builder.
    • withRandomName

      IWorldBuilder withRandomName()
      Assigns a generated random world name.
      Returns:
      This builder.
    • withWorldType

      IWorldBuilder withWorldType(WorldSpec.WorldType worldType)
      Sets the world type.
      Parameters:
      worldType - World type.
      Returns:
      This builder.
    • withEnvironment

      IWorldBuilder withEnvironment(WorldSpec.WorldEnvironment environment)
      Sets the world environment.
      Parameters:
      environment - World environment.
      Returns:
      This builder.
    • withSeed

      IWorldBuilder withSeed(long seed)
      Sets the world seed.
      Parameters:
      seed - World seed.
      Returns:
      This builder.
    • build

      WorldHandle build()
      Builds and creates the configured world.
      Returns:
      Created world handle.