public static final class GS4QueryEvent.QueryResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GS4QueryEvent.QueryResponse.Builder
A builder for
GS4QueryEvent.QueryResponse objects. |
static class |
GS4QueryEvent.QueryResponse.PluginInformation
Plugin information
|
Modifier and Type | Method and Description |
---|---|
static @NotNull GS4QueryEvent.QueryResponse.Builder |
builder()
Creates a new
GS4QueryEvent.QueryResponse.Builder instance |
int |
getCurrentPlayers()
Get current online player count which will be used to reply to the query.
|
@NotNull String |
getGameVersion()
Get game version which will be used to reply to the query.
|
@NotNull String |
getHostname()
Get server (public facing) hostname
|
@NotNull String |
getMap()
Get map name which will be used to reply to the query.
|
int |
getMaxPlayers()
Get max player count which will be used to reply to the query.
|
@NotNull String |
getMotd()
Get motd which will be used to reply to the query.
|
@NotNull Collection<String> |
getPlayers()
Get collection of players which will be used to reply to the query.
|
@NotNull Collection<GS4QueryEvent.QueryResponse.PluginInformation> |
getPlugins()
Get list of plugins which will be used to reply to the query.
|
int |
getPort()
Get server (public facing) port
|
@NotNull String |
getServerVersion()
Get server software (name and version) which will be used to reply to the query.
|
@NotNull GS4QueryEvent.QueryResponse.Builder |
toBuilder()
Creates a new
GS4QueryEvent.QueryResponse.Builder instance from data represented by this response |
@NotNull public @NotNull String getMotd()
Server.getMotd()
.@NotNull public @NotNull String getGameVersion()
@NotNull public @NotNull String getMap()
world
is sent.public int getCurrentPlayers()
public int getMaxPlayers()
@NotNull public @NotNull String getHostname()
public int getPort()
@NotNull public @NotNull Collection<String> getPlayers()
@NotNull public @NotNull String getServerVersion()
@NotNull public @NotNull Collection<GS4QueryEvent.QueryResponse.PluginInformation> getPlugins()
@NotNull public @NotNull GS4QueryEvent.QueryResponse.Builder toBuilder()
GS4QueryEvent.QueryResponse.Builder
instance from data represented by this responseGS4QueryEvent.QueryResponse
builder@NotNull public static @NotNull GS4QueryEvent.QueryResponse.Builder builder()
GS4QueryEvent.QueryResponse.Builder
instanceGS4QueryEvent.QueryResponse
builderCopyright © 2021. All rights reserved.