Class GeodeConfiguration.Builder

java.lang.Object
dev.wyck.worldgen.feature.configurations.GeodeConfiguration.Builder
Enclosing interface:
GeodeConfiguration

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

  • Method Details

    • geodeBlockSettings

      @AsOf("3.0.0") public GeodeConfiguration.Builder geodeBlockSettings(GeodeBlockSettings geodeBlockSettings)
      Sets the block state providers for the geode's layers and inner placements.
      Parameters:
      geodeBlockSettings - the geode block settings
      Returns:
      this builder
      Since:
      3.0.0
    • geodeLayerSettings

      @AsOf("3.0.0") public GeodeConfiguration.Builder geodeLayerSettings(GeodeLayerSettings geodeLayerSettings)
      Sets the thickness of each of the geode's layers.
      Parameters:
      geodeLayerSettings - the geode layer settings
      Returns:
      this builder
      Since:
      3.0.0
    • geodeCrackSettings

      @AsOf("3.0.0") public GeodeConfiguration.Builder geodeCrackSettings(GeodeCrackSettings geodeCrackSettings)
      Sets the configuration of the crack on the geode.
      Parameters:
      geodeCrackSettings - the geode crack settings
      Returns:
      this builder
      Since:
      3.0.0
    • usePotentialPlacementsChance

      @AsOf("3.0.0") public GeodeConfiguration.Builder usePotentialPlacementsChance(double usePotentialPlacementsChance)
      Sets the probability for placing an inner placement on a block of the inner layer.
      Parameters:
      usePotentialPlacementsChance - the chance to use a potential inner placement
      Returns:
      this builder
      Since:
      3.0.0
    • useAlternateLayer0Chance

      @AsOf("3.0.0") public GeodeConfiguration.Builder useAlternateLayer0Chance(double useAlternateLayer0Chance)
      Sets the chance for a given inner layer block to be replaced with an alternate inner layer block.
      Parameters:
      useAlternateLayer0Chance - the chance to use the alternate inner layer block
      Returns:
      this builder
      Since:
      3.0.0
    • placementsRequireLayer0Alternate

      @AsOf("3.0.0") public GeodeConfiguration.Builder placementsRequireLayer0Alternate(boolean placementsRequireLayer0Alternate)
      Sets whether the inner placement blocks can only be placed on an alternate inner layer block.
      Parameters:
      placementsRequireLayer0Alternate - whether placements require an alternate inner layer block
      Returns:
      this builder
      Since:
      3.0.0
    • outerWallDistance

      @AsOf("3.0.0") public GeodeConfiguration.Builder outerWallDistance(IntProvider outerWallDistance)
      Sets the offset on each coordinate of the center from the feature start.
      Parameters:
      outerWallDistance - the outer wall distance
      Returns:
      this builder
      Since:
      3.0.0
    • distributionPoints

      @AsOf("3.0.0") public GeodeConfiguration.Builder distributionPoints(IntProvider distributionPoints)
      Sets the number of distribution points used to shape the geode.
      Parameters:
      distributionPoints - the distribution points
      Returns:
      this builder
      Since:
      3.0.0
    • pointOffset

      @AsOf("3.0.0") public GeodeConfiguration.Builder pointOffset(IntProvider pointOffset)
      Sets the offset applied to each distribution point.
      Parameters:
      pointOffset - the point offset
      Returns:
      this builder
      Since:
      3.0.0
    • minGenOffset

      @AsOf("3.0.0") public GeodeConfiguration.Builder minGenOffset(int minGenOffset)
      Sets the minimum Chebyshev distance between a block and the center of the geode.
      Parameters:
      minGenOffset - the minimum generation offset
      Returns:
      this builder
      Since:
      3.0.0
    • maxGenOffset

      @AsOf("3.0.0") public GeodeConfiguration.Builder maxGenOffset(int maxGenOffset)
      Sets the maximum Chebyshev distance between a block and the center of the geode.
      Parameters:
      maxGenOffset - the maximum generation offset
      Returns:
      this builder
      Since:
      3.0.0
    • noiseMultiplier

      @AsOf("3.0.0") public GeodeConfiguration.Builder noiseMultiplier(double noiseMultiplier)
      Sets the multiplier applied to the noise shaping the geode.
      Parameters:
      noiseMultiplier - the noise multiplier
      Returns:
      this builder
      Since:
      3.0.0
    • invalidBlocksThreshold

      @AsOf("3.0.0") public GeodeConfiguration.Builder invalidBlocksThreshold(int invalidBlocksThreshold)
      Sets the invalid blocks threshold above which the geode will not be generated.
      Parameters:
      invalidBlocksThreshold - the invalid blocks threshold
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @AsOf("3.0.0") public GeodeConfiguration build()
      Builds the configuration.
      Returns:
      the configuration
      Since:
      3.0.0