Class DiskConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.DiskConfiguration.Builder
- Enclosing interface:
DiskConfiguration
Builder for
DiskConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.halfHeight(int halfHeight) Sets half of the height of this disk.radius(IntProvider radius) Sets the radius of this disk.stateProvider(BlockStateProvider stateProvider) Sets the block state provider used for the blocks that make up the disk.target(BlockPredicate target) Sets the block predicate that must be passed for a block to be replaced.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
stateProvider
Sets the block state provider used for the blocks that make up the disk.- Parameters:
stateProvider- the state provider- Returns:
- this builder
- Since:
- 3.0.0
-
target
Sets the block predicate that must be passed for a block to be replaced.- Parameters:
target- the target predicate- Returns:
- this builder
- Since:
- 3.0.0
-
radius
Sets the radius of this disk.- Parameters:
radius- the radius- Returns:
- this builder
- Since:
- 3.0.0
-
halfHeight
Sets half of the height of this disk.- Parameters:
halfHeight- the half height- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-