Class StepsBiomeProvider.Builder
java.lang.Object
dev.wyck.misc.providers.StepsBiomeProvider.Builder
- Enclosing class:
StepsBiomeProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Fallback biome to use when no other step produces a biome.step(StepsBiomeProvider.BiomeStep step, Biome... produces) Full-control step.step(Biome biome, StepsBiomeProvider.BiomeCondition condition) Convenience step for simple position tests.
-
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, ornullto defer to the next step. Declare every biome the lambda can return viaproducesso the provider can advertise it fromgetBiomes(...). -
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 placecondition- the position test- Returns:
- this builder
-
fallback
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
-