Package net.minecraft.util.math
Record Class Spline.FixedFloatFunction<C,I extends ToFloatFunction<C>>
java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.FixedFloatFunction<C,I>
- Record Components:
value-
- All Implemented Interfaces:
ToFloatFunction<C>,Spline<C,I>
- Enclosing interface:
Spline<C,I extends ToFloatFunction<C>>
public static record Spline.FixedFloatFunction<C,I extends ToFloatFunction<C>> (float value)
extends Record
implements Spline<C,I>
- Mappings:
Namespace Name named net/minecraft/util/math/Spline$FixedFloatFunctionintermediary net/minecraft/class_6492$class_6494official axp$cnamed valueintermediary comp_228official b
-
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
FieldsFields inherited from interface net.minecraft.util.function.ToFloatFunction
IDENTITY -
Constructor Summary
ConstructorsConstructorDescriptionFixedFloatFunction(float value) Creates an instance of aFixedFloatFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatapply(Spline.Visitor<I> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatmax()floatmin()final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.function.ToFloatFunction
compose
-
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 named applyLnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)Fintermediary method_41296Lnet/minecraft/class_6501;method_41296(Ljava/lang/Object;)Fofficial aLazq;a(Ljava/lang/Object;)F
-
getDebugString
- Specified by:
getDebugStringin interfaceSpline<C,I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector named getDebugStringLnet/minecraft/util/math/Spline;getDebugString()Ljava/lang/String;intermediary method_39225Lnet/minecraft/class_6492;method_39225()Ljava/lang/String;official aLaxp;a()Ljava/lang/String;
-
min
public float min()- Specified by:
minin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector named minLnet/minecraft/util/function/ToFloatFunction;min()Fintermediary comp_532Lnet/minecraft/class_6501;comp_532()Fofficial bLazq;b()F
-
max
public float max()- Specified by:
maxin interfaceToFloatFunction<C>- Mappings:
Namespace Name Mixin selector named maxLnet/minecraft/util/function/ToFloatFunction;max()Fintermediary comp_533Lnet/minecraft/class_6501;comp_533()Fofficial cLazq;c()F
-
apply
- Specified by:
applyin interfaceSpline<C,I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/util/math/Spline;apply(Lnet/minecraft/util/math/Spline$Visitor;)Lnet/minecraft/util/math/Spline;intermediary method_41187Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;official aLaxp;a(Laxp$d;)Laxp;
-
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
-