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 classServerInfo.ResourcePackState -
Field Summary
Fields Modifier and Type Field Description Stringaddressprivate StringiconTextlabelprivate booleanlocalStringnamebooleanonlinelongpingTextplayerCountLabelList<Text>playerListSummaryintprotocolVersionprivate ServerInfo.ResourcePackStateresourcePackStateTextversion -
Constructor Summary
Constructors Constructor Description ServerInfo(String name, String address, boolean local) -
Method Summary
Modifier and Type Method Description voidcopyFrom(ServerInfo serverInfo)static ServerInfodeserialize(CompoundTag tag)StringgetIcon()ServerInfo.ResourcePackStategetResourcePack()booleanisLocal()CompoundTagserialize()voidsetIcon(String string)voidsetResourcePackState(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
-