Class StepsBiomeProvider.Builder

java.lang.Object
dev.wyck.misc.providers.StepsBiomeProvider.Builder
Enclosing class:
StepsBiomeProvider

@AsOf("2.3.0") public static final class StepsBiomeProvider.Builder extends Object
A builder class for creating instances of StepsBiomeProvider.
Since:
2.3.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • step

      @AsOf("2.3.0") public StepsBiomeProvider.Builder step(StepsBiomeProvider.BiomeStep step, Biome... produces)
      Full-control step. The lambda receives the position and returns a biome to place, or null to defer to the next step. Declare every biome the lambda can return via produces so the provider can advertise it from getBiomes(...).
    • step

      @AsOf("2.3.0") public StepsBiomeProvider.Builder step(Biome biome, StepsBiomeProvider.BiomeCondition condition)
      Convenience step for simple position tests. The lambda receives the position and returns whether to place the biome. The biome is automatically registered as being produced by this provider.
      Parameters:
      biome - the biome to place
      condition - the position test
      Returns:
      this builder
    • fallback

      @AsOf("2.3.0") public StepsBiomeProvider.Builder fallback(Biome biome)
      Fallback biome to use when no other step produces a biome.
      Parameters:
      biome - the biome to use
      Returns:
      this builder
      Since:
      2.3.0
    • build

      @AsOf("2.3.0") public StepsBiomeProvider build()