public class SPacketServerInfo extends java.lang.Object implements Packet<INetHandlerStatusClient>
Modifier and Type | Field and Description |
---|---|
static com.google.gson.Gson |
GSON |
private ServerStatusResponse |
response |
Constructor and Description |
---|
SPacketServerInfo() |
SPacketServerInfo(ServerStatusResponse responseIn) |
Modifier and Type | Method and Description |
---|---|
ServerStatusResponse |
getResponse() |
void |
processPacket(INetHandlerStatusClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
public static final com.google.gson.Gson GSON
private ServerStatusResponse response
public SPacketServerInfo()
public SPacketServerInfo(ServerStatusResponse responseIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerStatusClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerStatusClient>
java.io.IOException
public void processPacket(INetHandlerStatusClient handler)
processPacket
in interface Packet<INetHandlerStatusClient>
public ServerStatusResponse getResponse()