@Environment(value=CLIENT) public class ServerInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServerInfo.ResourcePackState |
Modifier and Type | Field and Description |
---|---|
String |
address |
private String |
icon |
Text |
label |
private boolean |
local |
String |
name |
boolean |
online |
long |
ping |
Text |
playerCountLabel |
List<Text> |
playerListSummary |
int |
protocolVersion |
private ServerInfo.ResourcePackState |
resourcePackState |
Text |
version |
Constructor and Description |
---|
ServerInfo(String name,
String address,
boolean local) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(ServerInfo serverInfo) |
static ServerInfo |
deserialize(CompoundTag tag) |
String |
getIcon() |
ServerInfo.ResourcePackState |
getResourcePack() |
boolean |
isLocal() |
CompoundTag |
serialize() |
void |
setIcon(String string) |
void |
setResourcePackState(ServerInfo.ResourcePackState resourcePackState) |
public String name
public String address
public Text playerCountLabel
public Text label
public long ping
public int protocolVersion
public Text version
public boolean online
private ServerInfo.ResourcePackState resourcePackState
private boolean local
public CompoundTag serialize()
public ServerInfo.ResourcePackState getResourcePack()
public void setResourcePackState(ServerInfo.ResourcePackState resourcePackState)
public static ServerInfo deserialize(CompoundTag tag)
public boolean isLocal()
public void copyFrom(ServerInfo serverInfo)