Package com.yottabyte.crates.api.crate
Enum AnimationStyle
- java.lang.Object
-
- java.lang.Enum<AnimationStyle>
-
- com.yottabyte.crates.api.crate.AnimationStyle
-
- All Implemented Interfaces:
BaseEnum
,Serializable
,Comparable<AnimationStyle>
public enum AnimationStyle extends Enum<AnimationStyle> implements BaseEnum
Represents the style of anAnimationType
for aCrate
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseEnum
getDefaultValue()
Returns the default value for this enum.static AnimationStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnimationStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOWING
public static final AnimationStyle GLOWING
-
NONE
public static final AnimationStyle NONE
-
-
Method Detail
-
values
public static AnimationStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnimationStyle c : AnimationStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnimationStyle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultValue
public BaseEnum getDefaultValue()
Returns the default value for this enum.- Specified by:
getDefaultValue
in interfaceBaseEnum
- Returns:
- the default value for the
AnimationStyle
enum.
-
-