Template:Packet

Creates a packet table. For use on Protocol etc.

Usage
Each instance of the table stands for one packet field (one row of the table).

The first field of the packet must have  and include the following named parameters:


 * : the packet ID, in hexadecimal, two digits, no  prefix.
 * : the connection state in which the packet occurs, one of Handshaking, Play, Status, or Login.
 * : the direction of the packet:  for client to server (serverbound), or   for server to client (clientbound).
 * : the number of rows in the table body, a.k.a. the number of fields in the packet.

The positional parameters represent the field of the packet. They are:


 * 1) The name of the field (should be in title case).
 * 2) The field type (one of the Data Types or “Array of Type”). Some types are automatically linkified:
 * 3) * Chat
 * 4) * Metadata
 * 5) * NBT Tag
 * 6) * Object Data
 * 7) * Slot
 * 8) Optionally, some explaining notes.

The last field of the packet must have  to close the table.