Class SpeleothemClusterConfiguration.Builder
java.lang.Object
dev.wyck.worldgen.feature.configurations.SpeleothemClusterConfiguration.Builder
- Enclosing interface:
SpeleothemClusterConfiguration
Builder for
SpeleothemClusterConfiguration.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the base block.build()Builds the speleothem cluster configuration.chanceOfSpeleothemAtMaxDistanceFromCenter(float chanceOfSpeleothemAtMaxDistanceFromCenter) Sets the chance of a speleothem at the maximum distance from center.density(FloatProvider density) Sets the density provider.floorToCeilingSearchRange(int floorToCeilingSearchRange) Sets the floor to ceiling search range.height(IntProvider height) Sets the height provider.heightDeviation(int heightDeviation) Sets the height deviation.maxDistanceFromCenterAffectingHeightBias(int maxDistanceFromCenterAffectingHeightBias) Sets the maximum distance from center affecting height bias.maxDistanceFromEdgeAffectingChanceOfSpeleothem(int maxDistanceFromEdgeAffectingChanceOfSpeleothem) Sets the maximum distance from edge affecting speleothem chance.maxStalagmiteStalactiteHeightDiff(int maxStalagmiteStalactiteHeightDiff) Sets the maximum stalagmite/stalactite height difference.pointedBlock(BlockData pointedBlock) Sets the pointed block.radius(IntProvider radius) Sets the radius provider.replaceableBlocks(Set<Material> replaceableBlocks) Sets the replaceable blocks.replaceableBlocks(Material... replaceableBlocks) Sets the replaceable blocks.speleothemBlockLayerThickness(IntProvider speleothemBlockLayerThickness) Sets the speleothem block layer thickness provider.wetness(FloatProvider wetness) Sets the wetness provider.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
baseBlock
Sets the base block.- Parameters:
baseBlock- the block that the base of the cluster is made of- Returns:
- this builder
- Since:
- 3.0.0
-
pointedBlock
Sets the pointed block.- Parameters:
pointedBlock- the block that the pointed tips of the cluster are made of- Returns:
- this builder
- Since:
- 3.0.0
-
replaceableBlocks
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder replaceableBlocks(Set<Material> replaceableBlocks) Sets the replaceable blocks.- Parameters:
replaceableBlocks- the blocks that the cluster is allowed to replace- Returns:
- this builder
- Since:
- 3.0.0
-
replaceableBlocks
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder replaceableBlocks(Material... replaceableBlocks) Sets the replaceable blocks.- Parameters:
replaceableBlocks- the blocks that the cluster is allowed to replace- Returns:
- this builder
- Since:
- 3.0.0
-
floorToCeilingSearchRange
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder floorToCeilingSearchRange(int floorToCeilingSearchRange) Sets the floor to ceiling search range.- Parameters:
floorToCeilingSearchRange- the vertical distance searched between floor and ceiling- Returns:
- this builder
- Since:
- 3.0.0
-
height
Sets the height provider.- Parameters:
height- the height of the cluster- Returns:
- this builder
- Since:
- 3.0.0
-
radius
Sets the radius provider.- Parameters:
radius- the radius of the cluster- Returns:
- this builder
- Since:
- 3.0.0
-
maxStalagmiteStalactiteHeightDiff
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder maxStalagmiteStalactiteHeightDiff(int maxStalagmiteStalactiteHeightDiff) Sets the maximum stalagmite/stalactite height difference.- Parameters:
maxStalagmiteStalactiteHeightDiff- the maximum allowed height difference- Returns:
- this builder
- Since:
- 3.0.0
-
heightDeviation
Sets the height deviation.- Parameters:
heightDeviation- the height deviation of the cluster- Returns:
- this builder
- Since:
- 3.0.0
-
speleothemBlockLayerThickness
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder speleothemBlockLayerThickness(IntProvider speleothemBlockLayerThickness) Sets the speleothem block layer thickness provider.- Parameters:
speleothemBlockLayerThickness- the thickness of the speleothem block layer- Returns:
- this builder
- Since:
- 3.0.0
-
density
Sets the density provider.- Parameters:
density- the density of the cluster- Returns:
- this builder
- Since:
- 3.0.0
-
wetness
Sets the wetness provider.- Parameters:
wetness- the wetness of the cluster- Returns:
- this builder
- Since:
- 3.0.0
-
chanceOfSpeleothemAtMaxDistanceFromCenter
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder chanceOfSpeleothemAtMaxDistanceFromCenter(float chanceOfSpeleothemAtMaxDistanceFromCenter) Sets the chance of a speleothem at the maximum distance from center.- Parameters:
chanceOfSpeleothemAtMaxDistanceFromCenter- the chance at the maximum distance- Returns:
- this builder
- Since:
- 3.0.0
-
maxDistanceFromEdgeAffectingChanceOfSpeleothem
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder maxDistanceFromEdgeAffectingChanceOfSpeleothem(int maxDistanceFromEdgeAffectingChanceOfSpeleothem) Sets the maximum distance from edge affecting speleothem chance.- Parameters:
maxDistanceFromEdgeAffectingChanceOfSpeleothem- the maximum distance from edge- Returns:
- this builder
- Since:
- 3.0.0
-
maxDistanceFromCenterAffectingHeightBias
@AsOf("3.0.0") public SpeleothemClusterConfiguration.Builder maxDistanceFromCenterAffectingHeightBias(int maxDistanceFromCenterAffectingHeightBias) Sets the maximum distance from center affecting height bias.- Parameters:
maxDistanceFromCenterAffectingHeightBias- the maximum distance from center- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the speleothem cluster configuration.- Returns:
- the speleothem cluster configuration
- Since:
- 3.0.0
-