net.minecraft.locale

public abstract class Language

si
net.minecraft.locale.Language
net.minecraft.class_2477
net.minecraft.util.Language
net.minecraft.src.C_4907_
net.minecraft.locale.LocaleLanguage

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_11490
LOGGER
f_128101_
private static final com.google.gson.Gson
c
GSON
field_25307
GSON
f_128102_
private static final Pattern
d
UNSUPPORTED_FORMAT_PATTERN
field_11489
TOKEN_PATTERN
f_128103_
public static final String
a
DEFAULT
field_33187
DEFAULT_LANGUAGE
f_177832_
private static volatile Language
e
instance
field_11486
instance
f_128104_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static Language
c()
loadDefault()
method_29429()
create()
m_128118_()
private static void
a(BiConsumer<String, String> arg0, String arg1)
parseTranslations(BiConsumer<String, String> arg0, String arg1)
method_51465(BiConsumer<String, String> arg0, String arg1)
load(BiConsumer<String, String> entryConsumer, String path)
m_280428_(BiConsumer<String, String> p_282031_, String p_283638_)
public static void
a(InputStream arg0, BiConsumer<String, String> arg1)
loadFromJson(InputStream arg0, BiConsumer<String, String> arg1)
method_29425(InputStream arg0, BiConsumer<String, String> arg1)
load(InputStream inputStream, BiConsumer<String, String> entryConsumer)
m_128108_(InputStream p_128109_, BiConsumer<String, String> p_128110_)
public static Language
a()
getInstance()
method_10517()
getInstance()
m_128107_()
public static void
a(si arg0)
inject(Language arg0)
method_29427(class_2477 arg0)
setInstance(Language language)
m_128114_(C_4907_ p_128115_)
public String
a(String arg0)
getOrDefault(String arg0)
method_48307(String arg0)
get(String key)
m_6834_(String arg0)
public abstract String
a(String arg0, String arg1)
getOrDefault(String arg0, String arg1)
method_4679(String arg0, String arg1)
get(String key, String fallback)
m_118919_(String p_265599_, String arg1)
public abstract boolean
b(String arg0)
has(String arg0)
method_4678(String arg0)
hasTranslation(String key)
m_6722_(String arg0)
public abstract boolean
b()
isDefaultRightToLeft()
method_29428()
isRightToLeft()
m_6627_()
public abstract FormattedCharSequence
a(vk arg0)
getVisualOrder(FormattedText arg0)
method_30934(class_5348 arg0)
reorder(StringVisitable text)
m_5536_(C_5000_ arg0)
public List<FormattedCharSequence>
a(List<vk> arg0)
getVisualOrder(List<FormattedText> arg0)
method_30933(List<class_5348> arg0)
reorder(List<StringVisitable> texts)
m_128112_(List<C_5000_> arg0)