Class CanyonWorldCarver.Shape.Builder

java.lang.Object
dev.wyck.worldgen.carver.CanyonWorldCarver.Shape.Builder
Enclosing interface:
CanyonWorldCarver.Shape

@AsOf("4.0.0") public static final class CanyonWorldCarver.Shape.Builder extends Object
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder()
    • Builder

      @AsOf("4.0.0") public Builder(CanyonWorldCarver.Shape shape)
      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

      @AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder distanceFactor(FloatProvider distanceFactor)
      Sets the distance-based horizontal shape factor.
      Parameters:
      distanceFactor - the distance factor
      Returns:
      this builder
      Since:
      4.0.0
    • thickness

      @AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder thickness(FloatProvider thickness)
      Sets the base canyon thickness.
      Parameters:
      thickness - the canyon thickness
      Returns:
      this builder
      Since:
      4.0.0
    • widthSmoothness

      @AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder widthSmoothness(int 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

      @AsOf("4.0.0") public CanyonWorldCarver.Shape.Builder yScale(FloatProvider yScale)
      Sets the vertical scale applied while shaping the canyon.
      Parameters:
      yScale - the vertical scale
      Returns:
      this builder
      Since:
      4.0.0
    • build

      @AsOf("4.0.0") public CanyonWorldCarver.Shape build()
      Builds the canyon shape.
      Returns:
      the canyon shape
      Since:
      4.0.0