Record Class FloatProvider.Uniform
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.FloatProvider.Uniform
- All Implemented Interfaces:
Wrapper, FloatProvider
- Enclosing interface:
FloatProvider
@AsOf("2.3.0")
public static record FloatProvider.Uniform(float minInclusive, float maxExclusive)
extends Record
implements FloatProvider
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface FloatProvider
FloatProvider.ClampedNormal, FloatProvider.Constant, FloatProvider.Factory, FloatProvider.Trapezoid, FloatProvider.UniformNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields inherited from interface FloatProvider
WIRE -
Constructor Summary
ConstructorsConstructorDescriptionUniform(float minInclusive, float maxExclusive) Creates an instance of aUniformrecord 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.floatReturns the value of themaxExclusiverecord component.floatmaxValue()floatReturns the value of theminInclusiverecord component.floatminValue()final StringtoString()Returns a string representation of this record class.Methods inherited from interface FloatProvider
toMinecraft
-
Constructor Details
-
Uniform
public Uniform(float minInclusive, float maxExclusive) Creates an instance of aUniformrecord class.- Parameters:
minInclusive- the value for theminInclusiverecord componentmaxExclusive- the value for themaxExclusiverecord component
-
-
Method Details
-
minValue
public float minValue()- Specified by:
minValuein interfaceFloatProvider- Returns:
- the smallest value this provider can yield.
-
maxValue
public float maxValue()- Specified by:
maxValuein interfaceFloatProvider- Returns:
- the largest value this provider can yield.
-
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. -
minInclusive
public float minInclusive()Returns the value of theminInclusiverecord component.- Returns:
- the value of the
minInclusiverecord component
-
maxExclusive
public float maxExclusive()Returns the value of themaxExclusiverecord component.- Returns:
- the value of the
maxExclusiverecord component
-