Enum Class LangCode

java.lang.Object
java.lang.Enum<LangCode>
cn.nukkit.lang.LangCode
All Implemented Interfaces:
Serializable, Comparable<LangCode>, Constable

@PowerNukkitXOnly @Since("1.19.60-r1") public enum LangCode extends Enum<LangCode>
  • Enum Constant Details

    • en_US

      public static final LangCode en_US
    • en_GB

      public static final LangCode en_GB
    • de_DE

      public static final LangCode de_DE
    • es_ES

      public static final LangCode es_ES
    • es_MX

      public static final LangCode es_MX
    • fr_FR

      public static final LangCode fr_FR
    • fr_CA

      public static final LangCode fr_CA
    • it_IT

      public static final LangCode it_IT
    • ja_JP

      public static final LangCode ja_JP
    • ko_KR

      public static final LangCode ko_KR
    • pt_BR

      public static final LangCode pt_BR
    • pt_PT

      public static final LangCode pt_PT
    • ru_RU

      public static final LangCode ru_RU
    • zh_CN

      public static final LangCode zh_CN
    • zh_TW

      public static final LangCode zh_TW
    • nl_NL

      public static final LangCode nl_NL
    • bg_BG

      public static final LangCode bg_BG
    • cs_CZ

      public static final LangCode cs_CZ
    • da_DK

      public static final LangCode da_DK
    • el_GR

      public static final LangCode el_GR
    • fi_FI

      public static final LangCode fi_FI
    • hu_HU

      public static final LangCode hu_HU
    • id_ID

      public static final LangCode id_ID
    • nb_NO

      public static final LangCode nb_NO
    • pl_PL

      public static final LangCode pl_PL
    • sk_SK

      public static final LangCode sk_SK
    • sv_SE

      public static final LangCode sv_SE
    • tr_TR

      public static final LangCode tr_TR
    • uk_UA

      public static final LangCode uk_UA
  • Method Details

    • values

      public static LangCode[] 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 LangCode 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
    • toString

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