public class PacketPlayInClientStatus extends InPacket
Modifier and Type | Class and Description |
---|---|
static class |
PacketPlayInClientStatus.StatusType |
Modifier and Type | Field and Description |
---|---|
protected short |
actionId
Action ID values: 0 - Perform Respawn 1 - Request statistics 2 - Open inventory acheivement
|
Constructor and Description |
---|
PacketPlayInClientStatus() |
Modifier and Type | Method and Description |
---|---|
short |
actionId() |
Packet |
decode(ByteBuf buf)
Sets the fields of the packet from the data serialized into the buffer
|
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
|
protected short actionId
public PacketPlayInClientStatus()
public int id()
Packet
public short actionId()
public Packet decode(ByteBuf buf)
Packet
buf
- the buffer storing the serialized packet datapublic void handleReceived(ClientConnection connection)
Packet
Used 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 packetCopyright © 2016. All rights reserved.