Enum Class TranslateType

java.lang.Object
java.lang.Enum<TranslateType>
me.libraryaddict.disguise.utilities.translations.TranslateType
All Implemented Interfaces:
Serializable, Comparable<TranslateType>, Constable

public enum TranslateType extends Enum<TranslateType>
  • Enum Constant Details

    • DISGUISES

      public static final TranslateType DISGUISES
    • MESSAGES

      public static final TranslateType MESSAGES
    • DISGUISE_OPTIONS

      public static final TranslateType DISGUISE_OPTIONS
    • DISGUISE_OPTIONS_PARAMETERS

      public static final TranslateType DISGUISE_OPTIONS_PARAMETERS
  • Method Details

    • values

      public static TranslateType[] 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 TranslateType 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
    • refreshTranslations

      public static void refreshTranslations()
    • save

      public void save(String msg)
    • save

      public void save(String message, String comment)
    • save

      public void save(LibsMsg orig, String rawMessage, String comment)
    • reverseGet

      public String reverseGet(String translated)
    • get

      public String get(LibsMsg msg)
    • get

      public String get(String msg)