public class PacketStatusInPing extends InPacket
| Modifier and Type | Field and Description |
|---|---|
protected long |
time
System time of the client (ms)
|
| Constructor and Description |
|---|
PacketStatusInPing() |
| Modifier and Type | Method and Description |
|---|---|
Packet |
decode(ByteBuf buf)
Sets the fields of the packet from the data serialized into the buffer
|
PacketDirection |
direction()
Returns the packet direction
|
void |
handleReceived(ClientConnection connection)
Handles the packet after receiving it from a connection, is invoked by the ClientConnection that received it
|
int |
id()
Gets the ID of this packet, according to the protocol specification
|
long |
time() |
protected long time
public PacketStatusInPing()
public int id()
Packetpublic Packet decode(ByteBuf buf)
Packetbuf - the buffer storing the serialized packet datapublic void handleReceived(ClientConnection connection)
PacketUsed to allow the packet to notify the ClientConnection
of packets the server receives, and make changes specific to this packet
connection - The connection that sent the packetpublic long time()
public PacketDirection direction()
Packetdirection in interface Packetdirection in class InPacketPacketDirection.IN or
PacketDirection.OUT depending on directionCopyright © 2016. All rights reserved.