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 official aob$c
intermediary net/minecraft/class_6492$class_6494
named net/minecraft/util/math/Spline$FixedFloatFunction
official b
intermediary comp_228
named value
-
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
Fields inherited from interface net.minecraft.util.function.ToFloatFunction
IDENTITY
-
Constructor Summary
ConstructorDescriptionFixedFloatFunction
(float value) Creates an instance of aFixedFloatFunction
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(Spline.Visitor<I> visitor) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
max()
float
min()
final String
toString()
Returns a string representation of this record class.float
value()
Returns the value of thevalue
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
-
value
private final float valueThe field for thevalue
record component.
-
-
Constructor Details
-
FixedFloatFunction
public FixedFloatFunction(float value) Creates an instance of aFixedFloatFunction
record class.- Parameters:
value
- the value for thevalue
record component
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official a
Lapv;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
-
getDebugString
- Specified by:
getDebugString
in interfaceSpline<C,
I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official a
Laob;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;
-
min
public float min()- Specified by:
min
in interfaceToFloatFunction<C>
- Mappings:
Namespace Name Mixin selector official b
Lapv;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
Lapv;c()F
intermediary comp_533
Lnet/minecraft/class_6501;comp_533()F
named max
Lnet/minecraft/util/function/ToFloatFunction;max()F
-
apply
- Specified by:
apply
in interfaceSpline<C,
I extends ToFloatFunction<C>> - Mappings:
Namespace Name Mixin selector official a
Laob;a(Laob$d;)Laob;
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. All components in this record class are compared with '=='. -
value
public float value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-