Package net.minecraft.util
Record Class CubicSpline.Multipoint<C,I extends ToFloatFunction<C>> 
java.lang.Object
java.lang.Record
net.minecraft.util.CubicSpline.Multipoint<C,I> 
- All Implemented Interfaces:
- CubicSpline<C,,- I> - ToFloatFunction<C>
- Enclosing interface:
- CubicSpline<C,I extends ToFloatFunction<C>> 
public static record CubicSpline.Multipoint<C,I extends ToFloatFunction<C>> (I extends ToFloatFunction<C> coordinate, float[] locations, List<CubicSpline<C,I extends ToFloatFunction<C>>> values, float[] derivatives, float minValue, float maxValue)
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 IThe field for thecoordinaterecord component.private final float[]The field for thederivativesrecord component.private final float[]The field for thelocationsrecord component.private final floatThe field for themaxValuerecord component.private final floatThe field for theminValuerecord component.private final List<CubicSpline<C,I>> The field for thevaluesrecord component.Fields inherited from interface net.minecraft.util.ToFloatFunctionIDENTITY
- 
Constructor SummaryConstructorsConstructorDescriptionMultipoint(I coordinate, float[] locations, List<CubicSpline<C, I>> values, float[] derivatives, float minValue, float maxValue) Creates an instance of aMultipointrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturns the value of thecoordinaterecord component.(package private) static <C,I extends ToFloatFunction<C>> 
 CubicSpline.Multipoint<C,I> create(I p_216144_, float[] p_216145_, List<CubicSpline<C, I>> p_216146_, float[] p_216147_) float[]Returns the value of thederivativesrecord component.final booleanIndicates whether some other object is "equal to" this one.private static intfindIntervalStart(float[] p_216149_, float p_216150_) final inthashCode()Returns a hash code value for this object.private static floatlinearExtend(float p_216134_, float[] p_216135_, float p_216136_, float[] p_216137_, int p_216138_) float[]Returns the value of thelocationsrecord component.mapAll(CubicSpline.CoordinateVisitor<I> p_211585_) floatmaxValue()Returns the value of themaxValuerecord component.floatminValue()Returns the value of theminValuerecord component.final StringtoString()Returns a string representation of this record class.private StringtoString(float[] p_184335_) private static <C,I extends ToFloatFunction<C>> 
 voidvalidateSizes(float[] p_216152_, List<CubicSpline<C, I>> p_216153_, float[] p_216154_) List<CubicSpline<C,I>> values()Returns the value of thevaluesrecord component.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.ToFloatFunctioncomap
- 
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.
- 
minValueprivate final float minValueThe field for theminValuerecord component.
- 
maxValueprivate final float maxValueThe field for themaxValuerecord component.
 
- 
- 
Constructor Details- 
Multipointpublic Multipoint(I coordinate, float[] locations, List<CubicSpline<C, I>> values, float[] derivatives, float minValue, float maxValue) 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
- minValue- the value for the- minValuerecord component
- maxValue- the value for the- maxValuerecord component
 
 
- 
- 
Method Details- 
createstatic <C,I extends ToFloatFunction<C>> CubicSpline.Multipoint<C,I> create(I p_216144_, float[] p_216145_, List<CubicSpline<C, I>> p_216146_, float[] p_216147_) 
- 
linearExtendprivate static float linearExtend(float p_216134_, float[] p_216135_, float p_216136_, float[] p_216137_, int p_216138_) 
- 
validateSizesprivate static <C,I extends ToFloatFunction<C>> void validateSizes(float[] p_216152_, List<CubicSpline<C, I>> p_216153_, float[] p_216154_) 
- 
apply- Specified by:
- applyin interface- ToFloatFunction<C>
 
- 
findIntervalStartprivate static int findIntervalStart(float[] p_216149_, float p_216150_) 
- 
parityString- Specified by:
- parityStringin interface- CubicSpline<C,- I extends ToFloatFunction<C>> 
 
- 
toString
- 
mapAll- Specified by:
- mapAllin interface- CubicSpline<C,- I extends ToFloatFunction<C>> 
 
- 
minValuepublic float minValue()Returns the value of theminValuerecord component.- Specified by:
- minValuein interface- ToFloatFunction<C>
- Returns:
- the value of the minValuerecord component
 
- 
maxValuepublic float maxValue()Returns the value of themaxValuerecord component.- Specified by:
- maxValuein interface- ToFloatFunction<C>
- Returns:
- the value of the maxValuerecord component
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
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
 
 
-