public class LanguageManager extends java.lang.Object implements IResourceManagerReloadListener
Modifier and Type | Field and Description |
---|---|
protected static Locale |
CURRENT_LOCALE |
private java.lang.String |
currentLanguage |
private java.util.Map<java.lang.String,Language> |
languageMap |
private static org.apache.logging.log4j.Logger |
LOGGER |
private MetadataSerializer |
metadataSerializer |
Constructor and Description |
---|
LanguageManager(MetadataSerializer theMetadataSerializerIn,
java.lang.String currentLanguageIn) |
Modifier and Type | Method and Description |
---|---|
Language |
getCurrentLanguage() |
Language |
getLanguage(java.lang.String p_191960_1_) |
java.util.SortedSet<Language> |
getLanguages() |
boolean |
isCurrentLanguageBidirectional() |
boolean |
isCurrentLocaleUnicode() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
parseLanguageMetadata(java.util.List<IResourcePack> resourcesPacks) |
void |
setCurrentLanguage(Language currentLanguageIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private final MetadataSerializer metadataSerializer
private java.lang.String currentLanguage
protected static final Locale CURRENT_LOCALE
private final java.util.Map<java.lang.String,Language> languageMap
public LanguageManager(MetadataSerializer theMetadataSerializerIn, java.lang.String currentLanguageIn)
public void parseLanguageMetadata(java.util.List<IResourcePack> resourcesPacks)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public boolean isCurrentLocaleUnicode()
public boolean isCurrentLanguageBidirectional()
public void setCurrentLanguage(Language currentLanguageIn)
public Language getCurrentLanguage()
public java.util.SortedSet<Language> getLanguages()
public Language getLanguage(java.lang.String p_191960_1_)