Class NoiseThresholdConditionSource.Builder

java.lang.Object
dev.wyck.worldgen.surface.condition.NoiseThresholdConditionSource.Builder
Enclosing interface:
NoiseThresholdConditionSource

@AsOf("3.0.0") public static final class NoiseThresholdConditionSource.Builder extends Object
Since:
3.0.0
  • Method Details

    • noise

      Sets the key of the noise to sample.
      Parameters:
      noise - the noise key
      Returns:
      this builder
      Since:
      3.0.0
    • minThreshold

      @AsOf("3.0.0") public NoiseThresholdConditionSource.Builder minThreshold(double minThreshold)
      Sets the minimum noise value where the condition passes.
      Parameters:
      minThreshold - the minimum threshold
      Returns:
      this builder
      Since:
      3.0.0
    • maxThreshold

      @AsOf("3.0.0") public NoiseThresholdConditionSource.Builder maxThreshold(double maxThreshold)
      Sets the maximum noise value where the condition passes.
      Parameters:
      maxThreshold - the maximum threshold
      Returns:
      this builder
      Since:
      3.0.0
    • is3d

      @AsOf("3.3.0") public NoiseThresholdConditionSource.Builder is3d(boolean is3d)
      Sets whether this condition samples three-dimensional noise.
      Parameters:
      is3d - whether to sample three-dimensional noise
      Returns:
      this builder
      Since:
      3.3.0
    • build

      @AsOf("3.0.0") public NoiseThresholdConditionSource build()
      Builds the noise threshold condition source.
      Returns:
      the noise threshold condition source
      Since:
      3.0.0