Package nl.minetopiasdb.api.enums
Enum Class ColorType
- All Implemented Interfaces:
Serializable
,Comparable<ColorType>
,Constable
Different types of color. Used in
ColorManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the database name for this colorGet the default color (directly from the config)nl.minetopiasdb.plugin.data.configs.messages.Message
nl.minetopiasdb.plugin.data.configs.messages.Message
nl.minetopiasdb.plugin.data.configs.messages.Message
Permission node for the corresponding color commandstatic ColorType
Returns the enum constant of this class with the specified name.static ColorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEVEL
-
PREFIX
-
CHAT
-
-
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
-
getDatabase
Get the database name for this color- Returns:
- database name for this color
-
getPermission
Permission node for the corresponding color command- Returns:
- permission node
-
getDefaultColor
Get the default color (directly from the config)- Returns:
- default color
-
getInventoryTitle
public nl.minetopiasdb.plugin.data.configs.messages.Message getInventoryTitle() -
getItemName
public nl.minetopiasdb.plugin.data.configs.messages.Message getItemName() -
getItemLore
public nl.minetopiasdb.plugin.data.configs.messages.Message getItemLore()
-