Class StoneDepthConditionSource.Builder

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

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

    • offset

      @AsOf("3.0.0") public StoneDepthConditionSource.Builder offset(int offset)
      Sets the vertical offset.
      Parameters:
      offset - the offset
      Returns:
      this builder
      Since:
      3.0.0
    • addSurfaceDepth

      @AsOf("3.0.0") public StoneDepthConditionSource.Builder addSurfaceDepth(boolean addSurfaceDepth)
      Sets whether the surface depth is added to the offset.
      Parameters:
      addSurfaceDepth - whether the surface depth is added
      Returns:
      this builder
      Since:
      3.0.0
    • secondaryDepthRange

      @AsOf("3.0.0") public StoneDepthConditionSource.Builder secondaryDepthRange(int secondaryDepthRange)
      Sets the secondary depth range added to the offset.
      Parameters:
      secondaryDepthRange - the secondary depth range
      Returns:
      this builder
      Since:
      3.0.0
    • surfaceType

      @AsOf("3.0.0") public StoneDepthConditionSource.Builder surfaceType(CaveSurface surfaceType)
      Sets the face the depth is measured from.
      Parameters:
      surfaceType - the surface type
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public StoneDepthConditionSource build()
      Builds the stone depth condition source.
      Returns:
      the stone depth condition source
      Since:
      3.0.0