Class 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()  
    • 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
    • Constructor Detail

      • LanguageHook

        public LanguageHook()
    • 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)