public enum AnimationType extends java.lang.Enum<AnimationType>
Enum Constant and Description |
---|
BOUNCECLOSED |
BOUNCEOPEN |
BREAK |
FLY |
IDLE |
IDLE_SWIM |
SHAKELEFT |
SHAKERIGHT |
SPECIAL |
SPECIAL2 |
SPECIAL3 |
SWIM |
WALK |
Modifier and Type | Field and Description |
---|---|
boolean |
isLooped |
Modifier and Type | Method and Description |
---|---|
static AnimationType |
getTypeFor(java.lang.String animation) |
java.lang.String |
toString() |
static AnimationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnimationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnimationType IDLE
public static final AnimationType WALK
public static final AnimationType FLY
public static final AnimationType SWIM
public static final AnimationType IDLE_SWIM
public static final AnimationType SPECIAL
public static final AnimationType SPECIAL2
public static final AnimationType SPECIAL3
public static final AnimationType BOUNCEOPEN
public static final AnimationType BOUNCECLOSED
public static final AnimationType BREAK
public static final AnimationType SHAKELEFT
public static final AnimationType SHAKERIGHT
public static AnimationType[] values()
for (AnimationType c : AnimationType.values()) System.out.println(c);
public static AnimationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<AnimationType>
public static AnimationType getTypeFor(java.lang.String animation)