Package co.aikar.commands
Enum MinecraftMessageKeys
- java.lang.Object
-
- java.lang.Enum<MinecraftMessageKeys>
-
- co.aikar.commands.MinecraftMessageKeys
-
- All Implemented Interfaces:
co.aikar.locales.MessageKeyProvider,Serializable,Comparable<MinecraftMessageKeys>
public enum MinecraftMessageKeys extends Enum<MinecraftMessageKeys> implements co.aikar.locales.MessageKeyProvider
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_WORLDIS_NOT_A_VALID_NAMEMULTIPLE_PLAYERS_MATCHNO_PLAYER_FOUNDNO_PLAYER_FOUND_SERVERPLAYER_IS_VANISHED_CONFIRMUSERNAME_TOO_SHORTYOU_MUST_BE_HOLDING_ITEM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description co.aikar.locales.MessageKeygetMessageKey()static MinecraftMessageKeysvalueOf(String name)Returns the enum constant of this type with the specified name.static MinecraftMessageKeys[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_WORLD
public static final MinecraftMessageKeys INVALID_WORLD
-
YOU_MUST_BE_HOLDING_ITEM
public static final MinecraftMessageKeys YOU_MUST_BE_HOLDING_ITEM
-
PLAYER_IS_VANISHED_CONFIRM
public static final MinecraftMessageKeys PLAYER_IS_VANISHED_CONFIRM
-
USERNAME_TOO_SHORT
public static final MinecraftMessageKeys USERNAME_TOO_SHORT
-
IS_NOT_A_VALID_NAME
public static final MinecraftMessageKeys IS_NOT_A_VALID_NAME
-
MULTIPLE_PLAYERS_MATCH
public static final MinecraftMessageKeys MULTIPLE_PLAYERS_MATCH
-
NO_PLAYER_FOUND_SERVER
public static final MinecraftMessageKeys NO_PLAYER_FOUND_SERVER
-
NO_PLAYER_FOUND
public static final MinecraftMessageKeys NO_PLAYER_FOUND
-
-
Method Detail
-
values
public static MinecraftMessageKeys[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MinecraftMessageKeys c : MinecraftMessageKeys.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MinecraftMessageKeys valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public co.aikar.locales.MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceco.aikar.locales.MessageKeyProvider
-
-