Package net.minecraftforge.fml.server
Class LanguageHook
- java.lang.Object
-
- net.minecraftforge.fml.server.LanguageHook
-
public class LanguageHook extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.util.Map<java.lang.String,java.lang.String>>
capturedTables
private static com.google.gson.Gson
GSON
private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.Map<java.lang.String,java.lang.String>
modTable
private static java.util.regex.Pattern
PATTERN
-
Constructor Summary
Constructors Constructor Description LanguageHook()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
captureLanguageMap(java.util.Map<java.lang.String,java.lang.String> table)
Loads lang files on the serverstatic void
loadForgeAndMCLangs()
private static void
loadLanguage(java.lang.String langName, MinecraftServer server)
(package private) static void
loadLanguagesOnServer(MinecraftServer server)
private static void
loadLocaleData(java.io.InputStream inputstream)
private static void
loadLocaleData(java.util.List<IResource> allResources)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
PATTERN
private static final java.util.regex.Pattern PATTERN
-
capturedTables
private static java.util.List<java.util.Map<java.lang.String,java.lang.String>> capturedTables
-
modTable
private static java.util.Map<java.lang.String,java.lang.String> modTable
-
-
Method Detail
-
captureLanguageMap
public static void captureLanguageMap(java.util.Map<java.lang.String,java.lang.String> table)
Loads lang files on the server
-
loadLocaleData
private static void loadLocaleData(java.util.List<IResource> allResources)
-
loadLocaleData
private static void loadLocaleData(java.io.InputStream inputstream)
-
loadLanguage
private static void loadLanguage(java.lang.String langName, MinecraftServer server)
-
loadForgeAndMCLangs
public static void loadForgeAndMCLangs()
-
loadLanguagesOnServer
static void loadLanguagesOnServer(MinecraftServer server)
-
-