Enum Class GroupColorType

java.lang.Object
java.lang.Enum<GroupColorType>
de.murmelmeister.murmelapi.group.color.GroupColorType
All Implemented Interfaces:
Serializable, Comparable<GroupColorType>, Constable

public enum GroupColorType extends Enum<GroupColorType>
The GroupColorType enum represents the types of group color customization categories. Each type corresponds to a specific category of group color settings, particularly for Chat, Tab, or Team configurations.

This enum is used as a parameter in methods of the GroupColorProvider interface and its implementation GroupColorProviderImpl to specify which category (e.g., Chat, Tab, or Team) is being accessed or modified.

Each constant in the enum holds an associated name that describes the category and is used for accessing the corresponding database column or functionality.

  • Enum Constant Details

  • Field Details

  • Constructor Details

    • GroupColorType

      private GroupColorType(int id, String name)
  • Method Details

    • values

      public static GroupColorType[] 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

      public static GroupColorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      public String getName()
    • fromId

      public static GroupColorType fromId(int id)
    • fromName

      public static GroupColorType fromName(String name)
    • setup

      public static void setup(de.murmelmeister.library.database.Database database)
    • createDefaultTypes

      public static void createDefaultTypes(de.murmelmeister.library.database.Database database)