Class LanguageManager
java.lang.Object
fr.fuzeblocks.homeplugin.core.language.LanguageManager
The type Language manager.
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageManager(Language type, HomePlugin plugin) Instantiates a new Language manager. -
Method Summary
Modifier 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
-
LanguageManager
Instantiates a new Language manager.- Parameters:
type- the typeplugin- the plugin
-
-
Method Details
-
translateAlternateColorCodes
-
getString
-
getString
-
getStringWithColor
-
getStringWithColor
-
regenerate
public 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.
-
getLanguage
-