Class KeyframeAnimation

java.lang.Object
dev.kosmx.playerAnim.core.data.KeyframeAnimation
All Implemented Interfaces:
IPlayable, Supplier<UUID>

@Immutable public final class KeyframeAnimation extends Object implements IPlayable
Used to store Emote data

Animation data
Notable key points in time:
begin: probably the first keyframe, before this, the default model can move to starting pose
end: last animation keyframe
stop: animating ends, after end the character can go back to its default pose

isInfinite:
if true, the animation will jump back to returnToTick after endTick inclusive

To play an animation use KeyframeAnimationPlayer

  • Field Details

    • EMPTY_STATE

      public static final KeyframeAnimation.StateCollection.State EMPTY_STATE
    • beginTick

      public final int beginTick
    • endTick

      public final int endTick
    • stopTick

      public final int stopTick
    • isInfinite

      public final boolean isInfinite
    • returnToTick

      public final int returnToTick
    • isEasingBefore

      public final boolean isEasingBefore
    • nsfw

      public final boolean nsfw
    • isUUIDGenerated

      public final boolean isUUIDGenerated
      Is the uuid generated when loading or was loaded from a file
    • extraData

      public final HashMap<String,Object> extraData
      Mutable extra members for extra information store
    • animationFormat

      public final AnimationFormat animationFormat
      Where is the animation from, not used in equals or hash.
  • Method Details