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 final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pathstatic final booleanpro.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 TypeMethodDescriptionvoidstatic voidinitGson()static voidvoidrestore()voidvoidsetConfig(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
-
configFile
-
disableSetup
public static final boolean disableSetup -
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
public static void initGson() -
main
- Throws:
Throwable
-
restore
- Throws:
Exception
-
getProfiles
- Throws:
Exception
-
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>
-