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

    • IDENTITY

      static final ToFloatFunction<Float> IDENTITY
      Mappings:
      Namespace Name Mixin selector
      official a Lapx;a:Lapx;
      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

      float apply(C x)
      Mappings:
      Namespace Name Mixin selector
      official a Lapx;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 Lapx;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 Lapx;c()F
      intermediary comp_533 Lnet/minecraft/class_6501;comp_533()F
      named max Lnet/minecraft/util/function/ToFloatFunction;max()F
    • fromFloat

      static ToFloatFunction<Float> fromFloat(Float2FloatFunction delegate)
      Mappings:
      Namespace Name Mixin selector
      official a Lapx;a(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)Lapx;
      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

      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
      official a Lapx;a(Ljava/util/function/Function;)Lapx;
      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;