Class YClampedGradient.Builder

java.lang.Object
dev.wyck.worldgen.function.misc.YClampedGradient.Builder
Enclosing interface:
YClampedGradient

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

    • resourceKey

      @AsOf("3.0.0") public YClampedGradient.Builder resourceKey(ResourceKey resourceKey)
      Sets the resource key.
      Parameters:
      resourceKey - the resource key
      Returns:
      this builder
      Since:
      3.0.0
    • fromY

      @AsOf("3.0.0") public YClampedGradient.Builder fromY(int fromY)
      Sets the Y coordinate that maps to fromValue.
      Parameters:
      fromY - the lower Y coordinate
      Returns:
      this builder
      Since:
      3.0.0
    • toY

      @AsOf("3.0.0") public YClampedGradient.Builder toY(int toY)
      Sets the Y coordinate that maps to toValue.
      Parameters:
      toY - the upper Y coordinate
      Returns:
      this builder
      Since:
      3.0.0
    • fromValue

      @AsOf("3.0.0") public YClampedGradient.Builder fromValue(double fromValue)
      Sets the value that fromY maps to.
      Parameters:
      fromValue - the lower value
      Returns:
      this builder
      Since:
      3.0.0
    • toValue

      @AsOf("3.0.0") public YClampedGradient.Builder toValue(double toValue)
      Sets the value that toY maps to.
      Parameters:
      toValue - the upper value
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public YClampedGradient build()
      Builds the y clamped gradient density function.
      Returns:
      the y clamped gradient density function
      Since:
      3.0.0