Class CanyonWorldCarver.Builder

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

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

    • Builder

      public Builder()
    • Builder

      @AsOf("4.0.0") public Builder(CanyonWorldCarver carver)
      Creates a builder containing the values of an existing canyon carver.
      Parameters:
      carver - the canyon carver to copy
      Since:
      4.0.0
  • Method Details

    • probability

      @AsOf("4.0.0") public CanyonWorldCarver.Builder probability(float probability)
      Sets the probability that the carver starts in an eligible chunk.
      Parameters:
      probability - the carver start probability
      Returns:
      this builder
      Since:
      4.0.0
    • y

      Sets the provider used to select the starting y-coordinate.
      Parameters:
      y - the starting height provider
      Returns:
      this builder
      Since:
      4.0.0
    • verticalRotation

      @AsOf("4.0.0") public CanyonWorldCarver.Builder verticalRotation(FloatProvider verticalRotation)
      Sets the vertical rotation applied to the canyon.
      Parameters:
      verticalRotation - the canyon's vertical rotation
      Returns:
      this builder
      Since:
      4.0.0
    • shape

      Sets the settings used to shape the canyon.
      Parameters:
      shape - the canyon shape
      Returns:
      this builder
      Since:
      4.0.0
    • build

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