Interface ProbabilityFeatureConfiguration
- All Superinterfaces:
FeatureConfiguration, Wrapper
- All Known Subinterfaces:
CanyonCarverConfiguration, CarverConfiguration, CaveCarverConfiguration
@NullMarked
@AsOf("3.0.0")
public interface ProbabilityFeatureConfiguration
extends FeatureConfiguration
A configuration for a feature that has a probability of being placed.
- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface FeatureConfiguration
NONE -
Method Summary
Modifier and TypeMethodDescriptionof(float probability) Creates a new instance of this configuration.floatGets the probability of the feature being placed between 0.0 and 1.0.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
probability
Gets the probability of the feature being placed between 0.0 and 1.0.- Returns:
- the probability of the feature being placed
- Since:
- 3.0.0
-
of
Creates a new instance of this configuration.- Parameters:
probability- the probability of the feature being placed between 0.0 and 1.0- Returns:
- a new instance of this configuration
- Since:
- 3.0.0
-