Class ClipSource

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.anim.ClipSource

public final class ClipSource extends Object
An animation as a file describes it, with its joints by name; Clip.bind turns it into one armature's clip. The same file can animate any armature whose joints share the names.
  • Field Details

    • name

      public final String name
    • length

      public float length
    • loop

      public LoopMode loop
    • animTimeUpdate

      @Nullable public @Nullable MolangExpr animTimeUpdate
    • blendWeight

      @Nullable public @Nullable MolangExpr blendWeight
    • startDelay

      public float startDelay
    • loopDelay

      public float loopDelay
    • joints

      public final Map<String, ClipSource.Channels> joints
    • events

      public final List<ClipSource.Event> events
  • Constructor Details

    • ClipSource

      public ClipSource(String name)
  • Method Details

    • joint

      public ClipSource.Channels joint(String name)
    • resolvedLength

      public float resolvedLength()
      The clip's length: as the file says, else its last keyframe or event.