net.minecraft.locale

public abstract class Language

tl
net.minecraft.locale.Language
net.minecraft.class_2477
net.minecraft.util.Language
net.minecraft.locale.LocaleLanguage

Field summary

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

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static Language
c()
loadDefault()
method_29429()
create()
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)
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)
public static Language
a()
getInstance()
method_10517()
getInstance()
public static void
a(tl arg0)
inject(Language arg0)
method_29427(class_2477 arg0)
setInstance(Language language)
public String
a(String arg0)
getOrDefault(String arg0)
method_48307(String arg0)
get(String key)
public abstract String
a(String arg0, String arg1)
getOrDefault(String arg0, String arg1)
method_4679(String arg0, String arg1)
get(String key, String fallback)
public abstract boolean
b(String arg0)
has(String arg0)
method_4678(String arg0)
hasTranslation(String key)
public abstract boolean
b()
isDefaultRightToLeft()
method_29428()
isRightToLeft()
public abstract FormattedCharSequence
a(wu arg0)
getVisualOrder(FormattedText arg0)
method_30934(class_5348 arg0)
reorder(StringVisitable text)
public List<FormattedCharSequence>
a(List<wu> arg0)
getVisualOrder(List<FormattedText> arg0)
method_30933(List<class_5348> arg0)
reorder(List<StringVisitable> texts)