Class YAboveConditionSource.Builder

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

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

    • anchor

      @AsOf("3.0.0") public YAboveConditionSource.Builder anchor(VerticalAnchor anchor)
      Sets the vertical anchor to compare the height with.
      Parameters:
      anchor - the anchor
      Returns:
      this builder
      Since:
      3.0.0
    • surfaceDepthMultiplier

      @AsOf("3.0.0") public YAboveConditionSource.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 YAboveConditionSource.Builder addStoneDepth(boolean addStoneDepth)
      Sets whether the distance to the surface above 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 YAboveConditionSource build()
      Builds the y above condition source.
      Returns:
      the y above condition source
      Since:
      3.0.0