public class PacketPlayInTabComplete extends InPacket
Modifier and Type | Field and Description |
---|---|
protected boolean |
hasPosition
If player is looking at a specific block
|
protected Position |
lookedAtBlock
PositionWritable of the block the player is looking at, only sent if hasPosition is true
|
protected String |
text
Text currently written
|
Constructor and Description |
---|
PacketPlayInTabComplete() |
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
|
boolean |
hasPosition() |
int |
id()
Gets the ID of this packet, according to the protocol specification
|
Position |
lookedAtBlock() |
String |
text() |
protected boolean hasPosition
protected Position lookedAtBlock
public PacketPlayInTabComplete()
public int id()
Packet
public Packet decode(ByteBuf buf)
Packet
buf
- the buffer storing the serialized packet datapublic boolean hasPosition()
public Position lookedAtBlock()
public 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.