Package net.minecraft.client.network
Class ServerInfo
java.lang.Object
net.minecraft.client.network.ServerInfo
@Environment(CLIENT) public class ServerInfo extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerInfo.ResourcePackState
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ServerInfo(String name, String address, boolean local)
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
name
-
address
-
playerCountLabel
-
label
-
ping
public long ping -
protocolVersion
public int protocolVersion -
version
-
online
public boolean online -
playerListSummary
-
resourcePackState
-
icon
-
local
private boolean local
-
-
Constructor Details
-
ServerInfo
-
-
Method Details
-
serialize
-
getResourcePack
-
setResourcePackState
-
deserialize
-
getIcon
-
setIcon
-
isLocal
public boolean isLocal() -
copyFrom
-