Class CanyonShapeConfiguration.Builder
java.lang.Object
dev.wyck.wrapper.worldgen.carver.CanyonShapeConfiguration.Builder
- Enclosing class:
CanyonShapeConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the CanyonShapeConfiguration.distanceFactor(FloatProvider distanceFactor) Sets the distance factor of the shape.horizontalRadiusFactor(FloatProvider horizontalRadiusFactor) Sets the horizontal radius factor of the shape.thickness(FloatProvider thickness) Sets the thickness of the shape.verticalRadiusCenterFactor(float verticalRadiusCenterFactor) Sets the vertical radius center factor of the shape.verticalRadiusDefaultFactor(float verticalRadiusDefaultFactor) Sets the vertical radius default factor of the shape.widthSmoothness(int widthSmoothness) Sets the width smoothness of the shape.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distanceFactor
Sets the distance factor of the shape.- Parameters:
distanceFactor- the distance factor of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
thickness
Sets the thickness of the shape.- Parameters:
thickness- the thickness of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
widthSmoothness
Sets the width smoothness of the shape.- Parameters:
widthSmoothness- the width smoothness of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
horizontalRadiusFactor
@AsOf("2.3.0") public CanyonShapeConfiguration.Builder horizontalRadiusFactor(FloatProvider horizontalRadiusFactor) Sets the horizontal radius factor of the shape.- Parameters:
horizontalRadiusFactor- the horizontal radius factor of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
verticalRadiusDefaultFactor
@AsOf("2.3.0") public CanyonShapeConfiguration.Builder verticalRadiusDefaultFactor(float verticalRadiusDefaultFactor) Sets the vertical radius default factor of the shape.- Parameters:
verticalRadiusDefaultFactor- the vertical radius default factor of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
verticalRadiusCenterFactor
@AsOf("2.3.0") public CanyonShapeConfiguration.Builder verticalRadiusCenterFactor(float verticalRadiusCenterFactor) Sets the vertical radius center factor of the shape.- Parameters:
verticalRadiusCenterFactor- the vertical radius center factor of the shape- Returns:
- this builder, for chaining
- Since:
- 2.3.0
-
build
Builds the CanyonShapeConfiguration.- Returns:
- the CanyonShapeConfiguration
- Throws:
IllegalStateException- if any required fields are not set- Since:
- 2.3.0
-