Class CanyonWorldCarver.Shape.Builder
java.lang.Object
dev.wyck.worldgen.carver.CanyonWorldCarver.Shape.Builder
- Enclosing interface:
CanyonWorldCarver.Shape
Builder for
CanyonWorldCarver.Shape.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Builder(CanyonWorldCarver.Shape shape) Creates a builder containing the values of an existing canyon shape. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the canyon shape.distanceFactor(FloatProvider distanceFactor) Sets the distance-based horizontal shape factor.horizontalRadiusFactor(FloatProvider horizontalRadiusFactor) Sets the horizontal radius factor.thickness(FloatProvider thickness) Sets the base canyon thickness.verticalRadiusCenterFactor(float verticalRadiusCenterFactor) Sets the center vertical radius factor.verticalRadiusDefaultFactor(float verticalRadiusDefaultFactor) Sets the default vertical radius factor.widthSmoothness(int widthSmoothness) Sets the number of steps over which width changes are smoothed.yScale(FloatProvider yScale) Sets the vertical scale applied while shaping the canyon.
-
Constructor Details
-
Builder
public Builder() -
Builder
Creates a builder containing the values of an existing canyon shape.- Parameters:
shape- the canyon shape to copy- Since:
- 4.0.0
-
-
Method Details
-
distanceFactor
Sets the distance-based horizontal shape factor.- Parameters:
distanceFactor- the distance factor- Returns:
- this builder
- Since:
- 4.0.0
-
thickness
Sets the base canyon thickness.- Parameters:
thickness- the canyon thickness- Returns:
- this builder
- Since:
- 4.0.0
-
widthSmoothness
Sets the number of steps over which width changes are smoothed.- Parameters:
widthSmoothness- the width smoothness- Returns:
- this builder
- Since:
- 4.0.0
-
horizontalRadiusFactor
@AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder horizontalRadiusFactor(FloatProvider horizontalRadiusFactor) Sets the horizontal radius factor.- Parameters:
horizontalRadiusFactor- the horizontal radius factor- Returns:
- this builder
- Since:
- 4.0.0
-
verticalRadiusDefaultFactor
@AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder verticalRadiusDefaultFactor(float verticalRadiusDefaultFactor) Sets the default vertical radius factor.- Parameters:
verticalRadiusDefaultFactor- the default vertical radius factor- Returns:
- this builder
- Since:
- 4.0.0
-
verticalRadiusCenterFactor
@AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder verticalRadiusCenterFactor(float verticalRadiusCenterFactor) Sets the center vertical radius factor.- Parameters:
verticalRadiusCenterFactor- the center vertical radius factor- Returns:
- this builder
- Since:
- 4.0.0
-
yScale
Sets the vertical scale applied while shaping the canyon.- Parameters:
yScale- the vertical scale- Returns:
- this builder
- Since:
- 4.0.0
-
build
Builds the canyon shape.- Returns:
- the canyon shape
- Since:
- 4.0.0
-