Class SurfaceRelativeThresholdFilter.Builder

java.lang.Object
dev.wyck.worldgen.placement.SurfaceRelativeThresholdFilter.Builder
Enclosing interface:
SurfaceRelativeThresholdFilter

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

  • Method Details

    • heightmap

      @AsOf("3.0.0") public SurfaceRelativeThresholdFilter.Builder heightmap(HeightmapType heightmap)
      Sets the heightmap.
      Parameters:
      heightmap - the heightmap to measure the surface against
      Returns:
      this builder
      Since:
      3.0.0
    • minInclusive

      @AsOf("3.0.0") public SurfaceRelativeThresholdFilter.Builder minInclusive(int minInclusive)
      Sets the minimum inclusive relative height.
      Parameters:
      minInclusive - the minimum relative height from the surface to the current position
      Returns:
      this builder
      Since:
      3.0.0
    • maxInclusive

      @AsOf("3.0.0") public SurfaceRelativeThresholdFilter.Builder maxInclusive(int maxInclusive)
      Sets the maximum inclusive relative height.
      Parameters:
      maxInclusive - the maximum relative height from the surface to the current position
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public SurfaceRelativeThresholdFilter build()
      Builds the surface relative threshold filter.
      Returns:
      the surface relative threshold filter
      Since:
      3.0.0