Class LanguageManager
java.lang.Object
fr.fuzeblocks.homeplugin.language.LanguageManager
The type Language manager.
- 
Constructor SummaryConstructorsConstructorDescriptionLanguageManager(Language type, HomePlugin plugin) Instantiates a new Language manager.
- 
Method SummaryModifier and TypeMethodDescriptionGets language.@NotNull StringGets string.@NotNull StringGets string.@NotNull StringgetStringWithColor(String key) Gets string with color.@NotNull StringgetStringWithColor(String key, String defaultValue) Gets string with color.booleanRegenerates the language file from the internal resource and reloads it.static @NotNull StringtranslateAlternateColorCodes(@Nullable String s) Translate alternate color codes string.
- 
Constructor Details- 
LanguageManagerInstantiates a new Language manager.- Parameters:
- type- the type
- plugin- the plugin
 
 
- 
- 
Method Details- 
getStringGets string.- Parameters:
- key- the key
- Returns:
- the string
 
- 
getStringGets string.- Parameters:
- key- the key
- defaultValue- the default value
- Returns:
- the string
 
- 
getStringWithColorGets string with color.- Parameters:
- key- the key
- Returns:
- the string with color
 
- 
getStringWithColorGets string with color.- Parameters:
- key- the key
- defaultValue- the default value
- Returns:
- the string with color
 
- 
translateAlternateColorCodesTranslate alternate color codes string.- Parameters:
- s- the s
- Returns:
- the string
 
- 
regeneratepublic boolean regenerate()Regenerates the language file from the internal resource and reloads it. Warning: this will overwrite the current file.- Returns:
- true if the operation succeeded, false otherwise.
 
- 
getLanguageGets language.- Returns:
- the language
 
 
-