Record Class Spline.Implementation<C>

java.lang.Object
java.lang.Record
net.minecraft.util.math.Spline.Implementation<C>
Record Components:
locationFunction -
locations -
values -
derivatives -
All Implemented Interfaces:
ToFloatFunction<C>, Spline<C>
Enclosing interface:
Spline<C>

public static record Spline.Implementation<C>(ToFloatFunction<C> locationFunction, float[] locations, List<Spline<C>> values, float[] derivatives) extends Record implements Spline<C>
Mappings:
Namespace Name
official air$e
intermediary net/minecraft/class_6492$class_6738
named net/minecraft/util/math/Spline$Implementation
official a
intermediary comp_229
named locationFunction
official b
intermediary comp_230
named locations
official c
intermediary comp_231
named values
official d
intermediary comp_232
named derivatives
  • Field Details

    • locationFunction

      private final ToFloatFunction<C> locationFunction
      The field for the locationFunction record component.
    • locations

      private final float[] locations
      The field for the locations record component.
    • values

      private final List<Spline<C>> values
      The field for the values record component.
    • derivatives

      private final float[] derivatives
      The field for the derivatives record component.
  • Constructor Details

  • Method Details

    • apply

      public float apply(C x)
      Specified by:
      apply in interface ToFloatFunction<C>
      Mappings:
      Namespace Name Mixin selector
      official apply Lajy;apply(Ljava/lang/Object;)F
      intermediary apply Lnet/minecraft/class_6501;apply(Ljava/lang/Object;)F
      named apply Lnet/minecraft/util/function/ToFloatFunction;apply(Ljava/lang/Object;)F
    • getDebugString

      public String getDebugString()
      Specified by:
      getDebugString in interface Spline<C>
      Mappings:
      Namespace Name Mixin selector
      official a Lair;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;
    • format

      private String format(float[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lair$e;a([F)Ljava/lang/String;
      intermediary method_39238 Lnet/minecraft/class_6492$class_6738;method_39238([F)Ljava/lang/String;
      named format Lnet/minecraft/util/math/Spline$Implementation;format([F)Ljava/lang/String;
    • min

      public float min()
      Specified by:
      min in interface Spline<C>
      Mappings:
      Namespace Name Mixin selector
      official b Lair;b()F
      intermediary method_40435 Lnet/minecraft/class_6492;method_40435()F
      named min Lnet/minecraft/util/math/Spline;min()F
    • max

      public float max()
      Specified by:
      max in interface Spline<C>
      Mappings:
      Namespace Name Mixin selector
      official c Lair;c()F
      intermediary method_40436 Lnet/minecraft/class_6492;method_40436()F
      named max Lnet/minecraft/util/math/Spline;max()F
    • method_41187

      public Spline<C> method_41187(Spline.class_7073<C> class_7073)
      Specified by:
      method_41187 in interface Spline<C>
      Mappings:
      Namespace Name Mixin selector
      official a Lair;a(Lair$d;)Lair;
      intermediary method_41187 Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;
      named method_41187 Lnet/minecraft/util/math/Spline;method_41187(Lnet/minecraft/util/math/Spline$class_7073;)Lnet/minecraft/util/math/Spline;
    • 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 Objects::equals(Object,Object).
      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.
    • locationFunction

      public ToFloatFunction<C> locationFunction()
      Returns the value of the locationFunction record component.
      Returns:
      the value of the locationFunction record component
    • locations

      public float[] locations()
      Returns the value of the locations record component.
      Returns:
      the value of the locations record component
    • values

      public List<Spline<C>> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • derivatives

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