Class WeightedListInt.Builder
java.lang.Object
dev.wyck.worldgen.valueproviders.WeightedListInt.Builder
- Enclosing interface:
WeightedListInt
Builder for
WeightedListInt.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(IntProvider provider) Adds a provider with a weight of one.add(IntProvider 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
-