Package ch.njol.skript
Enum Class Metrics.Country
- All Implemented Interfaces:
Serializable
,Comparable<Metrics.Country>
,Constable
- Enclosing class:
- Metrics
A enum which is used for custom maps.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionbStats will use the country of the server. -
Method Summary
Modifier and TypeMethodDescriptionstatic Metrics.Country
Gets a country by it's iso tag.static Metrics.Country
Gets a country by a locale.Gets the iso tag of the country.Gets the name of the country.static Metrics.Country
Returns the enum constant of this class with the specified name.static Metrics.Country[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO_DETECT
bStats will use the country of the server. -
ANDORRA
-
UNITED_ARAB_EMIRATES
-
AFGHANISTAN
-
ANTIGUA_AND_BARBUDA
-
ANGUILLA
-
ALBANIA
-
ARMENIA
-
NETHERLANDS_ANTILLES
-
ANGOLA
-
ANTARCTICA
-
ARGENTINA
-
AMERICAN_SAMOA
-
AUSTRIA
-
AUSTRALIA
-
ARUBA
-
ALAND_ISLANDS
-
AZERBAIJAN
-
BOSNIA_AND_HERZEGOVINA
-
BARBADOS
-
BANGLADESH
-
BELGIUM
-
BURKINA_FASO
-
BULGARIA
-
BAHRAIN
-
BURUNDI
-
BENIN
-
SAINT_BARTHELEMY
-
BERMUDA
-
BRUNEI
-
BOLIVIA
-
BONAIRE_SINT_EUSTATIUS_AND_SABA
-
BRAZIL
-
BAHAMAS
-
BHUTAN
-
BOUVET_ISLAND
-
BOTSWANA
-
BELARUS
-
BELIZE
-
CANADA
-
COCOS_ISLANDS
-
THE_DEMOCRATIC_REPUBLIC_OF_CONGO
-
CENTRAL_AFRICAN_REPUBLIC
-
CONGO
-
SWITZERLAND
-
COTE_D_IVOIRE
-
COOK_ISLANDS
-
CHILE
-
CAMEROON
-
CHINA
-
COLOMBIA
-
COSTA_RICA
-
CUBA
-
CAPE_VERDE
-
CURACAO
-
CHRISTMAS_ISLAND
-
CYPRUS
-
CZECH_REPUBLIC
-
GERMANY
-
DJIBOUTI
-
DENMARK
-
DOMINICA
-
DOMINICAN_REPUBLIC
-
ALGERIA
-
ECUADOR
-
ESTONIA
-
EGYPT
-
WESTERN_SAHARA
-
ERITREA
-
SPAIN
-
ETHIOPIA
-
FINLAND
-
FIJI
-
FALKLAND_ISLANDS
-
MICRONESIA
-
FAROE_ISLANDS
-
FRANCE
-
GABON
-
UNITED_KINGDOM
-
GRENADA
-
GEORGIA
-
FRENCH_GUIANA
-
GUERNSEY
-
GHANA
-
GIBRALTAR
-
GREENLAND
-
GAMBIA
-
GUINEA
-
GUADELOUPE
-
EQUATORIAL_GUINEA
-
GREECE
-
SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS
-
GUATEMALA
-
GUAM
-
GUINEA_BISSAU
-
GUYANA
-
HONG_KONG
-
HEARD_ISLAND_AND_MCDONALD_ISLANDS
-
HONDURAS
-
CROATIA
-
HAITI
-
HUNGARY
-
INDONESIA
-
IRELAND
-
ISRAEL
-
ISLE_OF_MAN
-
INDIA
-
BRITISH_INDIAN_OCEAN_TERRITORY
-
IRAQ
-
IRAN
-
ICELAND
-
ITALY
-
JERSEY
-
JAMAICA
-
JORDAN
-
JAPAN
-
KENYA
-
KYRGYZSTAN
-
CAMBODIA
-
KIRIBATI
-
COMOROS
-
SAINT_KITTS_AND_NEVIS
-
NORTH_KOREA
-
SOUTH_KOREA
-
KUWAIT
-
CAYMAN_ISLANDS
-
KAZAKHSTAN
-
LAOS
-
LEBANON
-
SAINT_LUCIA
-
LIECHTENSTEIN
-
SRI_LANKA
-
LIBERIA
-
LESOTHO
-
LITHUANIA
-
LUXEMBOURG
-
LATVIA
-
LIBYA
-
MOROCCO
-
MONACO
-
MOLDOVA
-
MONTENEGRO
-
SAINT_MARTIN
-
MADAGASCAR
-
MARSHALL_ISLANDS
-
MACEDONIA
-
MALI
-
MYANMAR
-
MONGOLIA
-
MACAO
-
NORTHERN_MARIANA_ISLANDS
-
MARTINIQUE
-
MAURITANIA
-
MONTSERRAT
-
MALTA
-
MAURITIUS
-
MALDIVES
-
MALAWI
-
MEXICO
-
MALAYSIA
-
MOZAMBIQUE
-
NAMIBIA
-
NEW_CALEDONIA
-
NIGER
-
NORFOLK_ISLAND
-
NIGERIA
-
NICARAGUA
-
NETHERLANDS
-
NORWAY
-
NEPAL
-
NAURU
-
NIUE
-
NEW_ZEALAND
-
OMAN
-
PANAMA
-
PERU
-
FRENCH_POLYNESIA
-
PAPUA_NEW_GUINEA
-
PHILIPPINES
-
PAKISTAN
-
POLAND
-
SAINT_PIERRE_AND_MIQUELON
-
PITCAIRN
-
PUERTO_RICO
-
PALESTINE
-
PORTUGAL
-
PALAU
-
PARAGUAY
-
QATAR
-
REUNION
-
ROMANIA
-
SERBIA
-
RUSSIA
-
RWANDA
-
SAUDI_ARABIA
-
SOLOMON_ISLANDS
-
SEYCHELLES
-
SUDAN
-
SWEDEN
-
SINGAPORE
-
SAINT_HELENA
-
SLOVENIA
-
SVALBARD_AND_JAN_MAYEN
-
SLOVAKIA
-
SIERRA_LEONE
-
SAN_MARINO
-
SENEGAL
-
SOMALIA
-
SURINAME
-
SOUTH_SUDAN
-
SAO_TOME_AND_PRINCIPE
-
EL_SALVADOR
-
SINT_MAARTEN_DUTCH_PART
-
SYRIA
-
SWAZILAND
-
TURKS_AND_CAICOS_ISLANDS
-
CHAD
-
FRENCH_SOUTHERN_TERRITORIES
-
TOGO
-
THAILAND
-
TAJIKISTAN
-
TOKELAU
-
TIMOR_LESTE
-
TURKMENISTAN
-
TUNISIA
-
TONGA
-
TURKEY
-
TRINIDAD_AND_TOBAGO
-
TUVALU
-
TAIWAN
-
TANZANIA
-
UKRAINE
-
UGANDA
-
UNITED_STATES_MINOR_OUTLYING_ISLANDS
-
UNITED_STATES
-
URUGUAY
-
UZBEKISTAN
-
VATICAN
-
SAINT_VINCENT_AND_THE_GRENADINES
-
VENEZUELA
-
BRITISH_VIRGIN_ISLANDS
-
U_S__VIRGIN_ISLANDS
-
VIETNAM
-
VANUATU
-
WALLIS_AND_FUTUNA
-
SAMOA
-
YEMEN
-
MAYOTTE
-
SOUTH_AFRICA
-
ZAMBIA
-
ZIMBABWE
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCountryName
Gets the name of the country.- Returns:
- The name of the country.
-
getCountryIsoTag
Gets the iso tag of the country.- Returns:
- The iso tag of the country.
-
byIsoTag
Gets a country by it's iso tag.- Parameters:
isoTag
- The iso tag of the county.- Returns:
- The country with the given iso tag or
null
if unknown.
-
byLocale
Gets a country by a locale.- Parameters:
locale
- The locale.- Returns:
- The country from the giben locale or
null
if unknown country or if the locale does not contain a country.
-