Class RegenOptions.Builder

java.lang.Object
com.sk89q.worldedit.world.RegenOptions.Builder
Enclosing class:
RegenOptions

public abstract static class RegenOptions.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • seed

      public final RegenOptions.Builder seed(@Nullable Long seed)
      Sets the seed to regenerate with. Defaults to null.

      Use null to use the world's current seed.

      Parameters:
      seed - the seed to regenerate with
      Returns:
      this builder
    • regenBiomes

      public abstract RegenOptions.Builder regenBiomes(boolean regenBiomes)
      Turn on or off applying the biomes from the regenerated chunk. Defaults to false.
      Parameters:
      regenBiomes - true to apply biomes
      Returns:
      this builder
    • biomeType

      public abstract RegenOptions.Builder biomeType(@Nullable BiomeType biomeType)
      Defines the BiomeType the regenerator should use for regeneration. Defaults to null.
      Parameters:
      biomeType - the BiomeType to be used for regeneration
      Returns:
      this builder
    • build

      public abstract RegenOptions build()
      Build the options object.
      Returns:
      the options object