Package net.minecraft.util.math
Record Class Spline.Implementation<C>
java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.Implementation<C>
- Record Components:
locationFunction
-locations
-values
-derivatives
-
- All Implemented Interfaces:
ToFloatFunction<C>
,Spline<C>
public static record Spline.Implementation<C>(ToFloatFunction<C> locationFunction, float[] locations, List<Spline<C>> values, float[] derivatives)
extends Record
implements Spline<C>
- Mappings:
Namespace Name official air$e
intermediary net/minecraft/class_6492$class_6738
named net/minecraft/util/math/Spline$Implementation
official a
intermediary comp_229
named locationFunction
official b
intermediary comp_230
named locations
official c
intermediary comp_231
named values
official d
intermediary comp_232
named derivatives
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.math.Spline
Spline.Builder<C>, Spline.class_7073<C>, Spline.FixedFloatFunction<C>, Spline.Implementation<C>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float[]
The field for thederivatives
record component.private final ToFloatFunction<C>
The field for thelocationFunction
record component.private final float[]
The field for thelocations
record component.The field for thevalues
record component. -
Constructor Summary
ConstructorDescriptionImplementation
(ToFloatFunction<C> toFloatFunction, float[] float2, List<Spline<C>> list, float[] float3) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float[]
Returns the value of thederivatives
record component.final boolean
Indicates whether some other object is "equal to" this one.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()
method_41187
(Spline.class_7073<C> class_7073) float
min()
final String
toString()
Returns a string representation of this record class.values()
Returns the value of thevalues
record component.
-
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.
-
-
Constructor Details
-
Implementation
public Implementation(ToFloatFunction<C> toFloatFunction, float[] float2, List<Spline<C>> list, float[] float3)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official apply
Lajy;apply(Ljava/lang/Object;)F
intermediary apply
Lnet/minecraft/class_6501;apply(Ljava/lang/Object;)F
named apply
Lnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
-
getDebugString
- Specified by:
getDebugString
in interfaceSpline<C>
- Mappings:
Namespace Name Mixin selector official a
Lair;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
Lair$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;
-
min
public float min() -
max
public float max() -
method_41187
- Specified by:
method_41187
in interfaceSpline<C>
- Mappings:
Namespace Name Mixin selector official a
Lair;a(Lair$d;)Lair;
intermediary method_41187
Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;
named method_41187
Lnet/minecraft/util/math/Spline;method_41187(Lnet/minecraft/util/math/Spline$class_7073;)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. All components in this record class are compared withObjects::equals(Object,Object)
. -
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
-