public class ServerStatusResponse
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerStatusResponse.Players |
static class |
ServerStatusResponse.Serializer |
static class |
ServerStatusResponse.Version |
Modifier and Type | Field and Description |
---|---|
private ITextComponent |
description |
private java.lang.String |
favicon |
private java.lang.String |
json |
private java.util.concurrent.Semaphore |
mutex |
private ServerStatusResponse.Players |
players |
private ServerStatusResponse.Version |
version |
Constructor and Description |
---|
ServerStatusResponse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFavicon() |
java.lang.String |
getJson()
Returns this object as a Json string.
|
ServerStatusResponse.Players |
getPlayers() |
ITextComponent |
getServerDescription() |
ServerStatusResponse.Version |
getVersion() |
void |
invalidateJson()
Invalidates the cached json, causing the next call to getJson to rebuild it.
|
void |
setFavicon(java.lang.String faviconBlob) |
void |
setPlayers(ServerStatusResponse.Players playersIn) |
void |
setServerDescription(ITextComponent descriptionIn) |
void |
setVersion(ServerStatusResponse.Version versionIn) |
private ITextComponent description
private ServerStatusResponse.Players players
private ServerStatusResponse.Version version
private java.lang.String favicon
private java.util.concurrent.Semaphore mutex
private java.lang.String json
public ITextComponent getServerDescription()
public void setServerDescription(ITextComponent descriptionIn)
public ServerStatusResponse.Players getPlayers()
public void setPlayers(ServerStatusResponse.Players playersIn)
public ServerStatusResponse.Version getVersion()
public void setVersion(ServerStatusResponse.Version versionIn)
public void setFavicon(java.lang.String faviconBlob)
public java.lang.String getFavicon()
public java.lang.String getJson()
public void invalidateJson()