Package net.minecraft.util.function
Interface ToFloatFunction<C>
- All Known Subinterfaces:
Spline<C,
I>
- All Known Implementing Classes:
DensityFunctionTypes.Spline.DensityFunctionWrapper
,Spline.FixedFloatFunction
,Spline.Implementation
public interface ToFloatFunction<C>
- Mappings:
Namespace Name official aqg
intermediary net/minecraft/class_6501
named net/minecraft/util/function/ToFloatFunction
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
default <C2> ToFloatFunction<C2>
Returns a composed function that first applies the before function to its input, and then applies this function.static ToFloatFunction<Float>
fromFloat
(Float2FloatFunction delegate) float
max()
float
min()
-
Field Details
-
IDENTITY
- Mappings:
Namespace Name Mixin selector official a
Laqg;a:Laqg;
intermediary field_37409
Lnet/minecraft/class_6501;field_37409:Lnet/minecraft/class_6501;
named IDENTITY
Lnet/minecraft/util/function/ToFloatFunction;IDENTITY:Lnet/minecraft/util/function/ToFloatFunction;
-
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector official a
Laqg;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
-
min
float min()- Mappings:
Namespace Name Mixin selector official b
Laqg;b()F
intermediary comp_532
Lnet/minecraft/class_6501;comp_532()F
named min
Lnet/minecraft/util/function/ToFloatFunction;min()F
-
max
float max()- Mappings:
Namespace Name Mixin selector official c
Laqg;c()F
intermediary comp_533
Lnet/minecraft/class_6501;comp_533()F
named max
Lnet/minecraft/util/function/ToFloatFunction;max()F
-
fromFloat
- Mappings:
Namespace Name Mixin selector official a
Laqg;a(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Laqg;
intermediary method_41308
Lnet/minecraft/class_6501;method_41308(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lnet/minecraft/class_6501;
named fromFloat
Lnet/minecraft/util/function/ToFloatFunction;fromFloat(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lnet/minecraft/util/function/ToFloatFunction;
-
compose
Returns a composed function that first applies the before function to its input, and then applies this function. to the result.- Parameters:
before
- the function to apply before this function is applied- Returns:
- a composed function that first applies the before function to its input, and then applies this function
- Mappings:
Namespace Name Mixin selector official a
Laqg;a(Ljava/util/function/Function;)Laqg;
intermediary method_41309
Lnet/minecraft/class_6501;method_41309(Ljava/util/function/Function;)Lnet/minecraft/class_6501;
named compose
Lnet/minecraft/util/function/ToFloatFunction;compose(Ljava/util/function/Function;)Lnet/minecraft/util/function/ToFloatFunction;
-