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
named net/minecraft/util/function/ToFloatFunction
intermediary net/minecraft/class_6501
official bbh
  • Field Details

    • IDENTITY

      static final ToFloatFunction<Float> IDENTITY
      Mappings:
      Namespace Name Mixin selector
      named IDENTITY Lnet/minecraft/util/function/ToFloatFunction;IDENTITY:Lnet/minecraft/util/function/ToFloatFunction;
      intermediary field_37409 Lnet/minecraft/class_6501;field_37409:Lnet/minecraft/class_6501;
      official a Lbbh;a:Lbbh;
  • Method Details

    • apply

      float apply(C x)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
      intermediary method_41296 Lnet/minecraft/class_6501;method_41296(Ljava/lang/Object;)F
      official a Lbbh;a(Ljava/lang/Object;)F
    • min

      float min()
      Mappings:
      Namespace Name Mixin selector
      named min Lnet/minecraft/util/function/ToFloatFunction;min()F
      intermediary comp_532 Lnet/minecraft/class_6501;comp_532()F
      official b Lbbh;b()F
    • max

      float max()
      Mappings:
      Namespace Name Mixin selector
      named max Lnet/minecraft/util/function/ToFloatFunction;max()F
      intermediary comp_533 Lnet/minecraft/class_6501;comp_533()F
      official c Lbbh;c()F
    • fromFloat

      static ToFloatFunction<Float> fromFloat(Float2FloatFunction delegate)
      Mappings:
      Namespace Name Mixin selector
      named fromFloat Lnet/minecraft/util/function/ToFloatFunction;fromFloat(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lnet/minecraft/util/function/ToFloatFunction;
      intermediary method_41308 Lnet/minecraft/class_6501;method_41308(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lnet/minecraft/class_6501;
      official a Lbbh;a(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lbbh;
    • compose

      default <C2> ToFloatFunction<C2> compose(Function<C2,C> before)
      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
      named compose Lnet/minecraft/util/function/ToFloatFunction;compose(Ljava/util/function/Function;)Lnet/minecraft/util/function/ToFloatFunction;
      intermediary method_41309 Lnet/minecraft/class_6501;method_41309(Ljava/util/function/Function;)Lnet/minecraft/class_6501;
      official a Lbbh;a(Ljava/util/function/Function;)Lbbh;