Package net.minecraft.util
Record Class CubicSpline.Constant<C,I extends ToFloatFunction<C>> 
java.lang.Object
java.lang.Record
net.minecraft.util.CubicSpline.Constant<C,I> 
- All Implemented Interfaces:
- CubicSpline<C,,- I> - ToFloatFunction<C>
- Enclosing interface:
- CubicSpline<C,- I extends ToFloatFunction<C>> 
public static record CubicSpline.Constant<C,I extends ToFloatFunction<C>> (float value)
extends Record
implements CubicSpline<C,I> 
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.util.CubicSplineCubicSpline.Builder<C,I extends ToFloatFunction<C>>, CubicSpline.Constant<C, I extends ToFloatFunction<C>>, CubicSpline.CoordinateVisitor<I>, CubicSpline.Multipoint<C, I extends ToFloatFunction<C>> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatThe field for thevaluerecord component.Fields inherited from interface net.minecraft.util.ToFloatFunctionIDENTITY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mapAll(CubicSpline.CoordinateVisitor<I> p_211581_) floatmaxValue()floatminValue()final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.ToFloatFunctioncomap
- 
Field Details- 
valueprivate final float valueThe field for thevaluerecord component.
 
- 
- 
Constructor Details- 
Constantpublic Constant(float value) Creates an instance of aConstantrecord class.- Parameters:
- value- the value for the- valuerecord component
 
 
- 
- 
Method Details- 
apply- Specified by:
- applyin interface- ToFloatFunction<C>
 
- 
parityString- Specified by:
- parityStringin interface- CubicSpline<C,- I extends ToFloatFunction<C>> 
 
- 
minValuepublic float minValue()- Specified by:
- minValuein interface- ToFloatFunction<C>
 
- 
maxValuepublic float maxValue()- Specified by:
- maxValuein interface- ToFloatFunction<C>
 
- 
mapAll- Specified by:
- mapAllin interface- CubicSpline<C,- I extends ToFloatFunction<C>> 
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
valuepublic float value()Returns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
 
-