Enum Class Themes

java.lang.Object
java.lang.Enum<Themes>
net.minheur.potoflux.theme.Themes
All Implemented Interfaces:
Serializable, Comparable<Themes>, Constable, IComboSetting

public enum Themes extends Enum<Themes> implements IComboSetting
List of all themes that can be chosen from in the settings
  • Enum Constant Details

    • DEFAULT

      public static final Themes DEFAULT
      The default theme, chosen by the devs
  • Method Details

    • values

      public static Themes[] 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 Themes 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
    • returnValue

      public String returnValue()
      Getter for the returnValue
      Specified by:
      returnValue in interface IComboSetting
      Returns:
      returnValue
    • toString

      public String toString()
      Makes sure to display the translatableName, after translation
      Overrides:
      toString in class Enum<Themes>
      Returns:
      Translations.get(java.lang.String) with translatableName