YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.multiplayer.ServerData Class Reference

Public Member Functions

 ServerData (String par1Str, String par2Str)
 
NBTTagCompound getNBTCompound ()
 
boolean getAcceptsTextures ()
 
boolean func_78840_c ()
 
void setAcceptsTextures (boolean par1)
 
boolean isHidingAddress ()
 
void setHideAddress (boolean par1)
 

Static Public Member Functions

static ServerData getServerDataFromNBTCompound (NBTTagCompound par0NBTTagCompound)
 

Public Attributes

String serverName
 
String serverIP
 
String populationInfo
 
String serverMOTD
 
long pingToServer
 
int field_82821_f = 61
 
String gameVersion = "1.5.2"
 
boolean field_78841_f = false
 

Constructor & Destructor Documentation

net.minecraft.client.multiplayer.ServerData.ServerData ( String  par1Str,
String  par2Str 
)

Member Function Documentation

boolean net.minecraft.client.multiplayer.ServerData.func_78840_c ( )
boolean net.minecraft.client.multiplayer.ServerData.getAcceptsTextures ( )
NBTTagCompound net.minecraft.client.multiplayer.ServerData.getNBTCompound ( )

Returns an NBTTagCompound with the server's name, IP and maybe acceptTextures.

static ServerData net.minecraft.client.multiplayer.ServerData.getServerDataFromNBTCompound ( NBTTagCompound  par0NBTTagCompound)
static

Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.

boolean net.minecraft.client.multiplayer.ServerData.isHidingAddress ( )
void net.minecraft.client.multiplayer.ServerData.setAcceptsTextures ( boolean  par1)
void net.minecraft.client.multiplayer.ServerData.setHideAddress ( boolean  par1)

Member Data Documentation

boolean net.minecraft.client.multiplayer.ServerData.field_78841_f = false
int net.minecraft.client.multiplayer.ServerData.field_82821_f = 61
String net.minecraft.client.multiplayer.ServerData.gameVersion = "1.5.2"

Game version for this server.

long net.minecraft.client.multiplayer.ServerData.pingToServer

last server ping that showed up in the server browser

String net.minecraft.client.multiplayer.ServerData.populationInfo

the string indicating number of players on and capacity of the server that is shown on the server browser (i.e. "5/20" meaning 5 slots used out of 20 slots total)

String net.minecraft.client.multiplayer.ServerData.serverIP
String net.minecraft.client.multiplayer.ServerData.serverMOTD

(better variable name would be 'hostname') server name as displayed in the server browser's second line (grey text)

String net.minecraft.client.multiplayer.ServerData.serverName

The documentation for this class was generated from the following file: