Package net.minecraft.client.multiplayer
Class ServerData
- java.lang.Object
-
- net.minecraft.client.multiplayer.ServerData
-
public class ServerData extends java.lang.Object+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerData.ServerResourceMode
-
Field Summary
Fields Modifier and Type Field Description IServerQuerycurrentQuerybooleanfield_78841_fjava.lang.StringgameVersion+ Game version for this server.booleanhasPingbooleanhideAddressResourceLocationiconResourceLocationEaglerSkinTextureiconTextureObjectbooleanisDefaultlongpingSentTimelongpingToServer+ last server ping that showed up in the server browserjava.lang.StringplayerListjava.lang.StringpopulationInfo+ the string indicating number of players on and capacity of the server that is shown on the server browser (i.e.booleanserverIconDirtybooleanserverIconEnabledjava.lang.StringserverIPjava.lang.StringserverMOTD+ (better variable name would be 'hostname') server name as displayed in the server browser's second line (grey text)java.lang.StringserverNameintversion
-
Constructor Summary
Constructors Constructor Description ServerData(java.lang.String parString1, java.lang.String parString2, boolean parFlag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(ServerData serverDataIn)booleanfunc_181041_d()NBTTagCompoundgetNBTCompound()+ Returns an NBTTagCompound with the server's name, IP and maybe acceptTextures.ServerData.ServerResourceModegetResourceMode()static ServerDatagetServerDataFromNBTCompound(NBTTagCompound nbtCompound)+ Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.voidsetIconPacket(byte[] pkt)voidsetMOTDFromQuery(QueryResponse pkt)voidsetResourceMode(ServerData.ServerResourceMode mode)
-
-
-
Field Detail
-
serverName
public java.lang.String serverName
-
serverIP
public java.lang.String serverIP
-
populationInfo
public java.lang.String 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
public java.lang.String serverMOTD
+ (better variable name would be 'hostname') server name as displayed in the server browser's second line (grey text)
-
pingToServer
public long pingToServer
+ last server ping that showed up in the server browser
-
version
public int version
-
gameVersion
public java.lang.String gameVersion
+ Game version for this server.
-
field_78841_f
public boolean field_78841_f
-
playerList
public java.lang.String playerList
-
hideAddress
public boolean hideAddress
-
currentQuery
public IServerQuery currentQuery
-
iconResourceLocation
public final ResourceLocation iconResourceLocation
-
iconTextureObject
public EaglerSkinTexture iconTextureObject
-
pingSentTime
public long pingSentTime
-
serverIconDirty
public boolean serverIconDirty
-
hasPing
public boolean hasPing
-
serverIconEnabled
public boolean serverIconEnabled
-
isDefault
public boolean isDefault
-
-
Method Detail
-
getNBTCompound
public NBTTagCompound getNBTCompound()
+ Returns an NBTTagCompound with the server's name, IP and maybe acceptTextures.
-
getResourceMode
public ServerData.ServerResourceMode getResourceMode()
-
setResourceMode
public void setResourceMode(ServerData.ServerResourceMode mode)
-
getServerDataFromNBTCompound
public static ServerData getServerDataFromNBTCompound(NBTTagCompound nbtCompound)
+ Takes an NBTTagCompound with 'name' and 'ip' keys, returns a ServerData instance.
-
func_181041_d
public boolean func_181041_d()
-
copyFrom
public void copyFrom(ServerData serverDataIn)
-
setMOTDFromQuery
public void setMOTDFromQuery(QueryResponse pkt)
-
setIconPacket
public void setIconPacket(byte[] pkt)
-
-