Class BlockColumnConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.BlockColumnConfiguration.Builder
- Enclosing interface:
BlockColumnConfiguration
Builder for
BlockColumnConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedPlacement(BlockPredicate allowedPlacement) Sets the block predicate that must be passed for each position of the column.build()Builds the configuration.Sets the direction the column is built in.layer(IntProvider height, BlockStateProvider state) Adds a single layer to the column.layers(BlockColumnConfiguration.Layer... layers) Adds one or more layers to the column.layers(List<BlockColumnConfiguration.Layer> layers) Sets the layers of the column, replacing any existing layers.prioritizeTip(boolean prioritizeTip) Sets whether layers are removed from the start of the column when space is restricted.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
layers
@AsOf("3.0.0") public BlockColumnConfiguration.Builder layers(List<BlockColumnConfiguration.Layer> layers) Sets the layers of the column, replacing any existing layers.- Parameters:
layers- the layers- Returns:
- this builder
- Since:
- 3.0.0
-
direction
Sets the direction the column is built in.- Parameters:
direction- the direction- Returns:
- this builder
- Since:
- 3.0.0
-
allowedPlacement
@AsOf("3.0.0") public BlockColumnConfiguration.Builder allowedPlacement(BlockPredicate allowedPlacement) Sets the block predicate that must be passed for each position of the column.- Parameters:
allowedPlacement- the allowed placement predicate- Returns:
- this builder
- Since:
- 3.0.0
-
prioritizeTip
Sets whether layers are removed from the start of the column when space is restricted.- Parameters:
prioritizeTip- whether the tip is prioritized- Returns:
- this builder
- Since:
- 3.0.0
-
layers
@AsOf("3.0.0") public BlockColumnConfiguration.Builder layers(BlockColumnConfiguration.Layer... layers) Adds one or more layers to the column.- Parameters:
layers- the layers to add- Returns:
- this builder
- Since:
- 3.0.0
-
layer
@AsOf("3.0.0") public BlockColumnConfiguration.Builder layer(IntProvider height, BlockStateProvider state) Adds a single layer to the column.- Parameters:
height- the height of the layerstate- the block state provider used for the layer- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-