public interface LangFile extends InfoFile
FileDataType
. This value should be usable with a Formatter and
is typically implemented through an enumModifier and Type | Method and Description |
---|---|
static LangFile |
createLang(String format)
Returns a raw Lang object that can be used for dynamic creation of Lang
variables
|
default String |
format(Object... args)
Formats a
LangFile enum constant with the supplied arguments |
default String |
get()
Returns the string value used for this
LangFile . |
String |
getDefault()
The default value of this
LangFile string |
default String |
pluralFormat(int amount,
Object... args)
Will format a string with "PLURAL" or "PLURALA" tokens in them.
|
static String |
proper(String raw)
Formats a string into either a proper word or sentence (First letter
capitalized, if spaces are included a period is added)
|
static String |
proper(String raw,
char punctuation)
Formats a string into either a proper word or sentence (First letter
capitalized, if spaces are included the supplied punctuation is added)
|
String getDefault()
LangFile
stringgetDefault
in interface InfoFile
default String get()
LangFile
. Color codes
will not be automatically converteddefault String format(Object... args)
LangFile
enum constant with the supplied argumentsargs
- The arguments to supplydefault String pluralFormat(int amount, Object... args)
amount
- The amount representative of the data tokenargs
- The arguments to replace any other tokens with.static LangFile createLang(String format)
static String proper(String raw)
raw
- The raw string to formatproper(String, char)
static String proper(String raw, char punctuation)
raw
- The raw string to formatpunctuation
- Punctuation to append to anything containing spacesCopyright © 2017. All rights reserved.