Package emu.grasscutter
Class Grasscutter
java.lang.Object
emu.grasscutter.Grasscutter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ConfigContainerstatic final Filestatic final org.reflections.Reflections -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationSystemstatic ConfigContainerstatic org.jline.reader.LineReaderstatic intstatic GameServerstatic com.google.gson.Gsonstatic HttpServerstatic Languagestatic LanguagegetLanguage(String langCode) static ch.qos.logback.classic.Loggerstatic PluginManagerstatic voidAttempts to load the configuration from a file.static voidstatic voidstatic voidsaveConfig(ConfigContainer config) Saves the provided server configuration.static voidsetAuthenticationSystem(AuthenticationSystem authenticationSystem) Sets the authentication system for the server.static voidsetLanguage(Language language) static voidstatic void
-
Field Details
-
configFile
-
reflector
public static final org.reflections.Reflections reflector -
config
-
-
Constructor Details
-
Grasscutter
public Grasscutter()
-
-
Method Details
-
main
- Throws:
Exception
-
loadLanguage
public static void loadLanguage() -
loadConfig
public static void loadConfig()Attempts to load the configuration from a file. -
saveConfig
Saves the provided server configuration.- Parameters:
config- The configuration to save, or null for a new one.
-
getConfig
-
getLanguage
-
setLanguage
-
getLanguage
-
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
-
getGameServer
-
getPluginManager
-
getAuthenticationSystem
-
getCurrentDayOfWeek
public static int getCurrentDayOfWeek() -
updateDayOfWeek
public static void updateDayOfWeek() -
startConsole
public static void startConsole() -
setAuthenticationSystem
Sets the authentication system for the server.- Parameters:
authenticationSystem- The authentication system to use.
-