Uses of Class
io.github.thebusybiscuit.slimefun4.core.services.localization.Language
Packages that use Language
Package
Description
This package contains all extensions of
Event
that Slimefun provides
and allows you to listen to.This package provides a few "Services" that Slimefun uses.
This package contains everything related to translations and localization.
-
Uses of Language in io.github.thebusybiscuit.slimefun4.api.events
Methods in io.github.thebusybiscuit.slimefun4.api.events that return LanguageModifier and TypeMethodDescriptionPlayerLanguageChangeEvent.getNewLanguage()
This returns theLanguage
that thisPlayer
wants to switch to.PlayerLanguageChangeEvent.getPreviousLanguage()
This returns theLanguage
that thisPlayer
was using before.Constructors in io.github.thebusybiscuit.slimefun4.api.events with parameters of type LanguageModifierConstructorDescriptionPlayerLanguageChangeEvent
(org.bukkit.entity.Player p, Language from, Language to) -
Uses of Language in io.github.thebusybiscuit.slimefun4.core.services
Methods in io.github.thebusybiscuit.slimefun4.core.services that return LanguageModifier and TypeMethodDescriptionLocalizationService.getDefaultLanguage()
LocalizationService.getLanguage
(String id) LocalizationService.getLanguage
(org.bukkit.entity.Player p) Methods in io.github.thebusybiscuit.slimefun4.core.services that return types with arguments of type LanguageMethods in io.github.thebusybiscuit.slimefun4.core.services with parameters of type LanguageModifier and TypeMethodDescriptiondouble
LocalizationService.calculateProgress
(Language lang) This returns the progress of translation for any givenLanguage
. -
Uses of Language in io.github.thebusybiscuit.slimefun4.core.services.localization
Methods in io.github.thebusybiscuit.slimefun4.core.services.localization that return LanguageModifier and TypeMethodDescriptionabstract Language
SlimefunLocalization.getDefaultLanguage()
This method returns the defaultLanguage
of thisServer
abstract Language
SlimefunLocalization.getLanguage
(String id) This method attempts to return theLanguage
with the given language code.abstract Language
SlimefunLocalization.getLanguage
(org.bukkit.entity.Player p) This method returns the currently selectedLanguage
of aPlayer
.Methods in io.github.thebusybiscuit.slimefun4.core.services.localization that return types with arguments of type LanguageModifier and TypeMethodDescriptionabstract Collection
<Language> SlimefunLocalization.getLanguages()
This method returns a fullCollection
of everyLanguage
that was found.Methods in io.github.thebusybiscuit.slimefun4.core.services.localization with parameters of type LanguageModifier and TypeMethodDescriptionLanguageFile.getFilePath
(Language language) SlimefunLocalization.getTotalKeys
(Language lang)