@ThreadSafe public final class TridentServer extends Object implements Server
Modifier and Type | Field and Description |
---|---|
static TridentWorld |
WORLD |
Modifier and Type | Method and Description |
---|---|
int |
compressionThreshold() |
Config |
config()
The server configuration file
|
Console |
console()
The server's console
|
static TridentServer |
createServer(Config config)
Creates the server access base, distributing information to the fields available
|
PingInfo |
info()
Gets the server's display information on the server list
|
static TridentServer |
instance()
Gets the instance of the server
|
InetAddress |
ip()
Gets the Internet Address of this server
|
TridentLogger |
logger()
Gets the server's console logger for the this class
|
MainThread |
mainThread() |
int |
port()
Gets the port the server currently runs on
|
Protocol |
protocol()
Get the protocol base of the server
|
void |
shutdown()
Performs the shutdown procedure on the server, ending with the exit of the JVM
|
String |
version()
Gets the version of Trident that the server is currently running
|
public static TridentWorld WORLD
public static TridentServer createServer(Config config)
config
- the configuration to use for option lookuppublic static TridentServer instance()
public Protocol protocol()
public int compressionThreshold()
public MainThread mainThread()
public int port()
public Config config()
Server
public void shutdown()
public InetAddress ip()
Server
public String version()
Server
public PingInfo info()
Server
public TridentLogger logger()
Server
Copyright © 2016. All rights reserved.