Package net.minecraft.src
Class ServerData
java.lang.Object
net.minecraft.src.ServerData
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintGame version for this server.longlast server ping that showed up in the server browserthe string indicating number of players on and capacity of the server that is shown on the server browser (i.e(better variable name would be 'hostname') server name as displayed in the server browser's second line (grey text) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an NBTTagCompound with the server's name, IP and maybe acceptTextures.static ServerDatagetServerDataFromNBTCompound(NBTTagCompound par0NBTTagCompound) Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.booleanvoidsetAcceptsTextures(boolean par1) voidsetHideAddress(boolean par1)
-
Field Details
-
serverName
-
serverIP
-
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) -
serverMOTD
(better variable name would be 'hostname') server name as displayed in the server browser's second line (grey text) -
pingToServer
public long pingToServerlast server ping that showed up in the server browser -
field_82821_f
public int field_82821_f -
gameVersion
Game version for this server. -
field_78841_f
public boolean field_78841_f
-
-
Constructor Details
-
ServerData
-
-
Method Details
-
getNBTCompound
Returns an NBTTagCompound with the server's name, IP and maybe acceptTextures. -
setAcceptsTextures
public void setAcceptsTextures(boolean par1) -
isHidingAddress
public boolean isHidingAddress() -
setHideAddress
public void setHideAddress(boolean par1) -
getServerDataFromNBTCompound
Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.
-