Package net.minecraft.util
Class Language
java.lang.Object
net.minecraft.util.Language
- Direct Known Subclasses:
TranslationStorage
public abstract class Language extends Object
- Mappings:
Namespace Name official ml
intermediary net/minecraft/class_2477
named net/minecraft/util/Language
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Language()
-
Method Summary
Modifier and Type Method Description private static Language
create()
abstract String
get(String key)
static Language
getInstance()
abstract boolean
hasTranslation(String key)
abstract boolean
isRightToLeft()
static void
load(InputStream inputStream, BiConsumer<String,String> entryConsumer)
List<OrderedText>
reorder(List<StringVisitable> texts)
abstract OrderedText
reorder(StringVisitable text)
static void
setInstance(Language language)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lml;a:Lorg/apache/logging/log4j/Logger;
intermediary field_11490
Lnet/minecraft/class_2477;field_11490:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/util/Language;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector official b
Lml;b:Lcom/google/gson/Gson;
intermediary field_25307
Lnet/minecraft/class_2477;field_25307:Lcom/google/gson/Gson;
named GSON
Lnet/minecraft/util/Language;GSON:Lcom/google/gson/Gson;
-
TOKEN_PATTERN
- Mappings:
Namespace Name Mixin selector official c
Lml;c:Ljava/util/regex/Pattern;
intermediary field_11489
Lnet/minecraft/class_2477;field_11489:Ljava/util/regex/Pattern;
named TOKEN_PATTERN
Lnet/minecraft/util/Language;TOKEN_PATTERN:Ljava/util/regex/Pattern;
-
instance
- Mappings:
Namespace Name Mixin selector official d
Lml;d:Lml;
intermediary field_11486
Lnet/minecraft/class_2477;field_11486:Lnet/minecraft/class_2477;
named instance
Lnet/minecraft/util/Language;instance:Lnet/minecraft/util/Language;
-
-
Constructor Details
-
Language
public Language()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official c
Lml;c()Lml;
intermediary method_29429
Lnet/minecraft/class_2477;method_29429()Lnet/minecraft/class_2477;
named create
Lnet/minecraft/util/Language;create()Lnet/minecraft/util/Language;
-
load
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Ljava/io/InputStream;Ljava/util/function/BiConsumer;)V
intermediary method_29425
Lnet/minecraft/class_2477;method_29425(Ljava/io/InputStream;Ljava/util/function/BiConsumer;)V
named load
Lnet/minecraft/util/Language;load(Ljava/io/InputStream;Ljava/util/function/BiConsumer;)V
-
getInstance
- Mappings:
Namespace Name Mixin selector official a
Lml;a()Lml;
intermediary method_10517
Lnet/minecraft/class_2477;method_10517()Lnet/minecraft/class_2477;
named getInstance
Lnet/minecraft/util/Language;getInstance()Lnet/minecraft/util/Language;
-
setInstance
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Lml;)V
intermediary method_29427
Lnet/minecraft/class_2477;method_29427(Lnet/minecraft/class_2477;)V
named setInstance
Lnet/minecraft/util/Language;setInstance(Lnet/minecraft/util/Language;)V
-
get
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_4679
Lnet/minecraft/class_2477;method_4679(Ljava/lang/String;)Ljava/lang/String;
named get
Lnet/minecraft/util/Language;get(Ljava/lang/String;)Ljava/lang/String;
-
hasTranslation
- Mappings:
Namespace Name Mixin selector official b
Lml;b(Ljava/lang/String;)Z
intermediary method_4678
Lnet/minecraft/class_2477;method_4678(Ljava/lang/String;)Z
named hasTranslation
Lnet/minecraft/util/Language;hasTranslation(Ljava/lang/String;)Z
-
isRightToLeft
- Mappings:
Namespace Name Mixin selector official b
Lml;b()Z
intermediary method_29428
Lnet/minecraft/class_2477;method_29428()Z
named isRightToLeft
Lnet/minecraft/util/Language;isRightToLeft()Z
-
reorder
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Lol;)Lafs;
intermediary method_30934
Lnet/minecraft/class_2477;method_30934(Lnet/minecraft/class_5348;)Lnet/minecraft/class_5481;
named reorder
Lnet/minecraft/util/Language;reorder(Lnet/minecraft/text/StringVisitable;)Lnet/minecraft/text/OrderedText;
-
reorder
- Mappings:
Namespace Name Mixin selector official a
Lml;a(Ljava/util/List;)Ljava/util/List;
intermediary method_30933
Lnet/minecraft/class_2477;method_30933(Ljava/util/List;)Ljava/util/List;
named reorder
Lnet/minecraft/util/Language;reorder(Ljava/util/List;)Ljava/util/List;
-