public class SServerInfoPacket extends java.lang.Object implements IPacket<IClientStatusNetHandler>
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
GSON |
private ServerStatusResponse |
response |
Constructor and Description |
---|
SServerInfoPacket() |
SServerInfoPacket(ServerStatusResponse responseIn) |
Modifier and Type | Method and Description |
---|---|
ServerStatusResponse |
getResponse() |
void |
processPacket(IClientStatusNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
public static final com.google.gson.Gson GSON
private ServerStatusResponse response
public SServerInfoPacket()
public SServerInfoPacket(ServerStatusResponse responseIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientStatusNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientStatusNetHandler>
java.io.IOException
public void processPacket(IClientStatusNetHandler handler)
processPacket
in interface IPacket<IClientStatusNetHandler>
public ServerStatusResponse getResponse()