public class SPacketServerInfo extends java.lang.Object implements Packet<INetHandlerStatusClient>
Modifier and Type | Field and Description |
---|---|
static Gson |
GSON |
Constructor and Description |
---|
SPacketServerInfo() |
SPacketServerInfo(ServerStatusResponse responseIn) |
Modifier and Type | Method and Description |
---|---|
ServerStatusResponse |
getResponse() |
void |
processPacket(INetHandlerStatusClient handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
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()