Class Language
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.services.localization.Language
This Class represents a
Language
that Slimefun can recognize and use.- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
This returns the identifier of thisLanguage
.getItem()
double
This method returns the progress of translation for thisLanguage
.boolean
void
setFile
(LanguageFile file, FileConfiguration config) toString()
-
Constructor Details
-
Method Details
-
getId
This returns the identifier of thisLanguage
.- Returns:
- The identifier of this
Language
-
getTranslationProgress
public double getTranslationProgress()This method returns the progress of translation for thisLanguage
. The progress is determined by the amount of translated strings divided by the amount of strings in the englishLanguage
file and multiplied by 100.0- Returns:
- A percentage
(0.0 - 100.0)
for the progress of translation of thisLanguage
-
setFile
-
getItem
-
getName
-
isDefault
public boolean isDefault() -
toString
-