Package net.minecraft.util.math
Record Class Spline.class_6738<C>
java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.class_6738<C>
- Record Components:
coordinate-locations-values-derivatives-
- All Implemented Interfaces:
ToFloatFunction<C>,Spline<C>
public static record Spline.class_6738<C>(ToFloatFunction<C> coordinate, float[] locations, List<Spline<C>> values, float[] derivatives)
extends Record
implements Spline<C>
- Mappings:
Namespace Name official aie$dintermediary net/minecraft/class_6492$class_6738named net/minecraft/util/math/Spline$class_6738official aintermediary comp_229named coordinateofficial bintermediary comp_230named locationsofficial cintermediary comp_231named valuesofficial dintermediary comp_232named derivatives
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.math.Spline
Spline.Builder<C>, Spline.class_6738<C>, Spline.FixedFloatFunction<C> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ToFloatFunction<C>The field for thecoordinaterecord component.private final float[]The field for thederivativesrecord component.private final float[]The field for thelocationsrecord component.The field for thevaluesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_6738(ToFloatFunction<C> toFloatFunction, float[] float2, List<Spline<C>> list, float[] float3) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thecoordinaterecord component.float[]Returns the value of thederivativesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.float[]Returns the value of thelocationsrecord component.private Stringmethod_39238(float[] float2) final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
coordinate
The field for thecoordinaterecord 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.
-
-
Constructor Details
-
class_6738
public class_6738(ToFloatFunction<C> toFloatFunction, float[] float2, List<Spline<C>> list, float[] float3)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official applyLajl;apply(Ljava/lang/Object;)Fintermediary applyLnet/minecraft/class_6501;apply(Ljava/lang/Object;)Fnamed applyLnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
-
getDebugString
- Specified by:
getDebugStringin interfaceSpline<C>- Mappings:
Namespace Name Mixin selector official aLaie;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;
-
method_39238
- Mappings:
Namespace Name Mixin selector official aLaie$d;a([F)Ljava/lang/String;intermediary method_39238Lnet/minecraft/class_6492$class_6738;method_39238([F)Ljava/lang/String;named method_39238Lnet/minecraft/util/math/Spline$class_6738;method_39238([F)Ljava/lang/String;
-
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). -
coordinate
Returns the value of thecoordinaterecord component.- Returns:
- the value of the
coordinaterecord 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
-