Package pro.gravit.launcher.server
Class ServerWrapper
java.lang.Object
pro.gravit.launcher.config.JsonConfigurable<ServerWrapper.Config>
pro.gravit.launcher.server.ServerWrapper
- All Implemented Interfaces:
pro.gravit.launcher.config.JsonConfigurableInterface<ServerWrapper.Config>
public class ServerWrapper
extends pro.gravit.launcher.config.JsonConfigurable<ServerWrapper.Config>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Pathstatic booleanstatic Pathstatic Pathstatic ServerWrapperModulesManagerpro.gravit.launcher.ClientPermissionspro.gravit.launcher.profiles.PlayerProfilepro.gravit.launcher.profiles.ClientProfilepro.gravit.launcher.profiles.ClientProfile.ServerProfilepro.gravit.utils.PublicURLClassLoaderstatic ServerWrapperFields inherited from class pro.gravit.launcher.config.JsonConfigurable
configPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauth()pro.gravit.launcher.events.request.ProfilesRequestEventstatic voidinitGson(ServerWrapperModulesManager modulesManager)static voidvoidvoidsetConfig(ServerWrapper.Config config)voidMethods inherited from class pro.gravit.launcher.config.JsonConfigurable
getPath, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launcher.config.JsonConfigurableInterface
generateConfigIfNotExists, generateConfigIfNotExists, loadConfig, loadConfig, loadConfig, resetConfig, resetConfig, saveConfig, saveConfig, saveConfig, toJsonString, toJsonString
-
Field Details
-
modulesDir
-
modulesConfigDir
-
configFile
-
disableSetup
public static final boolean disableSetup -
modulesManager
-
wrapper
-
config
-
ucp
public pro.gravit.utils.PublicURLClassLoader ucp -
loader
-
permissions
public pro.gravit.launcher.ClientPermissions permissions -
profile
public pro.gravit.launcher.profiles.ClientProfile profile -
playerProfile
public pro.gravit.launcher.profiles.PlayerProfile playerProfile -
serverProfile
public pro.gravit.launcher.profiles.ClientProfile.ServerProfile serverProfile
-
-
Constructor Details
-
ServerWrapper
-
-
Method Details
-
initGson
-
main
- Throws:
Throwable
-
auth
public boolean auth() -
getProfiles
public pro.gravit.launcher.events.request.ProfilesRequestEvent getProfiles() -
run
- Throws:
Throwable
-
updateLauncherConfig
public void updateLauncherConfig() -
getConfig
- Specified by:
getConfigin interfacepro.gravit.launcher.config.JsonConfigurableInterface<ServerWrapper.Config>- Specified by:
getConfigin classpro.gravit.launcher.config.JsonConfigurable<ServerWrapper.Config>
-
setConfig
- Specified by:
setConfigin interfacepro.gravit.launcher.config.JsonConfigurableInterface<ServerWrapper.Config>- Specified by:
setConfigin classpro.gravit.launcher.config.JsonConfigurable<ServerWrapper.Config>
-
getDefaultConfig
- Specified by:
getDefaultConfigin interfacepro.gravit.launcher.config.JsonConfigurableInterface<ServerWrapper.Config>- Specified by:
getDefaultConfigin classpro.gravit.launcher.config.JsonConfigurable<ServerWrapper.Config>
-