Template:Packet

From wiki.vg
Revision as of 21:35, 21 January 2015 by imported>Fenhl (removed thead and tbody tags, MediaWiki doesn't like those)
Jump to navigation Jump to search

Creates a packet table. For use on Protocol etc. Currently supports up to 12 fields.

Example

{{Packet|id=07|state=Play|bound=Client
  |Dimension|Int|-1: The Nether, 0: The Overworld, 1: The End
  |Difficulty|Unsigned Byte|0: Peaceful, 1: Easy, 2: Normal, 3: Hard
  |Gamemode|Unsigned Byte|0: survival, 1: creative, 2: adventure. The hardcore flag is not included
  |Level Type|String|Same as [[Protocol#Join Game|Join Game]]
}}
{{#if:Unsigned Byte|}}{{#if:Unsigned Byte|}}{{#if:String|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}
Packet IDStateBound toField nameField typeNotes
0x07PlayClientDimensionInt-1: The Nether, 0: The Overworld, 1: The End
DifficultyUnsigned Byte0: Peaceful, 1: Easy, 2: Normal, 3: Hard
GamemodeUnsigned Byte0: survival, 1: creative, 2: adventure. The hardcore flag is not included
Level TypeStringSame as Join Game
{{{13}}}{{{14}}}
{{{16}}}{{{17}}}
{{{19}}}{{{20}}}
{{{22}}}{{{23}}}
{{{25}}}{{{26}}}
{{{28}}}{{{29}}}
{{{31}}}{{{32}}}
{{{34}}}{{{35}}}