Class Grasscutter

java.lang.Object
emu.grasscutter.Grasscutter

public final class Grasscutter extends Object
  • Field Details

    • configFile

      public static final File configFile
    • reflector

      public static final org.reflections.Reflections reflector
    • config

      public static ConfigContainer config
  • Constructor Details

    • Grasscutter

      public Grasscutter()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • loadLanguage

      public static void loadLanguage()
    • loadConfig

      public static void loadConfig()
      Attempts to load the configuration from a file.
    • saveConfig

      public static void saveConfig(@Nullable ConfigContainer config)
      Saves the provided server configuration.
      Parameters:
      config - The configuration to save, or null for a new one.
    • getConfig

      public static ConfigContainer getConfig()
    • getLanguage

      public static Language getLanguage()
    • setLanguage

      public static void setLanguage(Language language)
    • getLanguage

      public static Language getLanguage(String langCode)
    • getLogger

      public static ch.qos.logback.classic.Logger getLogger()
    • getConsole

      public static org.jline.reader.LineReader getConsole()
    • getGsonFactory

      public static com.google.gson.Gson getGsonFactory()
    • getHttpServer

      public static HttpServer getHttpServer()
    • getGameServer

      public static GameServer getGameServer()
    • getPluginManager

      public static PluginManager getPluginManager()
    • getAuthenticationSystem

      public static AuthenticationSystem getAuthenticationSystem()
    • getCurrentDayOfWeek

      public static int getCurrentDayOfWeek()
    • updateDayOfWeek

      public static void updateDayOfWeek()
    • startConsole

      public static void startConsole()
    • setAuthenticationSystem

      public static void setAuthenticationSystem(AuthenticationSystem authenticationSystem)
      Sets the authentication system for the server.
      Parameters:
      authenticationSystem - The authentication system to use.