Package net.minecraft.util.math
Class Spline<C>
java.lang.Object
net.minecraft.util.math.Spline<C>
- All Implemented Interfaces:
ToFloatFunction<C>
- Mappings:
Namespace Name official agxintermediary net/minecraft/class_6492named net/minecraft/util/math/Spline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]private final ToFloatFunction<C>private final float[]private final List<ToFloatFunction<C>> -
Constructor Summary
ConstructorsConstructorDescriptionSpline(ToFloatFunction<C> locationFunction, float[] locations, List<ToFloatFunction<C>> values, float[] derivatives) -
Method Summary
Modifier and TypeMethodDescriptionfloatstatic <C> Spline.Builder<C>builder(ToFloatFunction<C> locationFunction) floatgetDerivative(int index) private StringgetListAsString(float[] locations) protected ToFloatFunction<C>getValue(int index) toString()
-
Field Details
-
locationFunction
- Mappings:
Namespace Name Mixin selector official aLagx;a:Laid;intermediary field_34378Lnet/minecraft/class_6492;field_34378:Lnet/minecraft/class_6501;named locationFunctionLnet/minecraft/util/math/Spline;locationFunction:Lnet/minecraft/util/function/ToFloatFunction;
-
locations
private final float[] locations- Mappings:
Namespace Name Mixin selector official bLagx;b:[Fintermediary field_34379Lnet/minecraft/class_6492;field_34379:[Fnamed locationsLnet/minecraft/util/math/Spline;locations:[F
-
values
- Mappings:
Namespace Name Mixin selector official cLagx;c:Ljava/util/List;intermediary field_34380Lnet/minecraft/class_6492;field_34380:Ljava/util/List;named valuesLnet/minecraft/util/math/Spline;values:Ljava/util/List;
-
derivatives
private final float[] derivatives- Mappings:
Namespace Name Mixin selector official dLagx;d:[Fintermediary field_34381Lnet/minecraft/class_6492;field_34381:[Fnamed derivativesLnet/minecraft/util/math/Spline;derivatives:[F
-
-
Constructor Details
-
Spline
Spline(ToFloatFunction<C> locationFunction, float[] locations, List<ToFloatFunction<C>> values, float[] derivatives) - Mappings:
Namespace Name Mixin selector official <init>Lagx;<init>(Laid;[FLjava/util/List;[F)Vintermediary <init>Lnet/minecraft/class_6492;<init>(Lnet/minecraft/class_6501;[FLjava/util/List;[F)Vnamed <init>Lnet/minecraft/util/math/Spline;<init>(Lnet/minecraft/util/function/ToFloatFunction;[FLjava/util/List;[F)V
-
-
Method Details
-
apply
- Specified by:
applyin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official applyLaid;apply(Ljava/lang/Object;)Fintermediary applyLnet/minecraft/class_6501;apply(Ljava/lang/Object;)Fnamed applyLnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
-
builder
- Mappings:
Namespace Name Mixin selector official aLagx;a(Laid;)Lagx$a;intermediary method_37918Lnet/minecraft/class_6492;method_37918(Lnet/minecraft/class_6501;)Lnet/minecraft/class_6492$class_6493;named builderLnet/minecraft/util/math/Spline;builder(Lnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline$Builder;
-
getListAsString
- Mappings:
Namespace Name Mixin selector official aLagx;a([F)Ljava/lang/String;intermediary method_37919Lnet/minecraft/class_6492;method_37919([F)Ljava/lang/String;named getListAsStringLnet/minecraft/util/math/Spline;getListAsString([F)Ljava/lang/String;
-
getLocationFunction
- Mappings:
Namespace Name Mixin selector official aLagx;a()Laid;intermediary method_37914Lnet/minecraft/class_6492;method_37914()Lnet/minecraft/class_6501;named getLocationFunctionLnet/minecraft/util/math/Spline;getLocationFunction()Lnet/minecraft/util/function/ToFloatFunction;
-
getLocations
- Mappings:
Namespace Name Mixin selector official bLagx;b()Ljava/util/List;intermediary method_37921Lnet/minecraft/class_6492;method_37921()Ljava/util/List;named getLocationsLnet/minecraft/util/math/Spline;getLocations()Ljava/util/List;
-
getValue
- Mappings:
Namespace Name Mixin selector official aLagx;a(I)Laid;intermediary method_37917Lnet/minecraft/class_6492;method_37917(I)Lnet/minecraft/class_6501;named getValueLnet/minecraft/util/math/Spline;getValue(I)Lnet/minecraft/util/function/ToFloatFunction;
-
getDerivative
public float getDerivative(int index) - Mappings:
Namespace Name Mixin selector official bLagx;b(I)Fintermediary method_37922Lnet/minecraft/class_6492;method_37922(I)Fnamed getDerivativeLnet/minecraft/util/math/Spline;getDerivative(I)F
-
toString
-