ModelAnimator

@ApiStatus.Internal
class ModelAnimator : Record

Represents a raw animator from a model file, containing a set of keyframes for a specific bone group.

Since

1.15.2

Parameters

name

the name of the bone group this animator affects

keyframes

the list of keyframes

_rotationGlobal

whether the rotation is applied globally (true) or locally (false/null)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isAvailable(): Boolean
Checks if this animator is valid and has keyframes.
Link copied to clipboard
open fun isNotEmpty(): Boolean
Checks if this animator contains any keyframes.
Link copied to clipboard
@NotNull
open fun keyframes(): @NotNull List<ModelKeyframe>
Returns the list of keyframes for this animator.
Link copied to clipboard
@NotNull
open fun name(): @NotNull BoneName
Returns the name of the bone group this animator affects.
Link copied to clipboard
Checks if the rotation should be applied globally.
Link copied to clipboard
@NotNull
open fun stream(): @NotNull Stream<ModelKeyframe>
Returns a sorted stream of valid keyframes.
Link copied to clipboard
abstract fun toString(): String