Class ReplaceSphereConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.ReplaceSphereConfiguration.Builder
- Enclosing interface:
ReplaceSphereConfiguration
Builder for
ReplaceSphereConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.radius(IntProvider radius) Sets the radius of the sphere.replaceState(BlockData replaceState) Sets the block state the target is replaced with.replaceState(Material material) Sets the replacement block state from the given material's default block data.targetState(BlockData targetState) Sets the block state that is replaced within the sphere.targetState(Material material) Sets the block state that is replaced within the sphere from the given material's default block data.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
targetState
Sets the block state that is replaced within the sphere.- Parameters:
targetState- the target block state- Returns:
- this builder
- Since:
- 3.0.0
-
replaceState
Sets the block state the target is replaced with.- Parameters:
replaceState- the replacement block state- Returns:
- this builder
- Since:
- 3.0.0
-
radius
Sets the radius of the sphere.- Parameters:
radius- the radius- Returns:
- this builder
- Since:
- 3.0.0
-
targetState
Sets the block state that is replaced within the sphere from the given material's default block data.- Parameters:
material- the material to derive the target block state from- Returns:
- this builder
- Since:
- 3.0.0
-
replaceState
Sets the replacement block state from the given material's default block data.- Parameters:
material- the material to derive the replacement block state from- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-