Enum Class CosmeticCategory
- All Implemented Interfaces:
Serializable,Comparable<CosmeticCategory>,Constable
A kind of cosmetic players own and choose from.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe design of the cage around the player's Cornucopia podium.The battle class the player starts every match with, unless they pick another in the lobby.The glider the player flies into the map with.The celebration played when the player wins. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Optional<CosmeticCategory> The category an ID names, ignoring case.@NotNull StringgetId()The ID used in commands, such asvictory-effects.@NotNull CosmeticTypeKeykey()The key this category has among every cosmetic type, such aszentrix:gliders.static CosmeticCategoryReturns the enum constant of this class with the specified name.static CosmeticCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VICTORY_EFFECTS
The celebration played when the player wins. -
GLIDERS
The glider the player flies into the map with. -
CLASSES
The battle class the player starts every match with, unless they pick another in the lobby. IDs are the class IDs ofcontent/classes.yml, such aswarrior.A class is unlocked by owning it or by holding its permission; a class without a permission is open to everyone. Unlike other categories, a class can be selected without being owned, since its permission may unlock it: the selection is only a preference, and a class that is locked when a match starts is replaced by the server's default class.
- Since:
- 1.9.0
-
CAGE_DESIGNS
The design of the cage around the player's Cornucopia podium. Not part of the Free edition.- Since:
- 1.11.0
-
-
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
-
getId
The ID used in commands, such asvictory-effects. -
key
The key this category has among every cosmetic type, such aszentrix:gliders.- Since:
- 1.11.0
-
fromId
The category an ID names, ignoring case.
-