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$e
intermediary net/minecraft/class_6492$class_6738
named net/minecraft/util/math/Spline$Implementation
official b
intermediary comp_229
named locationFunction
official c
intermediary comp_230
named locations
official d
intermediary comp_231
named values
official e
intermediary comp_232
named derivatives
official f
intermediary comp_532
named min
official g
intermediary comp_533
named 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
Modifier and TypeFieldDescriptionprivate final float[]
The field for thederivatives
record component.private final I
The field for thelocationFunction
record component.private final float[]
The field for thelocations
record component.private final float
The field for themax
record component.private final float
The field for themin
record component.The field for thevalues
record component.Fields inherited from interface net.minecraft.util.function.ToFloatFunction
IDENTITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(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 thederivatives
record component.final boolean
Indicates whether some other object is "equal to" this one.private static int
findRangeForLocation
(float[] locations, float x) private String
format
(float[] values) final int
hashCode()
Returns a hash code value for this object.Returns the value of thelocationFunction
record component.float[]
Returns the value of thelocations
record component.float
max()
float
min()
private static float
sampleOutsideRange
(float point, float[] locations, float value, float[] derivatives, int i) final String
toString()
Returns a string representation of this record class.values()
Returns the value of thevalues
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.function.ToFloatFunction
compose
-
Field Details
-
locationFunction
The field for thelocationFunction
record component. -
locations
private final float[] locationsThe field for thelocations
record component. -
values
The field for thevalues
record component. -
derivatives
private final float[] derivativesThe field for thederivatives
record component. -
min
private final float minThe field for themin
record component. -
max
private final float maxThe field for themax
record 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 a
Laod$e;a(Lapx;[FLjava/util/List;[F)Laod$e;
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;
named build
Lnet/minecraft/util/math/Spline$Implementation;build(Lnet/minecraft/util/function/ToFloatFunction;[FLjava/util/List;[F)Lnet/minecraft/util/math/Spline$Implementation;
-
sampleOutsideRange
private static float sampleOutsideRange(float point, float[] locations, float value, float[] derivatives, int i) - Mappings:
Namespace Name Mixin selector official a
Laod$e;a(F[FF[FI)F
intermediary method_41297
Lnet/minecraft/class_6492$class_6738;method_41297(F[FF[FI)F
named sampleOutsideRange
Lnet/minecraft/util/math/Spline$Implementation;sampleOutsideRange(F[FF[FI)F
-
assertParametersValid
private static <C,I extends ToFloatFunction<C>> void assertParametersValid(float[] locations, List<Spline<C, I>> values, float[] derivatives) - Mappings:
Namespace Name Mixin selector official a
Laod$e;a([FLjava/util/List;[F)V
intermediary method_41301
Lnet/minecraft/class_6492$class_6738;method_41301([FLjava/util/List;[F)V
named assertParametersValid
Lnet/minecraft/util/math/Spline$Implementation;assertParametersValid([FLjava/util/List;[F)V
-
apply
- Specified by:
apply
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official a
Lapx;a(Ljava/lang/Object;)F
intermediary method_41296
Lnet/minecraft/class_6501;method_41296(Ljava/lang/Object;)F
named apply
Lnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
-
findRangeForLocation
private static int findRangeForLocation(float[] locations, float x) - Mappings:
Namespace Name Mixin selector official a
Laod$e;a([FF)I
intermediary method_41300
Lnet/minecraft/class_6492$class_6738;method_41300([FF)I
named findRangeForLocation
Lnet/minecraft/util/math/Spline$Implementation;findRangeForLocation([FF)I
-
getDebugString
- Specified by:
getDebugString
in interfaceSpline<C,
I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official a
Laod;a()Ljava/lang/String;
intermediary method_39225
Lnet/minecraft/class_6492;method_39225()Ljava/lang/String;
named getDebugString
Lnet/minecraft/util/math/Spline;getDebugString()Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector official a
Laod$e;a([F)Ljava/lang/String;
intermediary method_39238
Lnet/minecraft/class_6492$class_6738;method_39238([F)Ljava/lang/String;
named format
Lnet/minecraft/util/math/Spline$Implementation;format([F)Ljava/lang/String;
-
apply
- Specified by:
apply
in interfaceSpline<C,
I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official a
Laod;a(Laod$d;)Laod;
intermediary method_41187
Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;
named apply
Lnet/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 thelocationFunction
record component.- Returns:
- the value of the
locationFunction
record component
-
locations
public float[] locations()Returns the value of thelocations
record component.- Returns:
- the value of the
locations
record component
-
values
Returns the value of thevalues
record component.- Returns:
- the value of the
values
record component
-
derivatives
public float[] derivatives()Returns the value of thederivatives
record component.- Returns:
- the value of the
derivatives
record component
-
min
public float min()- Specified by:
min
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official b
Lapx;b()F
intermediary comp_532
Lnet/minecraft/class_6501;comp_532()F
named min
Lnet/minecraft/util/function/ToFloatFunction;min()F
-
max
public float max()- Specified by:
max
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official c
Lapx;c()F
intermediary comp_533
Lnet/minecraft/class_6501;comp_533()F
named max
Lnet/minecraft/util/function/ToFloatFunction;max()F
-