Class LanguageHook

java.lang.Object
net.neoforged.neoforge.server.LanguageHook

@Internal public class LanguageHook extends Object
Loads the built-in language files, and handles loading the default language ("en_us") on the dedicated server.
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • defaultLanguageTable

      private static Map<String,String> defaultLanguageTable
    • modTable

      private static Map<String,String> modTable
  • Constructor Details

    • LanguageHook

      public LanguageHook()
  • Method Details

    • captureLanguageMap

      public static void captureLanguageMap(Map<String,String> table)
    • loadLanguage

      private static void loadLanguage(String langName, MinecraftServer server)
    • loadBuiltinLanguages

      public static void loadBuiltinLanguages()
    • loadModLanguages

      static void loadModLanguages(MinecraftServer server)