KeyframePoint

Represents a vector keyframe point at a specific time in an animation.


var point = new KeyframePoint(KeyframeDatapointVector.ZERO, KeyframeAxis.NONE,
    0.5F, KeyframePoint.EMPTY.bezier(), VectorInterpolator.LINEAR);
var vector = point.vector();

Since

3.7.0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Configuration for Bézier interpolation with separate handle offsets for each axis.

Companion properties

Link copied to clipboard
An empty, default vector point at time 0 with linear interpolation.

Functions

Link copied to clipboard
@NotNull
open fun bezier(): @NotNull KeyframePoint.BezierConfig
Gets the Bézier handle offsets for each axis.
Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(@NotNull o: @NotNull Timed): Int
Link copied to clipboard
@NotNull
open fun interpolator(): @NotNull VectorInterpolator
Gets the interpolation method for this point.
Link copied to clipboard
open fun isConstant(): Boolean
Checks whether all components of the vector compiled at this point's time are constant.
Link copied to clipboard
open fun isContinuous(): Boolean
Checks if the interpolation method for this point is continuous.
Link copied to clipboard
open fun tickTime(): Float
Returns this time in seconds, rounded to the nearest 50 ms Minecraft tick.
Link copied to clipboard
open fun time(): Float
Gets the time of this point in the animation timeline.
Link copied to clipboard
@NotNull
open fun vector(): @NotNull KeyframeVector
Compiles the vector at this point's time.
@NotNull
open fun vector(time: Float): @NotNull KeyframeVector
Compiles and caches the vector for the supplied animation time.