public abstract class ServerInfo extends java.lang.Object implements SubSystem
Most information is accessible via static methods.
Modifier and Type | Field and Description |
---|---|
protected Server |
server |
protected ServerProperties |
serverProperties |
Constructor and Description |
---|
ServerInfo(ServerProperties serverProperties) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
protected java.util.UUID |
generateNewUUID() |
Server |
getServer() |
ServerProperties |
getServerProperties() |
java.util.UUID |
getServerUUID() |
java.util.Optional<java.util.UUID> |
getServerUUIDSafe() |
protected abstract void |
loadServerInfo() |
protected Server server
protected ServerProperties serverProperties
public ServerInfo(ServerProperties serverProperties)
public Server getServer()
public java.util.UUID getServerUUID()
public java.util.Optional<java.util.UUID> getServerUUIDSafe()
public ServerProperties getServerProperties()
public void enable() throws EnableException
SubSystem
enable
in interface SubSystem
EnableException
- If an error occurred during enable and it is fatal to the subsystem.protected abstract void loadServerInfo() throws EnableException
EnableException
public void disable()
SubSystem
protected java.util.UUID generateNewUUID()