Record Class Spline.Implementation<C,I extends ToFloatFunction<C>>

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

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

    • locationFunction

      private final I extends 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,I extends ToFloatFunction<C>>> values
      The field for the values record component.
    • derivatives

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

      private final float min
      The field for the min record component.
    • max

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

    • Implementation

      public Implementation(I i, float[] float2, List<Spline<C,I>> list, float[] float3, float float4, float float5)
  • Method Details

    • build

      static <C, I extends ToFloatFunction<C>> Spline.Implementation<C,I> build(I locationFunction, float[] locations, List<Spline<C,I>> values, float[] derivatives)
      Mappings:
      Namespace Name Mixin selector
      official a Laob$e;a(Lapv;[FLjava/util/List;[F)Laob$e;
      intermediary method_41299 Lnet/minecraft/class_6492$class_6738;method_41299(Lnet/minecraft/class_6501;[FLjava/util/List;[F)Lnet/minecraft/class_6492$class_6738;
      named build Lnet/minecraft/util/math/Spline$Implementation;build(Lnet/minecraft/util/function/ToFloatFunction;[FLjava/util/List;[F)Lnet/minecraft/util/math/Spline$Implementation;
    • method_41297

      private static float method_41297(float float2, float[] float3, float float4, float[] float5, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Laob$e;a(F[FF[FI)F
      intermediary method_41297 Lnet/minecraft/class_6492$class_6738;method_41297(F[FF[FI)F
      named method_41297 Lnet/minecraft/util/math/Spline$Implementation;method_41297(F[FF[FI)F
    • method_41301

      private static <C, I extends ToFloatFunction<C>> void method_41301(float[] float2, List<Spline<C,I>> list, float[] float3)
      Mappings:
      Namespace Name Mixin selector
      official a Laob$e;a([FLjava/util/List;[F)V
      intermediary method_41301 Lnet/minecraft/class_6492$class_6738;method_41301([FLjava/util/List;[F)V
      named method_41301 Lnet/minecraft/util/math/Spline$Implementation;method_41301([FLjava/util/List;[F)V
    • apply

      public float apply(C x)
      Specified by:
      apply in interface ToFloatFunction<C>
      Mappings:
      Namespace Name Mixin selector
      official a Lapv;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
    • method_41300

      private static int method_41300(float[] float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      official a Laob$e;a([FF)I
      intermediary method_41300 Lnet/minecraft/class_6492$class_6738;method_41300([FF)I
      named method_41300 Lnet/minecraft/util/math/Spline$Implementation;method_41300([FF)I
    • getDebugString

      public String getDebugString()
      Specified by:
      getDebugString in interface Spline<C,I extends ToFloatFunction<C>>
      Mappings:
      Namespace Name Mixin selector
      official a Laob;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 Laob$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;
    • 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
      official a Laob;a(Laob$d;)Laob;
      intermediary method_41187 Lnet/minecraft/class_6492;method_41187(Lnet/minecraft/class_6492$class_7073;)Lnet/minecraft/class_6492;
      named apply Lnet/minecraft/util/math/Spline;apply(Lnet/minecraft/util/math/Spline$Visitor;)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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • locationFunction

      public I 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,I>> 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
    • min

      public float min()
      Specified by:
      min in interface ToFloatFunction<C>
      Mappings:
      Namespace Name Mixin selector
      official b Lapv;b()F
      intermediary comp_532 Lnet/minecraft/class_6501;comp_532()F
      named min Lnet/minecraft/util/function/ToFloatFunction;min()F
    • max

      public float max()
      Specified by:
      max in interface ToFloatFunction<C>
      Mappings:
      Namespace Name Mixin selector
      official c Lapv;c()F
      intermediary comp_533 Lnet/minecraft/class_6501;comp_533()F
      named max Lnet/minecraft/util/function/ToFloatFunction;max()F