Class LanguageManager
java.lang.Object
net.minecraft.client.resources.language.LanguageManager
- All Implemented Interfaces:
PreparableReloadListener
,ResourceManagerReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private LanguageInfo
private static LanguageInfo
static String
private Map<String,LanguageInfo>
private static org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Map<String,LanguageInfo>
extractLanguages(Stream<PackResources> p_118982_)
getLanguage(String p_118977_)
void
onResourceManagerReload(ResourceManager p_118973_)
void
setSelected(LanguageInfo p_118975_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
getResourceType, reload
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DEFAULT_LANGUAGE_CODE
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
-
languages
-
currentCode
-
currentLanguage
-
-
Constructor Details
-
LanguageManager
-
-
Method Details
-
extractLanguages
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
setSelected
-
getSelected
-
getLanguages
-
getLanguage
-