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, valueOf
color, createLang, defaultFormat, format, formatAndColor, get, getFormat, pluralFormat, proper, proper, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendRawMessage, sendRawMessage, sendRawMessage, sendTitle, tellRaw
getConfig, getFileLocation, init, save, save
public 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()
Lang
Lang
file. This should be
a constant in the enum and represent a value that is used for all
messages universally.public String getPath()
PluginFile
FileDataType
path to store this value ingetPath
in interface PluginFile
public String getDefault()
Lang
Lang
stringgetDefault
in interface Lang
getDefault
in interface PluginFile
public DataHolder<Yaml> getData()
PluginFile
DataHolder
for this file, which provides
thread-safety for the FileDataType
object initializationgetData
in interface PluginFile
DataHolder
for this PluginFile
Copyright © 2015. All rights reserved.