Class WaterConditionSource.Builder

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

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

    • offset

      @AsOf("3.0.0") public WaterConditionSource.Builder offset(int offset)
      Sets the value added to the water depth before the comparison.
      Parameters:
      offset - the offset
      Returns:
      this builder
      Since:
      3.0.0
    • surfaceDepthMultiplier

      @AsOf("3.0.0") public WaterConditionSource.Builder surfaceDepthMultiplier(int surfaceDepthMultiplier)
      Sets how much the check is affected by the surface depth.
      Parameters:
      surfaceDepthMultiplier - the surface depth multiplier
      Returns:
      this builder
      Since:
      3.0.0
    • addStoneDepth

      @AsOf("3.0.0") public WaterConditionSource.Builder addStoneDepth(boolean addStoneDepth)
      Sets whether the distance to the surface is added to the offset.
      Parameters:
      addStoneDepth - whether the stone depth is added
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public WaterConditionSource build()
      Builds the water condition source.
      Returns:
      the water condition source
      Since:
      3.0.0