Package net.minecraft.util
Record Class CubicSpline.Multipoint<C>
java.lang.Object
java.lang.Record
net.minecraft.util.CubicSpline.Multipoint<C>
- All Implemented Interfaces:
- CubicSpline<C>,- ToFloatFunction<C>
- Enclosing interface:
- CubicSpline<C>
public static record CubicSpline.Multipoint<C>(ToFloatFunction<C> coordinate, float[] locations, List<CubicSpline<C>> values, float[] derivatives)
extends Record
implements CubicSpline<C>
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.util.CubicSplineCubicSpline.Builder<C>, CubicSpline.Constant<C>, CubicSpline.CoordinateVisitor<C>, CubicSpline.Multipoint<C>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ToFloatFunction<C>The field for thecoordinaterecord component.private final float[]The field for thederivativesrecord component.private final float[]The field for thelocationsrecord component.private final List<CubicSpline<C>>The field for thevaluesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMultipoint(ToFloatFunction<C> coordinate, float[] locations, List<CubicSpline<C>> values, float[] derivatives) Creates an instance of aMultipointrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturns the value of thecoordinaterecord component.float[]Returns the value of thederivativesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.float[]Returns the value of thelocationsrecord component.mapAll(CubicSpline.CoordinateVisitor<C> p_211585_) floatmax()floatmin()final StringtoString()Returns a string representation of this record class.private StringtoString(float[] p_184335_) List<CubicSpline<C>>values()Returns the value of thevaluesrecord component.
- 
Field Details- 
coordinateThe field for thecoordinaterecord component.
- 
locationsprivate final float[] locationsThe field for thelocationsrecord component.
- 
valuesThe field for thevaluesrecord component.
- 
derivativesprivate final float[] derivativesThe field for thederivativesrecord component.
 
- 
- 
Constructor Details- 
Multipointpublic Multipoint(ToFloatFunction<C> coordinate, float[] locations, List<CubicSpline<C>> values, float[] derivatives) Creates an instance of aMultipointrecord class.- Parameters:
- coordinate- the value for the- coordinaterecord component
- locations- the value for the- locationsrecord component
- values- the value for the- valuesrecord component
- derivatives- the value for the- derivativesrecord component
 
 
- 
- 
Method Details- 
apply- Specified by:
- applyin interface- ToFloatFunction<C>
 
- 
parityString- Specified by:
- parityStringin interface- CubicSpline<C>
 
- 
toString
- 
minpublic float min()- Specified by:
- minin interface- CubicSpline<C>
 
- 
maxpublic float max()- Specified by:
- maxin interface- CubicSpline<C>
 
- 
mapAll- Specified by:
- mapAllin interface- CubicSpline<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 withObjects::equals(Object,Object).
- 
coordinateReturns the value of thecoordinaterecord component.- Returns:
- the value of the coordinaterecord component
 
- 
locationspublic float[] locations()Returns the value of thelocationsrecord component.- Returns:
- the value of the locationsrecord component
 
- 
valuesReturns the value of thevaluesrecord component.- Returns:
- the value of the valuesrecord component
 
- 
derivativespublic float[] derivatives()Returns the value of thederivativesrecord component.- Returns:
- the value of the derivativesrecord component
 
 
-