Package net.minecraft.client.resources
Class LanguageManager
- java.lang.Object
-
- net.minecraft.client.resources.LanguageManager
-
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
public class LanguageManager extends java.lang.Object implements IResourceManagerReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
currentCode
private Language
currentLanguage
private static Language
DEFAULT_LANGUAGE
private java.util.Map<java.lang.String,Language>
languages
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description LanguageManager(java.lang.String p_i48112_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.Map<java.lang.String,Language>
extractLanguages(java.util.stream.Stream<IResourcePack> p_239506_0_)
Language
getLanguage(java.lang.String p_191960_1_)
java.util.SortedSet<Language>
getLanguages()
IResourceType
getResourceType()
Language
getSelected()
void
onResourceManagerReload(IResourceManager p_195410_1_)
void
setSelected(Language p_135045_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
DEFAULT_LANGUAGE
private static final Language DEFAULT_LANGUAGE
-
languages
private java.util.Map<java.lang.String,Language> languages
-
currentCode
private java.lang.String currentCode
-
currentLanguage
private Language currentLanguage
-
-
Method Detail
-
extractLanguages
private static java.util.Map<java.lang.String,Language> extractLanguages(java.util.stream.Stream<IResourcePack> p_239506_0_)
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
setSelected
public void setSelected(Language p_135045_1_)
-
getSelected
public Language getSelected()
-
getLanguages
public java.util.SortedSet<Language> getLanguages()
-
getLanguage
public Language getLanguage(java.lang.String p_191960_1_)
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
-