Class GeodeConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.GeodeConfiguration.Builder
- Enclosing interface:
GeodeConfiguration
Builder for
GeodeConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configuration.distributionPoints(IntProvider distributionPoints) Sets the number of distribution points used to shape the geode.geodeBlockSettings(GeodeBlockSettings geodeBlockSettings) Sets the block state providers for the geode's layers and inner placements.geodeCrackSettings(GeodeCrackSettings geodeCrackSettings) Sets the configuration of the crack on the geode.geodeLayerSettings(GeodeLayerSettings geodeLayerSettings) Sets the thickness of each of the geode's layers.invalidBlocksThreshold(int invalidBlocksThreshold) Sets the invalid blocks threshold above which the geode will not be generated.maxGenOffset(int maxGenOffset) Sets the maximum Chebyshev distance between a block and the center of the geode.minGenOffset(int minGenOffset) Sets the minimum Chebyshev distance between a block and the center of the geode.noiseMultiplier(double noiseMultiplier) Sets the multiplier applied to the noise shaping the geode.outerWallDistance(IntProvider outerWallDistance) Sets the offset on each coordinate of the center from the feature start.placementsRequireLayer0Alternate(boolean placementsRequireLayer0Alternate) Sets whether the inner placement blocks can only be placed on an alternate inner layer block.pointOffset(IntProvider pointOffset) Sets the offset applied to each distribution point.useAlternateLayer0Chance(double useAlternateLayer0Chance) Sets the chance for a given inner layer block to be replaced with an alternate inner layer block.usePotentialPlacementsChance(double usePotentialPlacementsChance) Sets the probability for placing an inner placement on a block of the inner layer.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
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
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
Sets the number of distribution points used to shape the geode.- Parameters:
distributionPoints- the distribution points- Returns:
- this builder
- Since:
- 3.0.0
-
pointOffset
Sets the offset applied to each distribution point.- Parameters:
pointOffset- the point offset- Returns:
- this builder
- Since:
- 3.0.0
-
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
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
Sets the multiplier applied to the noise shaping the geode.- Parameters:
noiseMultiplier- the noise multiplier- Returns:
- this builder
- Since:
- 3.0.0
-
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
Builds the configuration.- Returns:
- the configuration
- Since:
- 3.0.0
-