Package net.minecraft.util
Class Language
java.lang.Object
net.minecraft.util.Language
- Direct Known Subclasses:
TranslationStorage
- Mappings:
Namespace Name named net/minecraft/util/Language
intermediary net/minecraft/class_2477
official us
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Language
create()
abstract String
static Language
abstract boolean
hasTranslation
(String key) abstract boolean
static void
load
(InputStream inputStream, BiConsumer<String, String> entryConsumer) private static void
load
(BiConsumer<String, String> entryConsumer, String path) reorder
(List<StringVisitable> texts) abstract OrderedText
reorder
(StringVisitable text) static void
setInstance
(Language language)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/util/Language;LOGGER:Lorg/slf4j/Logger;
intermediary field_11490
Lnet/minecraft/class_2477;field_11490:Lorg/slf4j/Logger;
official b
Lus;b:Lorg/slf4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector named GSON
Lnet/minecraft/util/Language;GSON:Lcom/google/gson/Gson;
intermediary field_25307
Lnet/minecraft/class_2477;field_25307:Lcom/google/gson/Gson;
official c
Lus;c:Lcom/google/gson/Gson;
-
TOKEN_PATTERN
- Mappings:
Namespace Name Mixin selector named TOKEN_PATTERN
Lnet/minecraft/util/Language;TOKEN_PATTERN:Ljava/util/regex/Pattern;
intermediary field_11489
Lnet/minecraft/class_2477;field_11489:Ljava/util/regex/Pattern;
official d
Lus;d:Ljava/util/regex/Pattern;
-
DEFAULT_LANGUAGE
- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_LANGUAGE
Lnet/minecraft/util/Language;DEFAULT_LANGUAGE:Ljava/lang/String;
intermediary field_33187
Lnet/minecraft/class_2477;field_33187:Ljava/lang/String;
official a
Lus;a:Ljava/lang/String;
-
instance
- Mappings:
Namespace Name Mixin selector named instance
Lnet/minecraft/util/Language;instance:Lnet/minecraft/util/Language;
intermediary field_11486
Lnet/minecraft/class_2477;field_11486:Lnet/minecraft/class_2477;
official e
Lus;e:Lus;
-
-
Constructor Details
-
Language
public Language()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/Language;create()Lnet/minecraft/util/Language;
intermediary method_29429
Lnet/minecraft/class_2477;method_29429()Lnet/minecraft/class_2477;
official c
Lus;c()Lus;
-
load
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/util/Language;load(Ljava/util/function/BiConsumer;Ljava/lang/String;)V
intermediary method_51465
Lnet/minecraft/class_2477;method_51465(Ljava/util/function/BiConsumer;Ljava/lang/String;)V
official a
Lus;a(Ljava/util/function/BiConsumer;Ljava/lang/String;)V
-
load
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/util/Language;load(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
official a
Lus;a(Ljava/io/InputStream;Ljava/util/function/BiConsumer;)V
-
getInstance
- Mappings:
Namespace Name Mixin selector named getInstance
Lnet/minecraft/util/Language;getInstance()Lnet/minecraft/util/Language;
intermediary method_10517
Lnet/minecraft/class_2477;method_10517()Lnet/minecraft/class_2477;
official a
Lus;a()Lus;
-
setInstance
- Mappings:
Namespace Name Mixin selector named setInstance
Lnet/minecraft/util/Language;setInstance(Lnet/minecraft/util/Language;)V
intermediary method_29427
Lnet/minecraft/class_2477;method_29427(Lnet/minecraft/class_2477;)V
official a
Lus;a(Lus;)V
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/util/Language;get(Ljava/lang/String;)Ljava/lang/String;
intermediary method_48307
Lnet/minecraft/class_2477;method_48307(Ljava/lang/String;)Ljava/lang/String;
official a
Lus;a(Ljava/lang/String;)Ljava/lang/String;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/util/Language;get(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_4679
Lnet/minecraft/class_2477;method_4679(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
official a
Lus;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
hasTranslation
- Mappings:
Namespace Name Mixin selector named hasTranslation
Lnet/minecraft/util/Language;hasTranslation(Ljava/lang/String;)Z
intermediary method_4678
Lnet/minecraft/class_2477;method_4678(Ljava/lang/String;)Z
official b
Lus;b(Ljava/lang/String;)Z
-
isRightToLeft
public abstract boolean isRightToLeft()- Mappings:
Namespace Name Mixin selector named isRightToLeft
Lnet/minecraft/util/Language;isRightToLeft()Z
intermediary method_29428
Lnet/minecraft/class_2477;method_29428()Z
official b
Lus;b()Z
-
reorder
- Mappings:
Namespace Name Mixin selector named reorder
Lnet/minecraft/util/Language;reorder(Lnet/minecraft/text/StringVisitable;)Lnet/minecraft/text/OrderedText;
intermediary method_30934
Lnet/minecraft/class_2477;method_30934(Lnet/minecraft/class_5348;)Lnet/minecraft/class_5481;
official a
Lus;a(Lya;)Lazq;
-
reorder
- Mappings:
Namespace Name Mixin selector named reorder
Lnet/minecraft/util/Language;reorder(Ljava/util/List;)Ljava/util/List;
intermediary method_30933
Lnet/minecraft/class_2477;method_30933(Ljava/util/List;)Ljava/util/List;
official a
Lus;a(Ljava/util/List;)Ljava/util/List;
-