Package net.minecraft.util.math
Record Class Spline.FixedFloatFunction<C>
java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.FixedFloatFunction<C>
- Record Components:
value-
- All Implemented Interfaces:
ToFloatFunction<C>,Spline<C>
- Mappings:
Namespace Name official aiq$cintermediary net/minecraft/class_6492$class_6494named net/minecraft/util/math/Spline$FixedFloatFunctionofficial aintermediary comp_228named value
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.math.Spline
Spline.Builder<C>, Spline.FixedFloatFunction<C>, Spline.Implementation<C> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixedFloatFunction(float value) Creates an instance of aFixedFloatFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatfloatfinal StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final float valueThe field for thevaluerecord component.
-
-
Constructor Details
-
FixedFloatFunction
public FixedFloatFunction(float value) Creates an instance of aFixedFloatFunctionrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
apply
- Specified by:
applyin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector official applyLajx;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 aLaiq;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_40435
public float method_40435()- Specified by:
method_40435in interfaceSpline<C>- Mappings:
Namespace Name Mixin selector official bLaiq;b()Fintermediary method_40435Lnet/minecraft/class_6492;method_40435()Fnamed method_40435Lnet/minecraft/util/math/Spline;method_40435()F
-
method_40436
public float method_40436()- Specified by:
method_40436in interfaceSpline<C>- Mappings:
Namespace Name Mixin selector official cLaiq;c()Fintermediary method_40436Lnet/minecraft/class_6492;method_40436()Fnamed method_40436Lnet/minecraft/util/math/Spline;method_40436()F
-
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 with '=='. -
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-