Package net.minecraft.util.math
Record Class Spline.Implementation<C,I extends ToFloatFunction<C>> 
java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.Implementation<C,I> 
- Record Components:
- locationFunction-
- locations-
- values-
- derivatives-
- min-
- max-
- All Implemented Interfaces:
- ToFloatFunction<C>,- Spline<C,- I> 
- Enclosing interface:
- Spline<C,- I extends ToFloatFunction<C>> 
public static record Spline.Implementation<C,I extends ToFloatFunction<C>> (I extends ToFloatFunction<C> locationFunction, float[] locations, List<Spline<C,I extends ToFloatFunction<C>>> values, float[] derivatives, float min, float max)
extends Record
implements Spline<C,I>  
- Mappings:
- Namespace - Name - named - net/minecraft/util/math/Spline$Implementation- intermediary - net/minecraft/class_6492$class_6738- official - ayz$e- named - locationFunction- intermediary - comp_229- official - b- named - locations- intermediary - comp_230- official - c- named - values- intermediary - comp_231- official - d- named - derivatives- intermediary - comp_232- official - e- named - min- intermediary - comp_532- official - f- named - max- intermediary - comp_533- official - g
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.util.math.SplineSpline.Builder<C,I extends ToFloatFunction<C>>, Spline.FixedFloatFunction<C, I extends ToFloatFunction<C>>, Spline.Implementation<C, I extends ToFloatFunction<C>>, Spline.Visitor<I> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final float[]The field for thederivativesrecord component.private final IThe field for thelocationFunctionrecord component.private final float[]The field for thelocationsrecord component.private final floatThe field for themaxrecord component.private final floatThe field for theminrecord component.The field for thevaluesrecord component.Fields inherited from interface net.minecraft.util.function.ToFloatFunctionIDENTITY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfloatapply(Spline.Visitor<I> visitor) private static <C,I extends ToFloatFunction<C>> 
 voidassertParametersValid(float[] locations, List<Spline<C, I>> values, float[] derivatives) (package private) static <C,I extends ToFloatFunction<C>> 
 Spline.Implementation<C, I> float[]Returns the value of thederivativesrecord component.final booleanIndicates whether some other object is "equal to" this one.private static intfindRangeForLocation(float[] locations, float x) private Stringformat(float[] values) final inthashCode()Returns a hash code value for this object.Returns the value of thelocationFunctionrecord component.float[]Returns the value of thelocationsrecord component.floatmax()Returns the value of themaxrecord component.floatmin()Returns the value of theminrecord component.private static floatsampleOutsideRange(float point, float[] locations, float value, float[] derivatives, int i) final StringtoString()Returns a string representation of this record class.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.function.ToFloatFunctioncompose
- 
Field Details- 
locationFunctionThe field for thelocationFunctionrecord component.
- 
locationsprivate final float[] locationsThe field for thelocationsrecord component.
- 
valuesThe field for thevaluesrecord component.
- 
derivativesprivate final float[] derivativesThe field for thederivativesrecord component.
- 
minprivate final float minThe field for theminrecord component.
- 
maxprivate final float maxThe field for themaxrecord component.
 
- 
- 
Constructor Details- 
Implementation
 
- 
- 
Method Details- 
buildstatic <C,I extends ToFloatFunction<C>> Spline.Implementation<C,I> build(I locationFunction, float[] locations, List<Spline<C, I>> values, float[] derivatives) - Mappings:
- Namespace - Name - Mixin selector - named - build- Lnet/minecraft/util/math/Spline$Implementation;build(Lnet/minecraft/util/function/ToFloatFunction;[FLjava/util/List;[F)Lnet/minecraft/util/math/Spline$Implementation;- intermediary - method_41299- Lnet/minecraft/class_6492$class_6738;method_41299(Lnet/minecraft/class_6501;[FLjava/util/List;[F)Lnet/minecraft/class_6492$class_6738;- official - a- Layz$e;a(Lbbe;[FLjava/util/List;[F)Layz$e;
 
- 
sampleOutsideRangeprivate static float sampleOutsideRange(float point, float[] locations, float value, float[] derivatives, int i) - Mappings:
- Namespace - Name - Mixin selector - named - sampleOutsideRange- Lnet/minecraft/util/math/Spline$Implementation;sampleOutsideRange(F[FF[FI)F- intermediary - method_41297- Lnet/minecraft/class_6492$class_6738;method_41297(F[FF[FI)F- official - a- Layz$e;a(F[FF[FI)F
 
- 
assertParametersValidprivate static <C,I extends ToFloatFunction<C>> void assertParametersValid(float[] locations, List<Spline<C, I>> values, float[] derivatives) - Mappings:
- Namespace - Name - Mixin selector - named - assertParametersValid- Lnet/minecraft/util/math/Spline$Implementation;assertParametersValid([FLjava/util/List;[F)V- intermediary - method_41301- Lnet/minecraft/class_6492$class_6738;method_41301([FLjava/util/List;[F)V- official - a- Layz$e;a([FLjava/util/List;[F)V
 
- 
apply- Specified by:
- applyin interface- ToFloatFunction<C>
- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F- intermediary - method_41296- Lnet/minecraft/class_6501;method_41296(Ljava/lang/Object;)F- official - a- Lbbe;a(Ljava/lang/Object;)F
 
- 
findRangeForLocationprivate static int findRangeForLocation(float[] locations, float x) - Mappings:
- Namespace - Name - Mixin selector - named - findRangeForLocation- Lnet/minecraft/util/math/Spline$Implementation;findRangeForLocation([FF)I- intermediary - method_41300- Lnet/minecraft/class_6492$class_6738;method_41300([FF)I- official - a- Layz$e;a([FF)I
 
- 
getDebugString- Specified by:
- getDebugStringin interface- Spline<C,- I extends ToFloatFunction<C>> 
- Mappings:
- Namespace - Name - Mixin selector - named - getDebugString- Lnet/minecraft/util/math/Spline;getDebugString()Ljava/lang/String;- intermediary - method_39225- Lnet/minecraft/class_6492;method_39225()Ljava/lang/String;- official - a- Layz;a()Ljava/lang/String;
 
- 
format- Mappings:
- Namespace - Name - Mixin selector - named - format- Lnet/minecraft/util/math/Spline$Implementation;format([F)Ljava/lang/String;- intermediary - method_39238- Lnet/minecraft/class_6492$class_6738;method_39238([F)Ljava/lang/String;- official - a- Layz$e;a([F)Ljava/lang/String;
 
- 
apply- Specified by:
- applyin interface- Spline<C,- I extends ToFloatFunction<C>> 
- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/util/math/Spline;apply(Lnet/minecraft/util/math/Spline$Visitor;)Lnet/minecraft/util/math/Spline;- intermediary - method_41187- Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;- official - a- Layz;a(Layz$d;)Layz;
 
- 
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 '=='.
- 
locationFunctionReturns the value of thelocationFunctionrecord component.- Returns:
- the value of the locationFunctionrecord 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
 
- 
minpublic float min()Returns the value of theminrecord component.- Specified by:
- minin interface- ToFloatFunction<C>
- Returns:
- the value of the minrecord component
 
- 
maxpublic float max()Returns the value of themaxrecord component.- Specified by:
- maxin interface- ToFloatFunction<C>
- Returns:
- the value of the maxrecord component
 
 
-