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 official aod$eintermediary net/minecraft/class_6492$class_6738named net/minecraft/util/math/Spline$Implementationofficial bintermediary comp_229named locationFunctionofficial cintermediary comp_230named locationsofficial dintermediary comp_231named valuesofficial eintermediary comp_232named derivativesofficial fintermediary comp_532named minofficial gintermediary comp_533named max
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.math.Spline
Spline.Builder<C,I extends ToFloatFunction<C>>, Spline.FixedFloatFunction<C, I extends ToFloatFunction<C>>, Spline.Implementation<C, I extends ToFloatFunction<C>>, Spline.Visitor<I> -
Field Summary
FieldsModifier 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.ToFloatFunction
IDENTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(Spline.Visitor<I> visitor) (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 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()private static floatmethod_41297(float float2, float[] float3, float float4, float[] float5, int int2) private static intmethod_41300(float[] float2, float float3) private static <C,I extends ToFloatFunction<C>>
voidmethod_41301(float[] float2, List<Spline<C, I>> list, float[] float3) floatmin()final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.function.ToFloatFunction
compose
-
Field Details
-
locationFunction
The field for thelocationFunctionrecord component. -
locations
private final float[] locationsThe field for thelocationsrecord component. -
values
The field for thevaluesrecord component. -
derivatives
private final float[] derivativesThe field for thederivativesrecord component. -
min
private final float minThe field for theminrecord component. -
max
private final float maxThe field for themaxrecord component.
-
-
Constructor Details
-
Implementation
-
-
Method Details
-
build
static <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 official aLaod$e;a(Lapx;[FLjava/util/List;[F)Laod$e;intermediary method_41299Lnet/minecraft/class_6492$class_6738;method_41299(Lnet/minecraft/class_6501;[FLjava/util/List;[F)Lnet/minecraft/class_6492$class_6738;named buildLnet/minecraft/util/math/Spline$Implementation;build(Lnet/minecraft/util/function/ToFloatFunction;[FLjava/util/List;[F)Lnet/minecraft/util/math/Spline$Implementation;
-
method_41297
private static float method_41297(float float2, float[] float3, float float4, float[] float5, int int2) - Mappings:
Namespace Name Mixin selector official aLaod$e;a(F[FF[FI)Fintermediary method_41297Lnet/minecraft/class_6492$class_6738;method_41297(F[FF[FI)Fnamed method_41297Lnet/minecraft/util/math/Spline$Implementation;method_41297(F[FF[FI)F
-
method_41301
private static <C,I extends ToFloatFunction<C>> void method_41301(float[] float2, List<Spline<C, I>> list, float[] float3) - Mappings:
Namespace Name Mixin selector official aLaod$e;a([FLjava/util/List;[F)Vintermediary method_41301Lnet/minecraft/class_6492$class_6738;method_41301([FLjava/util/List;[F)Vnamed method_41301Lnet/minecraft/util/math/Spline$Implementation;method_41301([FLjava/util/List;[F)V
-
apply
- Specified by:
applyin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official aLapx;a(Ljava/lang/Object;)Fintermediary method_41296Lnet/minecraft/class_6501;method_41296(Ljava/lang/Object;)Fnamed applyLnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
-
method_41300
private static int method_41300(float[] float2, float float3) - Mappings:
Namespace Name Mixin selector official aLaod$e;a([FF)Iintermediary method_41300Lnet/minecraft/class_6492$class_6738;method_41300([FF)Inamed method_41300Lnet/minecraft/util/math/Spline$Implementation;method_41300([FF)I
-
getDebugString
- Specified by:
getDebugStringin interfaceSpline<C,I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official aLaod;a()Ljava/lang/String;intermediary method_39225Lnet/minecraft/class_6492;method_39225()Ljava/lang/String;named getDebugStringLnet/minecraft/util/math/Spline;getDebugString()Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector official aLaod$e;a([F)Ljava/lang/String;intermediary method_39238Lnet/minecraft/class_6492$class_6738;method_39238([F)Ljava/lang/String;named formatLnet/minecraft/util/math/Spline$Implementation;format([F)Ljava/lang/String;
-
apply
- Specified by:
applyin interfaceSpline<C,I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official aLaod;a(Laod$d;)Laod;intermediary method_41187Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;named applyLnet/minecraft/util/math/Spline;apply(Lnet/minecraft/util/math/Spline$Visitor;)Lnet/minecraft/util/math/Spline;
-
toString
Returns 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. -
hashCode
public 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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
locationFunction
Returns the value of thelocationFunctionrecord component.- Returns:
- the value of the
locationFunctionrecord component
-
locations
public float[] locations()Returns the value of thelocationsrecord component.- Returns:
- the value of the
locationsrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
derivatives
public float[] derivatives()Returns the value of thederivativesrecord component.- Returns:
- the value of the
derivativesrecord component
-
min
public float min()- Specified by:
minin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official bLapx;b()Fintermediary comp_532Lnet/minecraft/class_6501;comp_532()Fnamed minLnet/minecraft/util/function/ToFloatFunction;min()F
-
max
public float max()- Specified by:
maxin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official cLapx;c()Fintermediary comp_533Lnet/minecraft/class_6501;comp_533()Fnamed maxLnet/minecraft/util/function/ToFloatFunction;max()F
-