Package com.hazebyte.crate.api.effect
Enum Category
- java.lang.Object
-
- java.lang.Enum<Category>
-
- com.hazebyte.crate.api.effect.Category
-
- All Implemented Interfaces:
Serializable
,Comparable<Category>
public enum Category extends Enum<Category>
States which represent when an effect is activated.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMATION
State that represents when a player is inside an GUI animation.END
State that represents when a player closes a GUI animation.INSPECT
State that represents when a player left clicks a crate.OPEN
State for when a player opens a crate.PERSISTENT
State that represents a boundless course of action.PUSHBACK
State that represents when a player is pushed back.REWARD
State that represents when a player receives a reward.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Category
valueOf(String name)
Returns the enum constant of this type with the specified name.static Category[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final Category OPEN
State for when a player opens a crate.
-
PERSISTENT
public static final Category PERSISTENT
State that represents a boundless course of action.
-
ANIMATION
public static final Category ANIMATION
State that represents when a player is inside an GUI animation.
-
PUSHBACK
public static final Category PUSHBACK
State that represents when a player is pushed back.
-
INSPECT
public static final Category INSPECT
State that represents when a player left clicks a crate.
-
END
public static final Category END
State that represents when a player closes a GUI animation.
-
REWARD
public static final Category REWARD
State that represents when a player receives a reward.
-
-
Method Detail
-
values
public static Category[] 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 (Category c : Category.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Category 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
-
-