Record Class EasingType.CubicBezier.Parameters

java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.EasingType.CubicBezier.Parameters
Record Components:
a -
b -
c -
Enclosing class:
EasingType.CubicBezier

private static record EasingType.CubicBezier.Parameters(float a, float b, float c) extends Record
Describes the parameters of a cubic Bézier curve in one axis. The constant coefficient is always 0 because the curve starts at (0, 0).
Mappings:
Namespace Name
named net/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parameters
intermediary net/minecraft/class_12301$class_12302$class_12303
official bfi$a$a
named a
intermediary comp_5195
official a
named b
intermediary comp_5196
official b
named c
intermediary comp_5197
official c
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the a record component.
    private final float
    The field for the b record component.
    private final float
    The field for the c record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parameters(float a, float b, float c)
    Creates an instance of a Parameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    a()
    Returns the value of the a record component.
    float
    apply(float t)
     
    float
    b()
    Returns the value of the b record component.
    float
    c()
    Returns the value of the c record component.
    float
    derivative(float t)
     
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • a

      private final float a
      The field for the a record component.
    • b

      private final float b
      The field for the b record component.
    • c

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

    • Parameters

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

    • apply

      public float apply(float t)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parameters;apply(F)F
      intermediary method_76365 Lnet/minecraft/class_12301$class_12302$class_12303;method_76365(F)F
      official a Lbfi$a$a;a(F)F
    • derivative

      public float derivative(float t)
      Mappings:
      Namespace Name Mixin selector
      named derivative Lnet/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parameters;derivative(F)F
      intermediary method_76366 Lnet/minecraft/class_12301$class_12302$class_12303;method_76366(F)F
      official b Lbfi$a$a;b(F)F
    • 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.
    • a

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

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

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