public enum DefaultLang extends Enum<DefaultLang> implements Lang
DefaultLang| Enum Constant and Description |
|---|
NOT_A_NUMBER |
NOT_POSITIVE |
PLAYER_NEVER_PLAYED |
PLAYER_NOT_ONLINE |
UNKNOWN_PLAYER |
| Modifier and Type | Method and Description |
|---|---|
DataHolder<Yaml> |
getData()
Returns the relevant
DataHolder for this file, which provides
thread-safety for the FileDataType object initialization |
String |
getDefault()
The default value of this
Lang string |
Lang |
getFormat()
Returns the format specifier for this
Lang file. |
String |
getPath()
The
FileDataType path to store this value in |
static DefaultLang |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultLang[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcolor, createLang, defaultFormat, format, formatAndColor, get, getFormat, pluralFormat, proper, proper, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendRawMessage, sendRawMessage, sendRawMessage, sendTitle, tellRawgetConfig, getFileLocation, init, save, savepublic static final DefaultLang PLAYER_NOT_ONLINE
public static final DefaultLang PLAYER_NEVER_PLAYED
public static final DefaultLang UNKNOWN_PLAYER
public static final DefaultLang NOT_A_NUMBER
public static final DefaultLang NOT_POSITIVE
public static DefaultLang[] values()
for (DefaultLang c : DefaultLang.values()) System.out.println(c);
public static DefaultLang valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Lang getFormat()
LangLang file. This should be
a constant in the enum and represent a value that is used for all
messages universally.public String getPath()
PluginFileFileDataType path to store this value ingetPath in interface PluginFilepublic String getDefault()
LangLang stringgetDefault in interface LanggetDefault in interface PluginFilepublic DataHolder<Yaml> getData()
PluginFileDataHolder for this file, which provides
thread-safety for the FileDataType object initializationgetData in interface PluginFileDataHolder for this PluginFileCopyright © 2015. All rights reserved.