Enum Class LoopMode

java.lang.Object
java.lang.Enum<LoopMode>
net.ixdarklord.coolcatcanvas.api.armature.LoopMode
All Implemented Interfaces:
Serializable, Comparable<LoopMode>, Constable

public enum LoopMode extends Enum<LoopMode>
What a clip does when it reaches its end.
  • Enum Constant Details

    • ONCE

      public static final LoopMode ONCE
      Stops; its layer then goes back to what it was doing (its driver, the next motion, or rest).
    • LOOP

      public static final LoopMode LOOP
      Starts over, forever or a number of times.
    • HOLD

      public static final LoopMode HOLD
      Stops on its last frame and stays there until something else plays.
    • PING_PONG

      public static final LoopMode PING_PONG
      Plays to the end, then backwards to the start, and again.
  • Method Details

    • values

      public static LoopMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoopMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byName

      @Nullable public static @Nullable LoopMode byName(String name)
      By name ("loop", "hold_on_last_frame" and "hold" are the same); null if unknown.