Enum Class AnimationIterator.Type
- All Implemented Interfaces:
Serializable, Comparable<AnimationIterator.Type>, Constable
- Enclosing interface:
AnimationIterator<T extends Timed>
Defines the behavior of the animation iterator.
- Since:
- 1.15.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlays the animation once and holds the last frame.Loops the animation continuously.Plays the animation once and then stops. -
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends Timed>
@NotNull AnimationIterator<T> create(@NotNull TimedStorage<T> keyframes) Creates a new iterator for the given keyframes based on this type.static AnimationIterator.TypeReturns the enum constant of this class with the specified name.static AnimationIterator.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAY_ONCE
Plays the animation once and then stops.- Since:
- 1.15.2
-
LOOP
Loops the animation continuously.- Since:
- 1.15.2
-
HOLD_ON_LAST
Plays the animation once and holds the last frame.- Since:
- 1.15.2
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
create
@NotNull public abstract <T extends Timed> @NotNull AnimationIterator<T> create(@NotNull @NotNull TimedStorage<T> keyframes) Creates a new iterator for the given keyframes based on this type.- Type Parameters:
T- the type of keyframe- Parameters:
keyframes- the keyframes to iterate over- Returns:
- a new animation iterator
- Since:
- 1.15.2
-