Class FindTopSurface.Builder

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

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

    • resourceKey

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

      @AsOf("3.0.0") public FindTopSurface.Builder density(DensityFunction density)
      Sets the density function to scan.
      Parameters:
      density - the density function to scan
      Returns:
      this builder
      Since:
      3.0.0
    • upperBound

      @AsOf("3.0.0") public FindTopSurface.Builder upperBound(DensityFunction upperBound)
      Sets the Y-level to start the scan at.
      Parameters:
      upperBound - the upper bound density function
      Returns:
      this builder
      Since:
      3.0.0
    • lowerBound

      @AsOf("3.0.0") public FindTopSurface.Builder lowerBound(int lowerBound)
      Sets the Y-level to stop the scan at.
      Parameters:
      lowerBound - the lower bound
      Returns:
      this builder
      Since:
      3.0.0
    • cellHeight

      @AsOf("3.0.0") public FindTopSurface.Builder cellHeight(int cellHeight)
      Sets the resolution of the scan.
      Parameters:
      cellHeight - the cell height
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public FindTopSurface build()
      Builds the find top surface density function.
      Returns:
      the find top surface density function
      Since:
      3.0.0