Record Class FeatureConfiguration.ProbabilityConfiguration
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.feature.config.FeatureConfiguration.ProbabilityConfiguration
- Record Components:
probability- the placement probability
- All Implemented Interfaces:
Wrapper, FeatureConfiguration
- Enclosing interface:
FeatureConfiguration
@AsOf("3.0.0")
public static record FeatureConfiguration.ProbabilityConfiguration(float probability)
extends Record
implements FeatureConfiguration
A single placement probability, in the range [0, 1].
- Since:
- 3.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface FeatureConfiguration
FeatureConfiguration.ColumnConfiguration, FeatureConfiguration.CountConfiguration, FeatureConfiguration.DripstoneClusterConfiguration, FeatureConfiguration.Factory, FeatureConfiguration.LargeDripstoneConfiguration, FeatureConfiguration.NoneConfiguration, FeatureConfiguration.PointedDripstoneConfiguration, FeatureConfiguration.ProbabilityConfiguration, FeatureConfiguration.SculkPatchConfigurationNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface FeatureConfiguration
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionProbabilityConfiguration(float probability) Creates an instance of aProbabilityConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(float probability) floatReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface FeatureConfiguration
toMinecraft
-
Constructor Details
-
ProbabilityConfiguration
Creates an instance of aProbabilityConfigurationrecord class.- Parameters:
probability- the value for theprobabilityrecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
probability
public float probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-