Enum Class Category

java.lang.Object
java.lang.Enum<Category>
com.gamersafer.minecraft.auth.common.api.Category
All Implemented Interfaces:
Serializable, Comparable<Category>, Constable

public enum Category extends Enum<Category>
Represents the category of a punishment.
  • Enum Constant Details

    • BOTTING

      public static final Category BOTTING
    • BULLYING

      public static final Category BULLYING
    • DOXING

      public static final Category DOXING
    • EXCESSIVE_BLAMING

      public static final Category EXCESSIVE_BLAMING
    • EXPLOITING_MECHANICS

      public static final Category EXPLOITING_MECHANICS
    • EXTREMISM

      public static final Category EXTREMISM
    • FARMING

      public static final Category FARMING
    • GRIEFING_PLAYERS

      public static final Category GRIEFING_PLAYERS
    • GRIEFING_SERVER_OR_STAFF

      public static final Category GRIEFING_SERVER_OR_STAFF
    • GROOMING

      public static final Category GROOMING
    • HACKING

      public static final Category HACKING
    • HOMOPHOBIA

      public static final Category HOMOPHOBIA
    • HOSTILITY

      public static final Category HOSTILITY
    • IDENTITY_THEFT

      public static final Category IDENTITY_THEFT
    • INAPPROPRIATE_CONTENT

      public static final Category INAPPROPRIATE_CONTENT
    • IRL_TRADES

      public static final Category IRL_TRADES
    • MOBBING

      public static final Category MOBBING
    • OTHER

      public static final Category OTHER
    • PAYMENT_DISPUTE

      public static final Category PAYMENT_DISPUTE
    • PUNISHMENT_EVASION

      public static final Category PUNISHMENT_EVASION
    • RACISM

      public static final Category RACISM
    • RELENTLESS_MSG

      public static final Category RELENTLESS_MSG
    • SABOTAGING

      public static final Category SABOTAGING
    • SCAMMING

      public static final Category SCAMMING
    • SELF__BAN_REQUEST

      public static final Category SELF__BAN_REQUEST
    • SELF__HARM_OTHERS

      public static final Category SELF__HARM_OTHERS
    • SELF__HARM_SELF

      public static final Category SELF__HARM_SELF
    • SEXISM

      public static final Category SEXISM
    • SEXUAL_MISCONDUCT

      public static final Category SEXUAL_MISCONDUCT
    • SMURFING

      public static final Category SMURFING
    • SPAMMING

      public static final Category SPAMMING
    • STAFF_IMPERSONATION

      public static final Category STAFF_IMPERSONATION
    • STAFF_ABUSING_POWER

      public static final Category STAFF_ABUSING_POWER
    • STALKING

      public static final Category STALKING
    • SWATTING

      public static final Category SWATTING
    • SWEARING

      public static final Category SWEARING
    • TROLLING

      public static final Category TROLLING
    • VIOLENT_THREAT

      public static final Category VIOLENT_THREAT
    • XENOPHOBIA

      public static final Category XENOPHOBIA
  • Method Details

    • values

      public static Category[] 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 Category 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
    • loadLocalizedValues

      public static void loadLocalizedValues(LanguageConfiguration lang, ILogger logger)
    • getFromId

      public static Optional<Category> getFromId(String id)
      Gets a Category from its getId().
      Parameters:
      id - the category id
      Returns:
      the category or an empty optional if the given id is invalid
      See Also:
    • getFromIdOrThrow

      public static Category getFromIdOrThrow(String id)
      Gets a Category from its getId().
      Parameters:
      id - the category id
      Returns:
      the category or it throws a IllegalArgumentException
      See Also:
    • getFromName

      public static Optional<Category> getFromName(String name)
      Gets a Category from its name. This name might be different from the localized name getLocalizedName(LanguageConfiguration). It's lowercase and doesn't contain spaces.
      Parameters:
      name - the category name
      Returns:
      the category or an empty optional if the given name is invalid
    • getNames

      public static Set<String> getNames()
      Gets all the category names. These names might be different from the localized names (LanguageConfiguration.getCategoryToLocalizedName()). They are lowercase and don't contain spaces.
      Returns:
      the list of names
    • getId

      public String getId()
      Gets the category id used internally.
      Returns:
      the unique category id
    • getLocalizedName

      public String getLocalizedName(LanguageConfiguration languageConfiguration)
      Gets the user-friendly name specified in the configuration file.
      Parameters:
      languageConfiguration - the language config instance
      Returns:
      the localized category name
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Category>