public class PacketPlayInPackStatus extends InPacket
| Modifier and Type | Field and Description |
|---|---|
protected String |
hash
Hash of the pack
|
protected int |
result
Result/Status 0 - Successfully loaded 1 - Declined 2 - Failed download 3 - Accepted TODO Change to
enum
|
| Constructor and Description |
|---|
PacketPlayInPackStatus() |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
hash() |
int |
id()
Gets the ID of this packet, according to the protocol specification
|
int |
result() |
protected int result
public PacketPlayInPackStatus()
public int id()
Packetpublic Packet decode(ByteBuf buf)
Packetbuf - the buffer storing the serialized packet datapublic int result()
public 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 packetCopyright © 2016. All rights reserved.