Package com.hazebyte.crate.api.crate
Enum AnimationType
- java.lang.Object
-
- java.lang.Enum<AnimationType>
-
- com.hazebyte.crate.api.crate.AnimationType
-
- All Implemented Interfaces:
Serializable
,Comparable<AnimationType>
public enum AnimationType extends Enum<AnimationType>
Contain states which determine the type of animation that activates.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CSGO
Animation that specifically transitions from the right-most inventory slot to the left-most slot.CSGO_REVERSE
HEART
NONE
No animationRECTANGLE
Animation that transitions in a circular motion around a rectangle path.RECTANGLE_REVERSE
ROULETTE
Animation that specifically shifts around one center inventory slot.ROULETTE_V2
SPIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnimationType
valueOf(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.
-
-
-
Enum Constant Detail
-
NONE
public static final AnimationType NONE
No animation
-
ROULETTE
public static final AnimationType ROULETTE
Animation that specifically shifts around one center inventory slot.
-
ROULETTE_V2
public static final AnimationType ROULETTE_V2
-
CSGO
public static final AnimationType CSGO
Animation that specifically transitions from the right-most inventory slot to the left-most slot.
-
CSGO_REVERSE
public static final AnimationType CSGO_REVERSE
-
RECTANGLE
public static final AnimationType RECTANGLE
Animation that transitions in a circular motion around a rectangle path.
-
RECTANGLE_REVERSE
public static final AnimationType RECTANGLE_REVERSE
-
HEART
public static final AnimationType HEART
-
SPIN
public static final AnimationType SPIN
-
-
Method Detail
-
values
public static AnimationType[] 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 (AnimationType c : AnimationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnimationType 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
-
-