Record Class FloatProvider.Constant
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.valueproviders.FloatProvider.Constant
- All Implemented Interfaces:
Wrapper, FloatProvider
- Enclosing interface:
FloatProvider
@AsOf("2.3.0")
public static record FloatProvider.Constant(float value)
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
Constructors -
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.floatmaxValue()floatminValue()final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.Methods inherited from interface FloatProvider
toMinecraft
-
Constructor Details
-
Constant
public Constant(float value) Creates an instance of aConstantrecord class.- Parameters:
value- the value for thevaluerecord 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. -
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-