Package net.minecraft.util.text
Class LanguageMap
- java.lang.Object
-
- net.minecraft.util.text.LanguageMap
-
- Direct Known Subclasses:
ClientLanguageMap
public abstract class LanguageMap extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.google.gson.Gson
GSON
private static LanguageMap
instance
private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.regex.Pattern
UNSUPPORTED_FORMAT_PATTERN
-
Constructor Summary
Constructors Constructor Description LanguageMap()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LanguageMap
getInstance()
java.util.Map<java.lang.String,java.lang.String>
getLanguageData()
abstract java.lang.String
getOrDefault(java.lang.String p_230503_1_)
java.util.List<IReorderingProcessor>
getVisualOrder(java.util.List<ITextProperties> p_244260_1_)
abstract IReorderingProcessor
getVisualOrder(ITextProperties p_241870_1_)
abstract boolean
has(java.lang.String p_230506_1_)
static void
inject(LanguageMap p_240594_0_)
abstract boolean
isDefaultRightToLeft()
private static LanguageMap
loadDefault()
static void
loadFromJson(java.io.InputStream p_240593_0_, java.util.function.BiConsumer<java.lang.String,java.lang.String> p_240593_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
UNSUPPORTED_FORMAT_PATTERN
private static final java.util.regex.Pattern UNSUPPORTED_FORMAT_PATTERN
-
instance
private static volatile LanguageMap instance
-
-
Method Detail
-
loadDefault
private static LanguageMap loadDefault()
-
loadFromJson
public static void loadFromJson(java.io.InputStream p_240593_0_, java.util.function.BiConsumer<java.lang.String,java.lang.String> p_240593_1_)
-
getInstance
public static LanguageMap getInstance()
-
inject
public static void inject(LanguageMap p_240594_0_)
-
getLanguageData
public java.util.Map<java.lang.String,java.lang.String> getLanguageData()
-
getOrDefault
public abstract java.lang.String getOrDefault(java.lang.String p_230503_1_)
-
has
public abstract boolean has(java.lang.String p_230506_1_)
-
isDefaultRightToLeft
public abstract boolean isDefaultRightToLeft()
-
getVisualOrder
public abstract IReorderingProcessor getVisualOrder(ITextProperties p_241870_1_)
-
getVisualOrder
public java.util.List<IReorderingProcessor> getVisualOrder(java.util.List<ITextProperties> p_244260_1_)
-
-