public abstract class ServerProperties
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ServerProperties(java.lang.String name,
int port,
java.lang.String version,
java.lang.String implVersion,
java.util.function.Supplier<java.lang.String> ip,
int maxPlayers,
java.util.function.IntSupplier onlinePlayers) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImplVersion() |
java.lang.String |
getIp()
Ip string in server.properties.
|
int |
getMaxPlayers() |
java.lang.String |
getName() |
int |
getOnlinePlayers() |
int |
getPort() |
java.lang.String |
getVersion() |
protected ServerProperties(java.lang.String name, int port, java.lang.String version, java.lang.String implVersion, java.util.function.Supplier<java.lang.String> ip, int maxPlayers, java.util.function.IntSupplier onlinePlayers)
public java.lang.String getIp()
public java.lang.String getName()
public int getPort()
public java.lang.String getVersion()
public java.lang.String getImplVersion()
public int getMaxPlayers()
public int getOnlinePlayers()