Interface NoiseThresholdConditionSource

All Superinterfaces:
ConditionSource, SurfaceRule, Wrapper

@NullMarked @AsOf("3.0.0") public interface NoiseThresholdConditionSource extends ConditionSource
Computes the noise value of the current column using a specified noise and checks if it is between the min and max threshold.
Since:
3.0.0
See Also:
  • Method Details

    • noise

      @AsOf("3.0.0") ResourceKey noise()
      The key of the noise to sample.
      Returns:
      the noise key
      Since:
      3.0.0
    • minThreshold

      @AsOf("3.0.0") double minThreshold()
      The minimum noise value where the condition passes.
      Returns:
      the minimum threshold
      Since:
      3.0.0
    • maxThreshold

      @AsOf("3.0.0") double maxThreshold()
      The maximum noise value where the condition passes.
      Returns:
      the maximum threshold
      Since:
      3.0.0
    • is3d

      @AsOf("3.3.0") boolean is3d()
      Whether this condition samples three-dimensional noise.
      Returns:
      whether three-dimensional noise is sampled
      Since:
      3.3.0
    • toBuilder

      @AsOf("3.0.0") default NoiseThresholdConditionSource.Builder toBuilder()
      Converts this object back to a builder.
      Returns:
      a builder with the same values as this object
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static NoiseThresholdConditionSource of(ResourceKey noise, double minThreshold, double maxThreshold)
      Creates a new noise threshold condition source.
      Parameters:
      noise - the key of the noise to sample
      minThreshold - the minimum noise value where the condition passes
      maxThreshold - the maximum noise value where the condition passes
      Returns:
      the noise threshold condition source
      Since:
      3.0.0
    • of

      @AsOf("3.3.0") static NoiseThresholdConditionSource of(ResourceKey noise, double minThreshold, double maxThreshold, boolean is3d)
      Creates a noise threshold condition with an explicit sampling dimensionality.
      Parameters:
      noise - the noise parameters to sample
      minThreshold - the inclusive minimum threshold
      maxThreshold - the inclusive maximum threshold
      is3d - whether to sample three-dimensional noise
      Returns:
      a new noise threshold condition
      Since:
      3.3.0
    • of

      @AsOf("3.0.0") static NoiseThresholdConditionSource of(ResourceKey noise, double minThreshold)
      Creates a new noise threshold condition source with no upper bound.
      Parameters:
      noise - the key of the noise to sample
      minThreshold - the minimum noise value where the condition passes
      Returns:
      the noise threshold condition source
      Since:
      3.0.0
    • builder

      @AsOf("3.0.0") static NoiseThresholdConditionSource.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
      Since:
      3.0.0