@Environment(value=CLIENT) public class LanguageManager extends Object implements SynchronousResourceReloadListener
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private String |
currentLanguageCode |
private static LanguageDefinition |
field_25291 |
private LanguageDefinition |
language |
private Map<String,LanguageDefinition> |
languageDefs |
private static Logger |
LOGGER |
Constructor and Description |
---|
LanguageManager(String string) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ResourceManager manager) |
SortedSet<LanguageDefinition> |
getAllLanguages() |
LanguageDefinition |
getLanguage() |
LanguageDefinition |
getLanguage(String code) |
private static Map<String,LanguageDefinition> |
method_29393(Stream<ResourcePack> stream) |
void |
setLanguage(LanguageDefinition languageDefinition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
getName
private static final Logger LOGGER
private static final LanguageDefinition field_25291
private Map<String,LanguageDefinition> languageDefs
private String currentLanguageCode
private LanguageDefinition language
public LanguageManager(String string)
private static Map<String,LanguageDefinition> method_29393(Stream<ResourcePack> stream)
public void apply(ResourceManager manager)
apply
in interface SynchronousResourceReloadListener
public void setLanguage(LanguageDefinition languageDefinition)
public LanguageDefinition getLanguage()
public SortedSet<LanguageDefinition> getAllLanguages()
public LanguageDefinition getLanguage(String code)