Class PlaceOnGroundDecorator.Builder
java.lang.Object
dev.wyck.worldgen.feature.treedecorators.PlaceOnGroundDecorator.Builder
- Enclosing interface:
PlaceOnGroundDecorator
Builder for
PlaceOnGroundDecorator.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockStateProvider(BlockStateProvider blockStateProvider) Sets the block of the decoration.build()Builds the place on ground decorator.height(int height) Sets the height range within which to try positions.radius(int radius) Sets the radius within which to try positions.tries(int tries) Sets the number of positions to try.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
tries
Sets the number of positions to try. Must be a positive integer. Defaults to 128.- Parameters:
tries- the number of tries- Returns:
- this builder
- Since:
- 3.0.0
-
radius
Sets the radius within which to try positions. Must be a non-negative integer. Defaults to 2.- Parameters:
radius- the radius- Returns:
- this builder
- Since:
- 3.0.0
-
height
Sets the height range within which to try positions. Must be a non-negative integer. Defaults to 1.- Parameters:
height- the height- Returns:
- this builder
- Since:
- 3.0.0
-
blockStateProvider
@AsOf("3.0.0") public PlaceOnGroundDecorator.Builder blockStateProvider(BlockStateProvider blockStateProvider) Sets the block of the decoration.- Parameters:
blockStateProvider- the block state provider- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the place on ground decorator.- Returns:
- a new place on ground decorator
- Since:
- 3.0.0
-