public class LanguageManager extends java.lang.Object implements IResourceManagerReloadListener
IFutureReloadListener.IStage
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 |
Constructor and Description |
---|
LanguageManager(java.lang.String p_i48112_1_) |
Modifier and Type | Method and Description |
---|---|
Language |
getCurrentLanguage() |
Language |
getLanguage(java.lang.String p_191960_1_) |
java.util.SortedSet<Language> |
getLanguages() |
IResourceType |
getResourceType() |
boolean |
isCurrentLanguageBidirectional() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
parseLanguageMetadata(java.util.List<IResourcePack> resourcesPacks) |
void |
setCurrentLanguage(Language currentLanguageIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
func_225594_i_
private static final org.apache.logging.log4j.Logger LOGGER
protected static final Locale CURRENT_LOCALE
private java.lang.String currentLanguage
private final java.util.Map<java.lang.String,Language> languageMap
public void parseLanguageMetadata(java.util.List<IResourcePack> resourcesPacks)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
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_)
public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener