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$FixedFloatFunction
intermediary net/minecraft/class_6492$class_6494
official azg$c
named value
intermediary comp_228
official b
  • Field Details

    • value

      private final float value
      The field for the value record component.
  • Constructor Details

    • FixedFloatFunction

      public FixedFloatFunction(float value)
      Creates an instance of a FixedFloatFunction record class.
      Parameters:
      value - the value for the value record component
  • Method Details

    • apply

      public float apply(C x)
      Specified by:
      apply in interface ToFloatFunction<C>
      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
    • getDebugString

      public String getDebugString()
      Specified by:
      getDebugString in interface Spline<C,I extends ToFloatFunction<C>>
      Mappings:
      Namespace Name Mixin selector
      named getDebugString Lnet/minecraft/util/math/Spline;getDebugString()Ljava/lang/String;
      intermediary method_39225 Lnet/minecraft/class_6492;method_39225()Ljava/lang/String;
      official a Lazg;a()Ljava/lang/String;
    • min

      public float min()
      Specified by:
      min in interface ToFloatFunction<C>
      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

      public float max()
      Specified by:
      max in interface ToFloatFunction<C>
      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
    • apply

      public Spline<C,I> apply(Spline.Visitor<I> visitor)
      Specified by:
      apply in interface Spline<C,I extends ToFloatFunction<C>>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/util/math/Spline;apply(Lnet/minecraft/util/math/Spline$Visitor;)Lnet/minecraft/util/math/Spline;
      intermediary method_41187 Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;
      official a Lazg;a(Lazg$d;)Lazg;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • value

      public float value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component