Interface FeatureConfiguration
- All Superinterfaces:
Wrapper
- All Known Subinterfaces:
CarverConfiguration
- All Known Implementing Classes:
CanyonCarverConfiguration, CaveCarverConfiguration, FeatureConfiguration.ColumnConfiguration, FeatureConfiguration.CountConfiguration, FeatureConfiguration.DripstoneClusterConfiguration, FeatureConfiguration.LargeDripstoneConfiguration, FeatureConfiguration.NoneConfiguration, FeatureConfiguration.PointedDripstoneConfiguration, FeatureConfiguration.ProbabilityConfiguration, FeatureConfiguration.SculkPatchConfiguration
Wraps Minecraft's FeatureConfiguration.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA column feature.static final recordA number of placement attempts.static final recordA dripstone cluster.static interfacestatic final recordA large dripstone.static final recordThe empty configuration used by feature types that take no parameters.static final recordPointed dripstone spread chances.static final recordA single placement probability, in the range [0, 1].static final recordA sculk patch.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncolumn(IntProvider reach, IntProvider height) A column feature, with reach constrained to [0, 3] and height to [1, 10].count(IntProvider count) A number of placement attempts, constrained by the vanilla codec to [0, 256].A builder for a dripstone cluster.A builder for a large dripstone.none()The empty configuration for feature types that take no parameters.A builder for pointed dripstone spread chances.probability(float probability) A single placement probability, in the range [0, 1].A builder for a sculk patch.default ObjectConvert this handle to the real Minecraft object.
-
Field Details
-
WIRE
-
-
Method Details
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-
none
The empty configuration for feature types that take no parameters.- Returns:
- the none configuration
- Since:
- 3.0.0
-
probability
A single placement probability, in the range [0, 1].- Parameters:
probability- the placement probability- Returns:
- the configuration
- Since:
- 3.0.0
-
pointedDripstone
A builder for pointed dripstone spread chances.- Returns:
- a new builder
- Since:
- 3.0.0
-
count
A number of placement attempts, constrained by the vanilla codec to [0, 256].- Parameters:
count- the count provider- Returns:
- the configuration
- Since:
- 3.0.0
-
column
@AsOf("3.0.0") static FeatureConfiguration.ColumnConfiguration column(IntProvider reach, IntProvider height) A column feature, with reach constrained to [0, 3] and height to [1, 10].- Parameters:
reach- the horizontal reach providerheight- the column height provider- Returns:
- the configuration
- Since:
- 3.0.0
-
sculkPatch
A builder for a sculk patch.- Returns:
- a new builder
- Since:
- 3.0.0
-
dripstoneCluster
A builder for a dripstone cluster.- Returns:
- a new builder
- Since:
- 3.0.0
-
largeDripstone
A builder for a large dripstone.- Returns:
- a new builder
- Since:
- 3.0.0
-