@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 |
String |
label |
private boolean |
local |
String |
name |
boolean |
online |
long |
ping |
String |
playerCountLabel |
String |
playerListSummary |
int |
protocolVersion |
private ServerInfo.ResourcePackState |
resourcePackState |
String |
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 String playerCountLabel
public String label
public long ping
public int protocolVersion
public String version
public boolean online
public String playerListSummary
private ServerInfo.ResourcePackState resourcePackState
private String icon
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)