Class WeightedListHeight.Builder
java.lang.Object
dev.wyck.worldgen.heightproviders.WeightedListHeight.Builder
- Enclosing interface:
WeightedListHeight
Builder for
WeightedListHeight.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(HeightProvider provider) Adds a provider with a weight of one.add(HeightProvider provider, int weight) Adds a provider with the given weight.build()
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
add
Adds a provider with a weight of one.- Parameters:
provider- the provider to add- Returns:
- this builder
- Since:
- 3.0.0
-
add
Adds a provider with the given weight.- Parameters:
provider- the provider to addweight- the selection weight- Returns:
- this builder
- Since:
- 3.0.0
-
build
-