Class WeightedStateProvider.Builder
java.lang.Object
dev.wyck.worldgen.stateproviders.WeightedStateProvider.Builder
- Enclosing interface:
WeightedStateProvider
Builder for
WeightedStateProvider.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the builder.entries(WeightedList<BlockData> entries) Sets the weighted list of block states.Adds multiple weighted entries to the list.Adds a weighted entry to the list.Adds a weighted entry to the list.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
entries
Sets the weighted list of block states.- Parameters:
entries- the weighted list of block states- Returns:
- this builder
- Since:
- 3.0.0
-
entry
Adds a weighted entry to the list.- Parameters:
state- the block stateweight- the weight of the entry- Returns:
- this builder
- Since:
- 3.0.0
-
entry
Adds a weighted entry to the list.- Parameters:
material- the material of the block stateweight- the weight of the entry- Returns:
- this builder
- Since:
- 3.0.0
-
entries
Adds multiple weighted entries to the list.- Parameters:
entries- the weighted entries to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the builder.- Returns:
- the constructed weighted state provider
- Since:
- 3.0.0
-