Interface GeodeConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
A geode feature, such as an amethyst geode, composed of concentric layers of blocks
surrounding a hollow, optionally cracked, interior.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionstatic GeodeConfiguration.Builderbuilder()Creates a new builder.The number of distribution points used to shape the geode.The block state providers used for each of the geode's layers and its inner placements.The configuration of the crack on the geode.The thickness of each of the geode's layers.intThe invalid block threshold.intThe maximum Chebyshev distance between a block and the center of the geode.intThe minimum Chebyshev distance between a block and the center of the geode.doubleThe multiplier applied to the noise shaping the geode.static GeodeConfigurationof(GeodeBlockSettings geodeBlockSettings, GeodeLayerSettings geodeLayerSettings, GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, IntProvider outerWallDistance, IntProvider distributionPoints, IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) Creates a new geode configuration.The offset on each coordinate of the center from the feature start.booleanWhether the inner placement blocks can only be placed on an alternate inner layer block.The offset applied to each distribution point.default GeodeConfiguration.BuilderConverts this object back to a builder.doubleThe chance for a given inner layer block to be replaced with an alternate inner layer block.doubleThe probability for placing an inner placement on a block of the inner layer.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
geodeBlockSettings
The block state providers used for each of the geode's layers and its inner placements.- Returns:
- the geode block settings
- Since:
- 3.0.0
-
geodeLayerSettings
The thickness of each of the geode's layers.- Returns:
- the geode layer settings
- Since:
- 3.0.0
-
geodeCrackSettings
The configuration of the crack on the geode.- Returns:
- the geode crack settings
- Since:
- 3.0.0
-
usePotentialPlacementsChance
The probability for placing an inner placement on a block of the inner layer. Value between 0.0 and 1.0.- Returns:
- the chance to use a potential inner placement
- Since:
- 3.0.0
-
useAlternateLayer0Chance
The chance for a given inner layer block to be replaced with an alternate inner layer block. Value between 0.0 and 1.0.- Returns:
- the chance to use the alternate inner layer block
- Since:
- 3.0.0
-
placementsRequireLayer0Alternate
Whether the inner placement blocks can only be placed on an alternate inner layer block.- Returns:
- whether placements require an alternate inner layer block
- Since:
- 3.0.0
-
outerWallDistance
The offset on each coordinate of the center from the feature start. Value between 1 and 20.- Returns:
- the outer wall distance
- Since:
- 3.0.0
-
distributionPoints
The number of distribution points used to shape the geode. Value between 1 and 20.- Returns:
- the distribution points
- Since:
- 3.0.0
-
pointOffset
The offset applied to each distribution point. Value between 0 and 10.- Returns:
- the point offset
- Since:
- 3.0.0
-
minGenOffset
The minimum Chebyshev distance between a block and the center of the geode.- Returns:
- the minimum generation offset
- Since:
- 3.0.0
-
maxGenOffset
The maximum Chebyshev distance between a block and the center of the geode.- Returns:
- the maximum generation offset
- Since:
- 3.0.0
-
noiseMultiplier
The multiplier applied to the noise shaping the geode. Value between 0.0 and 1.0.- Returns:
- the noise multiplier
- Since:
- 3.0.0
-
invalidBlocksThreshold
The invalid block threshold. CheckeddistributionPoints()times near the center of the geode; if the number of invalid blocks found exceeds this number, the feature will not be generated.- Returns:
- the invalid blocks threshold
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static GeodeConfiguration of(GeodeBlockSettings geodeBlockSettings, GeodeLayerSettings geodeLayerSettings, GeodeCrackSettings geodeCrackSettings, double usePotentialPlacementsChance, double useAlternateLayer0Chance, boolean placementsRequireLayer0Alternate, IntProvider outerWallDistance, IntProvider distributionPoints, IntProvider pointOffset, int minGenOffset, int maxGenOffset, double noiseMultiplier, int invalidBlocksThreshold) Creates a new geode configuration.- Parameters:
geodeBlockSettings- the block state providers for the geode's layers and inner placementsgeodeLayerSettings- the thickness of each of the geode's layersgeodeCrackSettings- the configuration of the crack on the geodeusePotentialPlacementsChance- the probability for placing an inner placement on a block of the inner layeruseAlternateLayer0Chance- the chance for a given inner layer block to be replaced with an alternate inner layer blockplacementsRequireLayer0Alternate- whether the inner placement blocks can only be placed on an alternate inner layer blockouterWallDistance- the offset on each coordinate of the center from the feature startdistributionPoints- the number of distribution points used to shape the geodepointOffset- the offset applied to each distribution pointminGenOffset- the minimum Chebyshev distance between a block and the centermaxGenOffset- the maximum Chebyshev distance between a block and the centernoiseMultiplier- the multiplier applied to the noise shaping the geodeinvalidBlocksThreshold- the invalid blocks threshold- Returns:
- a new geode configuration
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-