Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
EliteMobs
/
com.magmaguy.elitemobs.config.translations
/
TranslationCsvParser
/
TranslationData
Translation
Data
public
class
TranslationData
Represents parsed translation data from a CSV file.
Members
Constructors
Translation
Csv
Parser.
Translation
Data
Link copied to clipboard
public
void
TranslationCsvParser.TranslationData
(
List
<
String
>
languages
)
Properties
languages
Link copied to clipboard
public
final
List
<
String
>
languages
Functions
add
Language
Link copied to clipboard
public
void
addLanguage
(
String
language
)
Adds a language if it doesn't exist.
get
Link copied to clipboard
public
Object
get
(
String
key
,
String
language
)
Gets a translation value for a key and language.
get
Keys
Link copied to clipboard
public
Set
<
String
>
getKeys
(
)
Gets all translation keys.
get
Languages
Link copied to clipboard
public
List
<
String
>
getLanguages
(
)
get
List
Link copied to clipboard
public
List
<
String
>
getList
(
String
key
,
String
language
)
Gets a list translation, returns null if it's a string or not found.
get
String
Link copied to clipboard
public
String
getString
(
String
key
,
String
language
)
Gets a string translation, returns null if it's a list or not found.
has
Key
Link copied to clipboard
public
boolean
hasKey
(
String
key
)
Checks if a key exists.
set
Link copied to clipboard
public
void
set
(
String
key
,
String
language
,
Object
value
)
Sets a translation value (String or List).